mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
bugfix decomposePar
- explicitly remove any previously decomposed 'mut' and 'nut' when decomposing fields since they can otherwise prevent the turbulence model from being upgraded properly. Removing all decomposed fields first might be a better idea in the long-term, but would probably be slower.
This commit is contained in:
@ -540,6 +540,16 @@ int main(int argc, char *argv[])
|
||||
|
||||
processorDb.setTime(runTime);
|
||||
|
||||
// remove files remnants that can cause horrible problems
|
||||
// - mut and nut are used to mark the new turbulence models,
|
||||
// their existence prevents old models from being upgraded
|
||||
{
|
||||
fileName timeDir(processorDb.path()/processorDb.timeName());
|
||||
|
||||
rm(timeDir/"mut");
|
||||
rm(timeDir/"nut");
|
||||
}
|
||||
|
||||
// read the mesh
|
||||
fvMesh procMesh
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user