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

[OpenFOAM.org] How to clean the build environment...?

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

Like Tree6Likes
  • 3 Post By wyldckat
  • 3 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread 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: 17
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
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Old   November 6, 2018, 13:36
Default
  #3
Senior Member
 
Przemek
Join Date: Jun 2011
Posts: 249
Rep Power: 15
gaza is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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

How can I clean environment on OpenFOAM v1612+?
There are no rm* scripts
??
__________________
best regards
pblasiak
gaza is offline   Reply With Quote

Old   December 28, 2018, 08:37
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by gaza View Post
How can I clean environment on OpenFOAM v1612+?
There are no rm* scripts
??
Quick answer: I've finally written a wiki page with information on how to clean up the build environments for all major versions/forks/variants here: https://openfoamwiki.net/index.php/I...rmediate_files

You will find the indication on how to do the clean up in section OpenFOAM v3.0+, v1606+ and v1612+
louisgag, gaza and Daniel_Khazaei like this.
__________________
wyldckat is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
64-bit machine, 32-bit build environment daniel_pramudita FLUENT 2 January 18, 2018 13:06
Building from Source on Windows using Cygwin64 ericthefatguy SU2 2 May 12, 2015 18:23
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 19: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 11:10


All times are GMT -4. The time now is 04:41.