CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Run-time Code Compilation (https://www.cfd-online.com/Forums/openfoam/91442-run-time-code-compilation.html)

flowman August 11, 2011 02:18

Run-time Code Compilation
 
Hi All,

I've been tinkering with the new Run-time Code Compilation feature in OF 2.0. It's a really nice feature and I've got it to work in serial mode but not in parallel.

When I run in parallel, I get the following error:
Code:

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

[1]
[1]
[1] --> FOAM FATAL IO ERROR:
[1] error in IOstream "IOstream" for operation primitiveEntry::readData(const dictionary&, Istream&)
[1]
[1] file: IOstream at line 0.
[1]
[1]    From function IOstream::fatalCheck(const char*) const
[1]    in file db/IOstreams/IOstreams/IOstream.C at line 114.
[1]
FOAM parallel run exiting

Has anyone got it to work successfully in parallel? If so, how!? :-)

Aidan

eelcovv March 23, 2012 05:25

Hi.

I haven been running in the same problem: run time code compilation works in serial, not in parallel. I got the same error message. Has anybody been able to resolve this yet ?

Regards

Eelco

niklas March 23, 2012 06:22

Yeah, I have the solution :)

in OpenFoam-2.x.x/etc/controlDict, you need to change this line to

fileModificationChecking timeStamp;

Mattijs said something about reading controlDict on only master node is a problem.

eelcovv March 23, 2012 09:24

Yep, I justed posted the bug on Mantis and Matthijs gave me the same trick. It works now! Very convinient utility.

Thanks!
Eelco


All times are GMT -4. The time now is 18:03.