Changeset 15338 for trunk/Compiler/runtime/SimulationResultsCmp.c
- Timestamp:
- 2013-02-26T16:43:56+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Compiler/runtime/SimulationResultsCmp.c
r15023 r15338 117 117 } 118 118 119 double absdouble(double d)119 static inline double absdouble(double d) 120 120 { 121 121 if (d > 0.0) … … 125 125 } 126 126 127 char ** getVars(void *vars, unsigned int* nvars)127 static char ** getVars(void *vars, unsigned int* nvars) 128 128 { 129 129 char **cmpvars=NULL; … … 170 170 } 171 171 172 DataField getData(const char *varname,const char *filename, unsigned int size, SimulationResult_Globals* srg)172 static DataField getData(const char *varname,const char *filename, unsigned int size, SimulationResult_Globals* srg) 173 173 { 174 174 DataField res; … … 221 221 222 222 /* see http://randomascii.wordpress.com/2012/02/25/comparing-floating-point-numbers-2012-edition/ */ 223 char AlmostEqualRelativeAndAbs(double A, double B)223 static char AlmostEqualRelativeAndAbs(double A, double B) 224 224 { 225 225 /* Check if the numbers are really close -- needed … … 238 238 } 239 239 240 unsigned int cmpData(char* varname, DataField *time, DataField *reftime, DataField *data, DataField *refdata, double reltol, double abstol, DiffDataField *ddf, char **cmpdiffvars, unsigned int vardiffindx)240 static unsigned int cmpData(char* varname, DataField *time, DataField *reftime, DataField *data, DataField *refdata, double reltol, double abstol, DiffDataField *ddf, char **cmpdiffvars, unsigned int vardiffindx) 241 241 { 242 242 unsigned int i,j,k,j_event; … … 541 541 } 542 542 543 int writeLogFile(const char *filename,DiffDataField *ddf,const char *f,const char *reff,double reltol,double abstol)543 static int writeLogFile(const char *filename,DiffDataField *ddf,const char *f,const char *reff,double reltol,double abstol) 544 544 { 545 545 FILE* fout;
Note: See TracChangeset
for help on using the changeset viewer.