You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
65 lines
2.5 KiB
C
65 lines
2.5 KiB
C
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include "genlib.h"
|
|
#include "geostat.h"
|
|
#include "pressure.h"
|
|
|
|
#ifndef _TOOLSIO_H
|
|
#define _TOOLSIO_H
|
|
|
|
/* Create december, the 16th 2002 */
|
|
/* Modified december, the 9th 2002 */
|
|
|
|
/* List of functions: */
|
|
/* ------------------ */
|
|
/* readfile_bin,inputdata,inputfiledata,debuginput */
|
|
/* testmemory, testopenfile */
|
|
|
|
|
|
/*FUNCTIONS*/
|
|
/*----------*/
|
|
|
|
/* Lecture dans un fichier */
|
|
|
|
/* Inputdata */
|
|
/* */
|
|
/* input data needed for realizations*/
|
|
/* seed: seed */
|
|
/* grid: structure defining the actual grid */
|
|
/* filename: name of files */
|
|
/* variogram: struture defining the variogram model */
|
|
/* stat: struture defining the mean and the variance of permeability realization */
|
|
/* pression: structure defining the gradient pressure */
|
|
|
|
void inputdata(long *seed,struct grid_mod *grid,string filename[7],struct vario_mod *variogram,struct statistic_mod *stat,struct pressure_mod *pression);
|
|
|
|
void inputfiledata(string inputfile,long *seed,struct grid_mod *grid,string filename[7],struct vario_mod *variogram,struct statistic_mod *stat,struct pressure_mod *pression);
|
|
|
|
/* readfile_bin */
|
|
/* */
|
|
/* read in the file "filename" the vector values of a */
|
|
/* realization_mod variable */
|
|
/* filename: explicit */
|
|
/* realin: structure defining a realization */
|
|
|
|
void readfile_bin(string filename, struct realization_mod *realin);
|
|
|
|
/* DebugInput */
|
|
/* */
|
|
/* Display the input data */
|
|
/* seed: seed */
|
|
/* grid: structure defining the actual grid */
|
|
/* filename: name of files */
|
|
/* variogram: struture defining the variogram model */
|
|
/* stat: struture defining the mean and the variance of permeability realization */
|
|
/* pression: structure defining the gradient pressure */
|
|
void debuginput(long *seed,struct grid_mod *grid,string filename[7],struct vario_mod *variogram,struct statistic_mod *stat,struct pressure_mod *pression,int *Ksolver,int *genere, int *gwnwrite);
|
|
|
|
/* Allocation test */
|
|
void testmemory(double *realint);
|
|
|
|
/* Test open file */
|
|
void testopenfile(FILE *fp);
|
|
|
|
#endif // define _TOOLSIO_H
|