Basic utility structs and functions, mostly IO related.
void f_close(FILE_SPEC &f)
Close a FILE_SPEC.
for analysis of the #iterations to solve CG
void log_stats(double tm, bool cflg)
FILE_SPEC logger
file in which to write stats
void init_logger(const char *filename)
int tot_calls
total # calls
double last_tot_time
last total time
int calls
# calls for this interval, this is incremented externally
double tot_time
total time, this is incremented externally
for analysis of the #iterations to solve CG
void init_logger(const char *filename)
FILE_SPEC logger
file in which to write stats
int last_tot
previous total #
void log_stats(double tm, bool cflg)
int min
minimum #interations
int max
maximum #iterations
double lastSlvtime
total solver time
void update_iter(const int curiter)
int solves
#solutions performed
double slvtime
total solver time
int iter
its previous solver step
int totsolves
total # of solutions