|
[Sponsors] |
July 20, 2013, 09:25 |
Read_if_modified
|
#1 |
Senior Member
Join Date: Jan 2013
Posts: 372
Rep Power: 14 |
Hi All,
In createFields.H, I write the following lines: IOdictionary additionalControlsDict ( IOobject ( "additionalControls", runTime.constant(), mesh, IOobject::MUST_READ_IF_MODIFIED, IOobject::NO_WRITE ) ); dimensionedScalar relax(additionalControlsDict.lookup("relax")); Then in I use this quantity in fireFoam.C. However, when I modify the value of this quantity, I found that the solver did not use the new at all, and it still used the old one. Could anybody tell me if there is something I forget to change in the code? Thank you very much! |
|
|
|