CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Bugs (http://www.cfd-online.com/Forums/openfoam-bugs/)
-   -   mapFields ignores sourceTime for -parallel source (http://www.cfd-online.com/Forums/openfoam-bugs/67962-mapfields-ignores-sourcetime-parallel-source.html)

andersking September 2, 2009 01:51

mapFields ignores sourceTime for -parallel source
 
Hi,
When using mapFields, and mapping from a parallel source the -sourceTime flag is ignored if the time doesn't exist in the top case directory (it maps from 0 instead). ie.

if you have a case directory structure like so
Code:

case/
case/0
case/constant
case/system
case/processor0
case/processor0/constant
case/processor0/0
 case/processor0/500
case/processor1
case/processor1/constant
 case/processor1/0
  case/processor1/500

using mapFields as follows
Code:

mapFields ../test/ -sourceTime 500 -parallelSource
ignores the sourceTime and instead maps from 0 (but correctly maps it from the processor dirs).

When using parallel source, it should check to see if the time exists in the processor dir's not the root case.

As a workaround using
Code:

mkdir 500
in the root case fixes it, and it maps from the correct source time.

Cheers,
Andrew

henry September 2, 2009 06:49

Thanks for the bug report. I have pushed a fix into OpenFOAM-1.6.x please let us know if it works for your case.

H

andersking September 2, 2009 10:38

Hi Henry,

Works now. Thanks

Andrew


All times are GMT -4. The time now is 19:00.