Periodically ignore removal by purgeWrite
Suppose I have the following settings in my controlDict
Code:
writeControl adjustableRunTime; What I want to do now, is using the purgeWrite option, but keeping some more timesteps (or not removing them). Suppose I had a flag Code:
keepEach 1.0 1, 2, 3, 4, 5, 5.62, 5.64, 5.66 Any suggestions on how to do this? Is there such a flag, or should I put it as a feature request on the bugtracker? |
The purgeWrite code is defined in:/src/OpenFOAM/db/Time/TimeIO.C (318-326)
Code:
if (writeOK && purgeWrite_) With adding a dictionary input and an if-statement in the while loop, this can easily be implemented, I suppose. Is it possible to compile this into a library, and put it as a library in the controlDict, allowing to add the required flag? My impression is that the answer would be no, because I need to recompile the solver at least. Any hints on library linking is welcome here. |
I tried compiling some libmyOpenFOAM and without new changes, I compiled it with myIcoFoam. Now I get a conflict between libOpenFOAM and libmyOpenFOAM.
Quote:
I tried to compile myIcoFoam manually, by stripping the references to lOpenFOAM and src/OpenFOAM/lnInclude, but, without any success until now. Any hints to not use libOpenFOAM.so using wmake? |
I am trying to do this using secondaryWriteControl but have not succeeded yet. Have you got any solution?
|
All times are GMT -4. The time now is 23:45. |