View Issue Details

IDProjectCategoryView StatusLast Update
0002783OpenFOAM[All Projects] Bugpublic2018-03-23 11:03
ReporterbillieAssigned Tohenry 
Status closedResolutionsuspended 
PlatformLinuxOSUbuntuOS Version16.06 LTS
Product Versiondev 
Fixed in Version 
Summary0002783: Parallel I/O: Running changeDictionary on decomposed case does not write to collated file format
DescriptionFor a case I need to run changeDictionary on a decomposed case to avoid reconstructing and decomposing again. I tried to convert this case to the new collated file format. After running changeDictionary the written files (e.g. T) are not in the collated file format anymore.
Steps To ReproduceI have modified the heatTransfer/chtMultiRegionSimpleFoam/multiRegionHeaterRadiation tutorial to use the collated file format and to run changeDictionary after decomposing.

The attached archive contains the modified tutorial as well a diff to the original and the solver log.

Running the case should fail when solving because the temperature files for the regions bottomAir and topAir have the wrong format.
TagsParallel I/O



2017-12-05 10:16


multiRegionHeaterRadiation.tar.xz (7,332 bytes)


2017-12-15 12:09


changeDictionary.C (20,242 bytes)


2017-12-15 12:14

reporter   ~0009161

The problem is that changeDictionary reads all files as if they are (global) dictionaries (like e.g. system/fvSolution). This includes fields, even though fields are processor-local.

Attached hack of changeDictionary enforces that the dictionaries it reads/writes have local scope so get written (if needed) as decomposedBlockData. Unfortunately we cannot detect (e.g. from the header) what the scope (local/global) is so maybe it would need a command line argument.


2017-12-18 12:19

reporter   ~0009163

Thank you. I have tested running my case with the modifications to changeDictionary. Now it works as expected.

Issue History

Date Modified Username Field Change
2017-12-05 10:16 billie New Issue
2017-12-05 10:16 billie File Added: multiRegionHeaterRadiation.tar.xz
2017-12-05 10:20 billie Tag Attached: Parallel I/O
2017-12-15 12:09 MattijsJ File Added: changeDictionary.C
2017-12-15 12:14 MattijsJ Note Added: 0009161
2017-12-18 12:19 billie Note Added: 0009163
2018-03-23 11:03 henry Assigned To => henry
2018-03-23 11:03 henry Status new => closed
2018-03-23 11:03 henry Resolution open => suspended