removed unnecessary write control logic in postSootFoam

This commit is contained in:
ignis 2018-01-23 21:53:23 +09:00
parent a8044e1f53
commit ff2bbf9c44
3 changed files with 6 additions and 7 deletions

View file

@ -1 +1,2 @@
const volScalarField& psi = thermo.psi();
volScalarField& psi = thermo.psi();
psi.writeOpt() = IOobject::AUTO_WRITE;

View file

@ -21,7 +21,9 @@ volScalarField rho
(
"rho",
runTime.timeName(),
mesh
mesh,
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
thermo.rho()
);

View file

@ -62,11 +62,7 @@ int main(int argc, char *argv[])
radiation->correct();
if(runTime.write() == true)
{
rho.write();
psi.write();
}
runTime.write();
Info<< "ExecutionTime = " << runTime.elapsedCpuTime() << " s"
<< " ClockTime = " << runTime.elapsedClockTime() << " s"