View Issue Details

IDProjectCategoryView StatusLast Update
0003722OpenFOAMBugpublic2021-08-30 10:36
ReporterpeksaAssigned Tohenry 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformGNU/LinuxOSUbuntuOS Version15.04
Product Versiondev 
Fixed in Version9 
Summary0003722: mapFieldsPar hangs due to issue at createTimes.H
DescriptionDear developers,

I have noticed that sometimes when executing the mapFieldsPar utility in parallel, it hangs before the actual interpolation operation starts.
I have attached a simple test case which I have built with the OpenFOAM-dev (7b7fa5a9af93d3a8a733f3cbda72b3daf03cf3ce).

The problem seems to arise at createTimes.H on line 9 where the runTimeSource Time object is created.
I tested to change the definition such that instead of using the argument list, I build the Time
object as "Time runTimeSource(Time::controlDictName, rootDirSource, caseDirSource);" which seemed to
cure the issue (similar to the serial mapFields counter part).

Hence, as a fix I propose to change the createTimes.H implementation similar to mapFields serial version.
Steps To ReproduceRun the attached shell script in any directory. The script copies the cavity case, runs it and tries to map it in parallel onto another copied case.

TagsNo tags attached.

Activities

peksa

2021-08-29 16:29

reporter  

buildMapFieldsParDebugCase.sh (1,585 bytes)

henry

2021-08-30 10:36

manager   ~0012175

Thanks for the detailed report, steps to reproduce and proposed fix.

Resolved in OpenFOAM-9 by commit 458e9281e163a355f724ee82cc6a4ec89fb6a65d
Resolved in OpenFOAM-dev by commit e6d7b7aa3f71cd28affe62d947091ce92f1b0025

Issue History

Date Modified Username Field Change
2021-08-29 16:29 peksa New Issue
2021-08-29 16:29 peksa File Added: buildMapFieldsParDebugCase.sh
2021-08-30 10:36 henry Assigned To => henry
2021-08-30 10:36 henry Status new => resolved
2021-08-30 10:36 henry Resolution open => fixed
2021-08-30 10:36 henry Fixed in Version => 9
2021-08-30 10:36 henry Note Added: 0012175