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.
simulacion-permeabilidad/fftma_module/gen/lib_src/toolsIO.h

73 lines
3.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,readdata,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);
/* void readdata(long *seed,struct grid_mod *grid,string filename[8],struct vario_mod *variogram,struct statistic_mod *stat,struct pressure_mod *pression,int *Ksolver,struct realization_mod *Kfield, char *argv[]); */
void readdata(long *seed,struct grid_mod *grid,string filename[8],struct vario_mod *variogram,struct statistic_mod *stat,struct pressure_mod *pression,int *Ksolver,int *genere, int *gwnwrite, struct realization_mod *Kfield,struct realization_mod *gwnoise, char *argv[]);
void readdata2(long *seed,struct grid_mod *grid,string filename[8],struct vario_mod *variogram,struct statistic_mod *stat,struct pressure_mod *pression,int *Ksolver,int *genere, int *gwnwrite, int *format_file, struct realization_mod *Kfield,struct realization_mod *gwnoise, char *argv[]);
void readdata3(long *seed,struct grid_mod *grid,string filename[8],struct vario_mod *variogram,struct statistic_mod *stat,struct pressure_mod *pression,int *Ksolver,int *genere, int *gwnwrite, int *format_file,int *Psolver, struct realization_mod *Kfield,struct realization_mod *gwnoise, char *argv[]);
/* 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