View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000480 | OpenFOAM | Bug | public | 2012-03-23 11:37 | 2012-05-16 12:15 |
Reporter | Assigned To | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | PC | OS | Linux Redhad | OS Version | 4.1.2-50 |
Summary | 0000480: coded function objects crashes when running in parallel | ||||
Description | The solver crashes when a run time control function object (http://www.openfoam.org/version2.0.0/runtime-control.php) is used and the code is running parallel. The error message says: [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 [1] | ||||
Steps To Reproduce | Add the following code to the controlDict functions ( exampleSnipped { functionObjectLibs ("libutilityFunctionObjects.so"); type coded; redirectType average; outputControl timeStep; code #{ Info << "Hello, world." << endl; #}; } ); Running the code in serial works. However, decomposing the grid and running the code in parallel generates the error message instate | ||||
Additional Information | An example of the snipped based on icoFoam has been added. | ||||
Tags | No tags attached. | ||||
2012-03-23 11:37
|
|
|
We're aware of this problem - it is some interaction between the masterOnly reading of dictionaries and on-the-fly compilation of the codedFunctionObject. As a workaround switch off the 'masterOnly' file reading (set fileModificationChecking to timeStamp instead of timeStampMaster) in the etc/controlDict (or your personal one). |
|
Excellent! Thanks, this works. |
|
The problem is actually in the usage of '#{' ('verbatim string') to delimit the snippet of code. This does not work with the masterOnly reading. |
|
The '#{' code issue will be fixed in the next major release. |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-03-23 11:37 |
|
New Issue | |
2012-03-23 11:37 |
|
File Added: cavity-runtimecode.tgz | |
2012-03-23 12:49 |
|
Note Added: 0001169 | |
2012-03-23 14:08 |
|
Note Added: 0001170 | |
2012-03-27 11:19 |
|
Status | new => resolved |
2012-03-27 11:19 |
|
Fixed in Version | => 2.1.x |
2012-03-27 11:19 |
|
Resolution | open => no change required |
2012-03-27 11:19 |
|
Assigned To | => user4 |
2012-03-30 08:58 |
|
Note Added: 0001185 | |
2012-05-16 12:15 |
|
Note Added: 0001320 | |
2012-05-16 12:15 |
|
Status | resolved => closed |
2012-05-16 12:15 |
|
Fixed in Version | 2.1.x => Other |