12 #ifndef __OCPSTRUCTURE_HEADER__
13 #define __OCPSTRUCTURE_HEADER__
28 OCP_USI reslen = (nb + nw) * (nc + 1);
29 resAbs.resize(reslen);
35 OCP_USI reslen = (nb + nw) * (nc + 2);
36 resAbs.resize(reslen);
43 fill(resAbs.begin(), resAbs.end(), 0);
44 fill(resRelV.begin(), resRelV.end(), 0);
45 fill(resRelN.begin(), resRelN.end(), 0);
46 fill(resRelE.begin(), resRelE.end(), 0);
50 maxWellRelRes_mol = 0;
55 void SetInitRes() { maxRelRes0_V = maxRelRes_V; }
Definition of build-in datatypes and consts.
double OCP_DBL
Double precision.
unsigned int OCP_USI
Long unsigned integer.
vector< OCP_DBL > resRelE
OCP_INT maxId_E
index of bulk who has maxRelRes_E
OCP_DBL maxRelRes_E
maximum relative residual wrt. total energy for each bulk
OCP_DBL maxWellRelRes_mol
maximum relative residual wrt. total moles for each well
OCP_INT maxId_N
index of bulk who has maxRelRes_N
OCP_INT maxId_V
index of bulk who has maxRelRes_V
vector< OCP_DBL > resRelN
vector< OCP_DBL > resRelV
vector< OCP_DBL > resAbs
residual for all equations for each bulk
OCP_DBL maxRelRes_N
maximum relative residual wrt. total moles for each bulk