Permalink
Browse files

BUG: chemFoam - moved output of initial conditions to after thermo.co…

…rrect()

- corresponds to mantis bu report 333
  • Loading branch information...
1 parent a3b4e20 commit 5f38cb9e69193657b71c875e62e0d976c5340cb1 andy committed Nov 7, 2011
Showing with 6 additions and 9 deletions.
  1. +6 −9 applications/solvers/combustion/chemFoam/readInitialConditions.H
@@ -1,13 +1,5 @@
word constProp(initialConditions.lookup("constantProperty"));
- if (constProp == "pressure" || constProp == "volume")
- {
- Info << constProp << " will be held constant." << nl
- << " p = " << p[0] << " [Pa]" << nl
- << " T = " << thermo.T()[0] << " [K] " << nl
- << " rho = " << rho[0] << " [kg/m3]" << nl
- << endl;
- }
- else
+ if ((constProp != "pressure") && (constProp != "volume"))
{
FatalError << "in initialConditions, unknown constantProperty type "
<< constProp << nl << " Valid types are: pressure volume."
@@ -110,3 +102,8 @@
scalar integratedHeat = 0.0;
+ Info << constProp << " will be held constant." << nl
+ << " p = " << p[0] << " [Pa]" << nl
+ << " T = " << thermo.T()[0] << " [K] " << nl
+ << " rho = " << rho[0] << " [kg/m3]" << nl
+ << endl;

0 comments on commit 5f38cb9

Please sign in to comment.