interDyMFoam: phi.oldTime() is not needed but U.oldTime() needs to be created

This commit is contained in:
Henry
2013-06-20 16:30:07 +01:00
parent a8a40fef02
commit f867322323
2 changed files with 3 additions and 1 deletions

View File

@ -52,7 +52,6 @@
phiAbs = phi;
phiAbs.oldTime() = phi;
fvc::makeRelative(phi, U);
phi.oldTime() = phi;
}
}
}

View File

@ -81,6 +81,9 @@ int main(int argc, char *argv[])
scalar timeBeforeMeshUpdate = runTime.elapsedCpuTime();
{
// Ensure old-time U exists for mapping
U.oldTime();
// Calculate the relative velocity used to map the relative flux phi
volVectorField Urel("Urel", U);