CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Run-time Code Compilation

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By niklas

Reply
 
LinkBack Thread Tools Display Modes
Old   August 11, 2011, 02:18
Default Run-time Code Compilation
  #1
New Member
 
Aidan
Join Date: Apr 2010
Posts: 18
Rep Power: 6
flowman is on a distinguished road
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
flowman is offline   Reply With Quote

Old   March 23, 2012, 06:25
Default
  #2
Senior Member
 
Eelco van Vliet
Join Date: Mar 2009
Location: The Netherlands
Posts: 119
Rep Power: 8
eelcovv is on a distinguished road
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
eelcovv is offline   Reply With Quote

Old   March 23, 2012, 07:22
Default
  #3
Super Moderator
 
niklas's Avatar
 
Niklas Nordin
Join Date: Mar 2009
Location: Stockholm, Sweden
Posts: 692
Rep Power: 18
niklas will become famous soon enough
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.
sina.s likes this.
niklas is offline   Reply With Quote

Old   March 23, 2012, 10:24
Default
  #4
Senior Member
 
Eelco van Vliet
Join Date: Mar 2009
Location: The Netherlands
Posts: 119
Rep Power: 8
eelcovv is on a distinguished road
Yep, I justed posted the bug on Mantis and Matthijs gave me the same trick. It works now! Very convinient utility.

Thanks!
Eelco
eelcovv is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Run time Selection Mechanism - Some help required to understand jaswi OpenFOAM Programming & Development 2 April 18, 2014 07:44
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 17 August 22, 2009 03:59
Transient simulation not converging skabilan OpenFOAM Running, Solving & CFD 12 September 17, 2007 17:48
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 18:07
unsteady calcs in FLUENT Sanjay Padhiar Main CFD Forum 1 March 31, 1999 11:32


All times are GMT -4. The time now is 22:23.