CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   writing a dictionary in parallel (https://www.cfd-online.com/Forums/openfoam-programming-development/254161-writing-dictionary-parallel.html)

skaal January 24, 2024 09:57

writing a dictionary in parallel
 
Hi all,


I feel a bit stupid with this question but I have been staring at this and breaking my head for hours now and do not get why this does not work.


I create an IOdictionary:


Code:

   
    IOdictionary
    (
        IOobject
        (
            dictName,
            mesh.time().timeName(),
            "uniform",
            mesh,
            IOobject::READ_IF_PRESENT,
            IOobject::AUTO_WRITE
        )
    )


and would expect that the object writes to the uniform directory in the time folder. It does so, but only into the serial / reconstructed one. Even if running in parallel.


What am I missing something here?


As a side note and in case that helps or makes a difference: I am running this in OF-10.

amirhosseintaran April 10, 2024 06:36

Hi Martin,

You can use -copyUniform flag when executing decomposePar or reconstructPar.


Bests,
Amirhossein.


All times are GMT -4. The time now is 04:43.