CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

How to clean the build environment...?

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   September 20, 2012, 12:41
Default How to clean the build environment...?
  #1
New Member
 
Rui Alexandre Trigo Ribeiro Pereira
Join Date: Mar 2009
Location: Coimbra, Coimbra, Portugal
Posts: 23
Rep Power: 8
ed_teller is on a distinguished road
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
ed_teller is offline   Reply With Quote

Old   September 22, 2012, 16:32
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
pcaron likes this.
wyldckat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFoam 1.6-ext - RPM build errors preibie OpenFOAM 12 September 8, 2011 03:12
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07
Documentation on build environment make clean edric OpenFOAM Installation 2 March 14, 2005 12:10


All times are GMT -4. The time now is 01:42.