11 #ifndef _VCS_INTERNAL_H
12 #define _VCS_INTERNAL_H
18 #define VCS_DATA_PTR(vvv) (&(vvv[0]))
24 #define plogf writelogf
31 #define plogendl() writelogendl()
42 class VCS_SPECIES_THERMO;
108 int varID,
void* fptrPassthrough,
211 void* fptrPassthrough,
212 double FuncTargVal,
int varID,
double* xbest,
221 double vcs_l2norm(
const std::vector<double> vec);
233 size_t vcs_optMax(
const double* x,
const double* xSize,
size_t j,
size_t n);
bool vcs_doubleEqual(double d1, double d2)
Simple routine to check whether two doubles are equal up to roundoff error.
int vcs_max_int(const int *vector, int length)
Returns the maximum integer in a list.
int Its
Current number of iterations in the main loop of vcs_TP() to solve for thermo equilibrium.
int T_Calls_Inest
Current number of times the initial thermo equilibrium estimator has been called. ...
double Time_vcs_TP
Current time spent in vcs_TP.
int Basis_Opts
number of optimizations of the components basis set done
double T_Time_basopt
Total Time spent in basopt.
double vcsUtil_gasConstant(int mu_units)
Returns the value of the gas constant in the units specified by parameter.
int vcs_timing_print_lvl
Global hook for turning on and off time printing.
This file contains definitions for utility functions and text for modules, inputfiles, logs, textlogs, (see Input File Handling, Diagnostic Output, and Writing messages to the screen).
int T_Basis_Opts
Total number of optimizations of the components basis set done.
int vcsUtil_root1d(double xmin, double xmax, size_t itmax, VCS_FUNC_PTR func, void *fptrPassthrough, double FuncTargVal, int varID, double *xbest, int printLvl)
One dimensional root finder.
double T_Time_vcs_TP
Current time spent in vcs_TP.
double vcs_l2norm(const std::vector< double > vec)
determine the l2 norm of a vector of doubles
int T_Its
Total number of iterations in the main loop of vcs_TP() to solve for thermo equilibrium.
void vcs_print_stringTrunc(const char *str, size_t space, int alignment)
Print a string within a given space limit.
double T_Time_inest
Time spent in initial estimator.
double Time_basopt
Current Time spent in basopt.
double(* VCS_FUNC_PTR)(double xval, double Vtarget, int varID, void *fptrPassthrough, int *err)
Definition of the function pointer for the root finder.
size_t vcs_optMax(const double *x, const double *xSize, size_t j, size_t n)
Finds the location of the maximum component in a double vector.
const char * vcs_speciesType_string(int speciesStatus, int length)
Returns a const char string representing the type of the species given by the first argument...
Class to keep track of time and iterations.
double T_Time_vcs
Time spent in the vcs suite of programs.
int T_Calls_vcs_TP
Current number of calls to vcs_TP.