Timothy  0.9
Tissue Modelling Framework
 All Data Structures Files Functions Variables Typedefs Macros
io.h
Go to the documentation of this file.
1 /* **************************************************************************
2  * This file is part of Timothy
3  *
4  * Copyright (c) 2014/15 Maciej Cytowski
5  * Copyright (c) 2014/15 ICM, University of Warsaw, Poland
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20  *
21  * *************************************************************************/
22 
27 //#define NPAR 34
28 #define NPAR 67
29 #define REAL 1
30 #define STRING 2
31 #define INT 3
32 #define LONG 4
33 #define INT64_T 5
34 #define DOUBLE 6
35 #define CHAR 7
36 
37 #define NOUT 10
38 #define NRSTPARAMS 32
39 #define SCALAR 1
40 #define VECTOR 2
41 
42 #define FNLEN 256
43 
45 char nameOut[NOUT][128];
46 int dimOut[NOUT];
47 void *addrOut[NOUT];
48 int64_t jumpOut[NOUT];
49 int nfOut;
50 
54 int nRst;
55 /* simulation parameters from the restart file */
56 int rstSdim;
57 int rstNx;
58 int rstNy;
59 int rstNz;
60 char rstOutdir[128];
61 char rstRng[3];
62 int64_t rstNc;
64 float rstTstep;
65 float rstSimTime;
66 float rstFrac;
67 float rstG1;
68 float rstS;
69 float rstG2;
70 float rstM;
71 float rstV;
72 float rstRd;
73 double rstH;
74 double rstCsize;
75 
76 
77 int one=1;
78 
79 char params[NPAR][64];
80 char desc[NPAR][512];
81 void *addr[NPAR];
82 int req[NPAR];
83 int set[NPAR];
84 int type[NPAR];
85 
86 int fdSave;
87 int fdNew;
88 
89 typedef struct colormapPoint_t {
90  float position;
91  float r;
92  float g;
93  float b;
95 
96 typedef struct colormap_t {
97  char name[16];
98  int ncp;
100 } colormap;
101 
103 float beta;
int rstSdim
Definition: io.h:56
int dimOut[NOUT]
Definition: io.h:46
char params[NPAR][64]
Definition: io.h:79
float rstSimTime
Definition: io.h:65
float rstV
Definition: io.h:71
int typeOut[NOUT]
Definition: io.h:44
float g
Definition: io.h:92
void * addrRst[NRSTPARAMS]
Definition: io.h:53
double rstH
Definition: io.h:73
struct colormap_t colormap
double rstCsize
Definition: io.h:74
int rstNx
Definition: io.h:57
float rstFrac
Definition: io.h:66
float rstM
Definition: io.h:70
float beta
Definition: io.h:103
float b
Definition: io.h:93
char nameOut[NOUT][128]
Definition: io.h:45
colormap * cmaps
Definition: io.h:102
struct colormapPoint_t colormapPoint
int one
Definition: io.h:77
char rstOutdir[128]
Definition: io.h:60
int type[NPAR]
Definition: io.h:84
colormapPoint * cp
Definition: io.h:99
int64_t jumpOut[NOUT]
Definition: io.h:48
int rstNz
Definition: io.h:59
char rstRng[3]
Definition: io.h:61
float rstG2
Definition: io.h:69
int fdNew
Definition: io.h:87
char name[16]
Definition: io.h:97
int nRst
Definition: io.h:54
int nfOut
Definition: io.h:49
int req[NPAR]
Definition: io.h:82
int sizeRst[NRSTPARAMS]
Definition: io.h:52
float r
Definition: io.h:91
float position
Definition: io.h:90
void * addr[NPAR]
Definition: io.h:81
float rstRd
Definition: io.h:72
int rstSimStart
Definition: io.h:63
char desc[NPAR][512]
Definition: io.h:80
#define NPAR
Definition: io.h:28
void * addrOut[NOUT]
Definition: io.h:47
#define NRSTPARAMS
Definition: io.h:38
int64_t rstNc
Definition: io.h:62
int typeRst[NRSTPARAMS]
Definition: io.h:51
float rstTstep
Definition: io.h:64
float rstG1
Definition: io.h:67
int rstNy
Definition: io.h:58
int set[NPAR]
Definition: io.h:83
int fdSave
Definition: io.h:86
float rstS
Definition: io.h:68
#define NOUT
Definition: io.h:37
int ncp
Definition: io.h:98
Definition: io.h:96