#include "geoslib_f.h"
#include "geoslib_old_f.h"
#include "geoslib_f_private.h"
#include "geoslib_enum.h"
#include "Variogram/Vario.hpp"
#include "Anamorphosis/AAnam.hpp"
#include "Anamorphosis/AnamDiscreteDD.hpp"
#include "Anamorphosis/AnamDiscreteIR.hpp"
#include "Anamorphosis/AnamEmpirical.hpp"
#include "Anamorphosis/AnamHermite.hpp"
#include "Basic/Utilities.hpp"
#include "Basic/File.hpp"
#include "Basic/String.hpp"
#include "Basic/OptDbg.hpp"
#include "Covariances/CovAniso.hpp"
#include "Db/Db.hpp"
#include "LithoRule/Rule.hpp"
#include "Model/Model.hpp"
#include <string.h>
#include <algorithm>
Functions | |
void | ascii_filename (const char *type, int rank, int mode, char *filename) |
void | ascii_study_define (const char *study) |
void | ascii_environ_read (char *file_name, int verbose) |
void | ascii_simu_read (char *file_name, int verbose, int *nbsimu, int *nbtuba, int *seed) |
int | ascii_option_defined (const char *file_name, int verbose, const char *option_name, int type, void *answer) |
Db * | db_read_csv (const char *file_name, const CSVformat &csvfmt, int verbose, int ncol_max, int nrow_max, int flag_add_rank) |
void ascii_environ_read | ( | char * | file_name, |
int | verbose | ||
) |
Read the Environment definition file
[in] | file_name | Name of the ASCII file |
[in] | verbose | Verbose option if the file cannot be opened |
void ascii_filename | ( | const char * | type, |
int | rank, | ||
int | mode, | ||
char * | filename | ||
) |
Returns the name of the file
[in] | type | Type of the file to be named |
[in] | rank | Rank of the file (optional) |
[in] | mode | 0 for read; 1 for write |
[out] | filename | Output filename |
int ascii_option_defined | ( | const char * | file_name, |
int | verbose, | ||
const char * | option_name, | ||
int | type, | ||
void * | answer | ||
) |
Check if an option is defined in the Options ASCII file
[in] | file_name | Name of the ASCII file |
[in] | verbose | Verbose option if the file cannot be opened |
[in] | option_name | Keyword for the requested option |
[in] | type | Answer type
|
[out] | answer | Answer |
void ascii_simu_read | ( | char * | file_name, |
int | verbose, | ||
int * | nbsimu, | ||
int * | nbtuba, | ||
int * | seed | ||
) |
Read the Simulation Characteristics
[in] | file_name | Name of the ASCII file |
[in] | verbose | Verbose option if the file cannot be opened |
[out] | nbsimu | Number of simulations |
[out] | nbtuba | Number of turning bands |
[out] | seed | Seed for the random number generator |
void ascii_study_define | ( | const char * | study | ) |
Set the Study for the test data
[in] | study | Local name of the study |
Db* db_read_csv | ( | const char * | file_name, |
const CSVformat & | csvfmt, | ||
int | verbose, | ||
int | ncol_max, | ||
int | nrow_max, | ||
int | flag_add_rank | ||
) |
Read a CSV file and load the results into a Db
[in] | file_name | Name of the ASCII file |
[in] | verbose | Verbose option if the file cannot be opened |
[in] | csvfmt | CSVformat structure |
[in] | ncol_max | Maximum number of columns (or -1) |
[in] | nrow_max | Maximum number of rows (or -1) |
[in] | flag_add_rank | 1 To add the rank number |