[Test] Fix failures in HMW tests when debug_verbose=y
Partially addresses Issue 69.
This commit is contained in:
parent
bd8d257c5e
commit
52997d6f60
2 changed files with 0 additions and 34 deletions
|
|
@ -5,8 +5,6 @@
|
|||
using namespace std;
|
||||
using namespace Cantera;
|
||||
|
||||
int CHECK_DEBUG_MODE = 0;
|
||||
|
||||
void pAtable(HMWSoln* HMW)
|
||||
{
|
||||
size_t nsp = HMW->nSpecies();
|
||||
|
|
@ -15,13 +13,9 @@ void pAtable(HMWSoln* HMW)
|
|||
double activities[100];
|
||||
double moll[100];
|
||||
|
||||
if (CHECK_DEBUG_MODE == 1) {
|
||||
HMW->m_debugCalc = 1;
|
||||
}
|
||||
HMW->getMolalityActivityCoefficients(acMol);
|
||||
HMW->getMoleFractions(mf);
|
||||
HMW->getActivities(activities);
|
||||
HMW->m_debugCalc = 0;
|
||||
HMW->getMolalities(moll);
|
||||
string sName;
|
||||
printf(" Name Activity ActCoeffMolal "
|
||||
|
|
@ -45,19 +39,6 @@ int main(int argc, char** argv)
|
|||
|
||||
HMWSoln* HMW = new HMWSoln(1);
|
||||
|
||||
#ifdef DEBUG_MODE
|
||||
CHECK_DEBUG_MODE = 1;
|
||||
#endif
|
||||
if (CHECK_DEBUG_MODE == 1) {
|
||||
HMW->m_debugCalc = 1;
|
||||
if (HMW->debugPrinting()) {
|
||||
FILE* ff = fopen("CheckDebug.txt", "w");
|
||||
fprintf(ff,"%1d\n", 1);
|
||||
fclose(ff);
|
||||
}
|
||||
HMW->m_debugCalc = 0;
|
||||
}
|
||||
|
||||
size_t nsp = HMW->nSpecies();
|
||||
|
||||
double a1 = HMW->AionicRadius(1);
|
||||
|
|
|
|||
|
|
@ -5,8 +5,6 @@
|
|||
using namespace std;
|
||||
using namespace Cantera;
|
||||
|
||||
int CHECK_DEBUG_MODE = 0;
|
||||
|
||||
void pAtable(HMWSoln* HMW)
|
||||
{
|
||||
size_t nsp = HMW->nSpecies();
|
||||
|
|
@ -65,19 +63,6 @@ int main(int argc, char** argv)
|
|||
|
||||
HMW->setState_TPM(Temp, OneAtm, moll);
|
||||
|
||||
#ifdef DEBUG_MODE
|
||||
CHECK_DEBUG_MODE = 1;
|
||||
#endif
|
||||
if (CHECK_DEBUG_MODE == 1) {
|
||||
HMW->m_debugCalc = 1;
|
||||
if (HMW->debugPrinting()) {
|
||||
FILE* ff = fopen("CheckDebug.txt", "w");
|
||||
fprintf(ff,"%1d\n", 1);
|
||||
fclose(ff);
|
||||
}
|
||||
HMW->m_debugCalc = 1;
|
||||
}
|
||||
|
||||
printf(" Temperature = %.4f K\n", Temp);
|
||||
HMW->printCoeffs();
|
||||
pAtable(HMW);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue