General Question about code developing
Hi everyone,
I have a general question about OF coding. Considering that I have started a simulation using OF. Then during running this case, I have changed the OF library and compiled it. So does it affect the running case with the previously compiled configuration? Cheers, Mohammad |
Nobody interested in answering my question?
|
Quote:
Being more pragmatic: In principle it shall not affect your already-running case. Of course, if you stop&resume it the system will make use of the new binaries. |
Quote:
You was so specific indeed. I mean the already-running case. So in your opinion, making a change in library and compiling it doesn't affect that case. |
Quote:
As guin wrote, it depends. I had systems in which changing a binary used by a simulation was causing the simulation stopping with a "BUS error", while on other systems it did not stop. However, it's never a good idea... |
Quote:
Got it. Thanks Francesco for your nice reply. |
hello everybody
i wonder whether it is possible to run OF codes on a generic compiler (not through the TERMINAL determined by the official releases)? for example can i run the Cavity tutorial codes on CodeBlocks C++ compiler? i think if OF is a real open source code it must be possible! thanks in advance. |
Quote:
|
You mean it is possible for example to copy paste OF codes in a generic c++ compiler and run?
If that is! I am really wondered by that. |
Quote:
No, I am not saying that. To be honest, I'm not sure I understood what you mean with that. What I am saying is that you can use different compilers to recompile the whole OpenFOAM package, including your custom libraries and applications. OpenFOAM is C++ code, although with a unique code style, but you cannot take just a solver source, it includes headers and imports lots of libraries from the openfoam source directories that must be recompiled as well. |
All times are GMT -4. The time now is 13:09. |