1.2.1
CCC
 
spill.cpp File Reference
#include "geoslib_old_f.h"
#include "Basic/Utilities.hpp"
#include "Basic/File.hpp"
#include "Db/Db.hpp"
#include "Db/DbGrid.hpp"
#include "Basic/String.hpp"
#include "Basic/OptDbg.hpp"
#include <string.h>

Classes

struct  SPIMG
 

Functions

int spill_point (DbGrid *dbgrid, int ind_depth, int ind_data, int option, bool flag_up, int verbose_step, double hmax, double *h, double *th, int *ix0, int *iy0)
 

Function Documentation

int spill_point ( DbGrid dbgrid,
int  ind_depth,
int  ind_data,
int  option,
bool  flag_up,
int  verbose_step,
double  hmax,
double *  h,
double *  th,
int *  ix0,
int *  iy0 
)

Evaluates the spill point

Returns
Error return code
- Memory problem
- Maximum Reservoir Thickness violation when turning UNKNOWN into
INSIDE
Parameters
[in]dbgridGrid Db structure
[in]ind_depthRank of the variable containing the depth
[in]ind_dataRank of the variable containing the data
[in]option0 for 4-connectivity; 1 for 8-connectivity
[in]flag_upTRUE when working in elevation; 0 in depth
[in]verbose_stepStep for verbose flag
[in]hmaxmaximum reservoir thickness (FFFF not used)
[out]helevation of the spill point
[out]thmaximum reservoir thickness
[out]ix0location of the spill point grid node along X
[out]iy0location of the spill point grid node along Y
Remarks
The variable 'ind_data', which contains the constraints, must
be set to:
0 for an idle node
1 for a node located outside the reservoir
2 for a node belonging to the reservoir
The numbering of the grid node corresponding to the spill point
must start with 1