Skip to content

Commit

Permalink
[Equil] Fix formatting of some VCS debug output
Browse files Browse the repository at this point in the history
The lack of space between adjacent fields would cause test failures when
comparing output files when using some versions of MinGW (due to 3-digit
exponents).
  • Loading branch information
speth committed Apr 8, 2016
1 parent 1a64a23 commit d1a58e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/equil/vcs_solve_TP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ void VCS_SOLVE::solve_tp_inner(size_t& iti, size_t& it1,
plogf("- Major Components Calculation:\n");
}
plogf(" --- Species IC ");
plogf(" KMoles Tent_KMoles Rxn_Adj | Comment \n");
plogf(" KMoles Tent_KMoles Rxn_Adj | Comment \n");
}
for (size_t irxn = 0; irxn < m_numRxnRdc; irxn++) {
size_t kspec = m_indexRxnToSpecies[irxn];
Expand Down Expand Up @@ -588,7 +588,7 @@ void VCS_SOLVE::solve_tp_inner(size_t& iti, size_t& it1,
if (m_debug_print_lvl >= 2) {
plogf(" --- ");
plogf("%-12s", m_speciesName[kspec]);
plogf("%3d%11.4E%11.4E%11.4E | %s",
plogf("%3d% 11.4E %11.4E %11.4E | %s",
m_speciesStatus[kspec], m_molNumSpecies_old[kspec], m_molNumSpecies_new[kspec],
m_deltaMolNumSpecies[kspec], ANOTE);
plogendl();
Expand Down Expand Up @@ -655,7 +655,7 @@ void VCS_SOLVE::solve_tp_inner(size_t& iti, size_t& it1,
if (m_debug_print_lvl >= 2) {
plogf(" --- ");
plogf("%-12s", m_speciesName[kspec]);
plogf("%3d%11.4E%11.4E%11.4E | %s",
plogf(" %3d %11.4E %11.4E %11.4E | %s",
m_speciesStatus[kspec], m_molNumSpecies_old[kspec], m_molNumSpecies_new[kspec],
m_deltaMolNumSpecies[kspec], ANOTE);
plogendl();
Expand Down Expand Up @@ -803,7 +803,7 @@ void VCS_SOLVE::solve_tp_inner(size_t& iti, size_t& it1,
m_molNumSpecies_new[kspec] = m_molNumSpecies_old[kspec] + m_deltaMolNumSpecies[kspec];
plogf(" --- ");
plogf("%-12.12s", m_speciesName[kspec]);
plogf("%3d%11.4E%11.4E%11.4E | %s",
plogf("%3d %11.4E %11.4E %11.4E | %s",
m_speciesStatus[kspec], m_molNumSpecies_old[kspec],
m_molNumSpecies_new[kspec],
m_deltaMolNumSpecies[kspec], ANOTE);
Expand All @@ -824,7 +824,7 @@ void VCS_SOLVE::solve_tp_inner(size_t& iti, size_t& it1,
for (size_t k = 0; k < m_numComponents; k++) {
plogf(" --- ");
plogf("%-12.12s", m_speciesName[k]);
plogf(" c%11.4E%11.4E%11.4E |\n",
plogf(" c %11.4E %11.4E %11.4E |\n",
m_molNumSpecies_old[k],
m_molNumSpecies_old[k]+m_deltaMolNumSpecies[k], m_deltaMolNumSpecies[k]);
}
Expand Down

0 comments on commit d1a58e1

Please sign in to comment.