mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: old-time field: avoid reading in postprocessing mode. Fixes #1228.
This commit is contained in:
@ -58,8 +58,8 @@ void MapConsistentVolFields
|
||||
Info<< " interpolating " << fieldIter()->name()
|
||||
<< endl;
|
||||
|
||||
// Read field
|
||||
fieldType fieldSource(*fieldIter(), meshSource);
|
||||
// Read field. Do not auto-load old-time field
|
||||
fieldType fieldSource(*fieldIter(), meshSource, false);
|
||||
|
||||
IOobject fieldTargetIOobject
|
||||
(
|
||||
@ -73,7 +73,7 @@ void MapConsistentVolFields
|
||||
if (fieldTargetIOobject.typeHeaderOk<fieldType>(true))
|
||||
{
|
||||
// Read fieldTarget
|
||||
fieldType fieldTarget(fieldTargetIOobject, meshTarget);
|
||||
fieldType fieldTarget(fieldTargetIOobject, meshTarget, false);
|
||||
|
||||
// Interpolate field
|
||||
meshToMesh0Interp.interpolate
|
||||
|
||||
@ -68,14 +68,15 @@ void MapVolFields
|
||||
{
|
||||
Info<< " interpolating " << fieldIter()->name() << endl;
|
||||
|
||||
// Read field fieldSource
|
||||
fieldType fieldSource(*fieldIter(), meshSource);
|
||||
// Read field fieldSource. Do not auto-load old-time fields
|
||||
fieldType fieldSource(*fieldIter(), meshSource, false);
|
||||
|
||||
// Read fieldTarget
|
||||
// Read fieldTarget. Do not auto-load old-time fields
|
||||
fieldType fieldTarget
|
||||
(
|
||||
fieldTargetIOobject,
|
||||
meshTarget
|
||||
meshTarget,
|
||||
false
|
||||
);
|
||||
|
||||
// Interpolate field
|
||||
|
||||
Reference in New Issue
Block a user