CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

writing a dictionary in parallel

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 24, 2024, 09:57
Default writing a dictionary in parallel
  #1
New Member
 
Martin
Join Date: Jul 2022
Posts: 16
Rep Power: 3
skaal is on a distinguished road
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.
skaal is offline   Reply With Quote

Old   April 10, 2024, 06:36
Default
  #2
Member
 
Amirhossein Taran
Join Date: Sep 2016
Location: Dublin, Ireland
Posts: 50
Rep Power: 9
amirhosseintaran is on a distinguished road
Hi Martin,

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


Bests,
Amirhossein.
amirhosseintaran is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing all continuity errors to a file using custom solver in parallel mode saurabh1011 OpenFOAM Running, Solving & CFD 1 September 14, 2022 20:44
problem during mpi in server: expected Scalar, found on line 0 the word 'nan' muth OpenFOAM Running, Solving & CFD 3 August 27, 2018 04:18
Problem writing to dictionary MrAndersson OpenFOAM Programming & Development 4 September 12, 2017 15:46
[mesh manipulation] Dynamic remeshing (mequite) in parallel not working [foam-extend-4.0] Peter_600 OpenFOAM Meshing & Mesh Conversion 4 August 1, 2017 06:07
Error during writing of fields in massive parallel simulations chbeck OpenFOAM Bugs 1 September 6, 2010 06:25


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