CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   How to clean the build environment...? (http://www.cfd-online.com/Forums/openfoam-installation/107225-how-clean-build-environment.html)

ed_teller September 20, 2012 13:41

How to clean the build environment...?
 
Hi

Is there any command to clean the build environment from object files, while still preserving the libraries and executables created...?

All i can find in foam directory is Allwmake... there is no Allwclean...

BRGDS

Alex

wyldckat September 22, 2012 17:32

Hi Alex,

Here's an example of why OpenFOAM is so great: we have full liberty to look at the source code of everything in it!

In this case, two folders are suspects:
  • The "bin" folder in "OpenFOAM-2.*.*".
  • The "wmake" folder, also in "OpenFOAM-2.*.*".
Almost all of the scripts placed in them have a nice big header that describes what each respective script does. It not, the source code inside it will tell it's own tale of how it does it's own job.


So, to answer your question, here are the following scripts that might come in handy to you:
  • rmoall - deletes all *.o files, starting from the folder where you are. More specifically, if you ask it for help:
    Code:

    $ rmoall -help
    Usage: rmoall [dir1] .. [dirN]
        remove all .o files

  • rmdepall - ditto for *.dep
  • wcleanLnIncludeAll - ditto for "lnInclude" folders, but this you probably do not want, otherwise you won't be able to build your own custom utilities and solvers, nor use codeStream.
Best regards,
Bruno


All times are GMT -4. The time now is 09:03.