Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

What are the differences between ./clean -a and ./clean -aa?

Ceil

New member
Hello!

I am not sure when ./clean -a and ./clean -aa should be used. For example, if I modify phys/module_sf_noahmplsm.F, which command should I use?

Additionally, if I modify MPTABLE.TBL, should I perform the clean command?

I also find there are three MPTABLE.TBL files, which are seperately placed in three paths as follows. Should I modify all the three files?
./phys/noahmp/parameters/MPTABLE.TBL
./run/MPTABLE.TBL
./test/em_real/MPTABLE.TBL


These are just basis questions. But I feel really confused. Please help me. Many thanks!
 
Hi,
If you issue "clean -a" all *.f90 files that were built with the compile will be removed. Those files are built from the existing *.F files, which will not be removed. If you issue "clean -aa" it will also remove all other files that were created during the compile (such as *.TBL files, *.txt files, etc.). If you're interested in seeing the specifics, you can open up the "clean" file in the WRF directory to take a look.

When modifying a physics routine, you don't need to clean the model at all, nor do you need to reconfigure. You can just simply recompile and it will only compile the file(s) related to your modifications. You only need to clean/reconfigure when you've modified something in the Registry directory. You shouldn't need to clean the code if you modify a *.TBL file. Those files aren't used during compilation. They are used when the model runs.

You only need to modify MPTABLE.TBL in the directory where you plan to run WRF.
 
Hi,
If you issue "clean -a" all *.f90 files that were built with the compile will be removed. Those files are built from the existing *.F files, which will not be removed. If you issue "clean -aa" it will also remove all other files that were created during the compile (such as *.TBL files, *.txt files, etc.). If you're interested in seeing the specifics, you can open up the "clean" file in the WRF directory to take a look.

When modifying a physics routine, you don't need to clean the model at all, nor do you need to reconfigure. You can just simply recompile and it will only compile the file(s) related to your modifications. You only need to clean/reconfigure when you've modified something in the Registry directory. You shouldn't need to clean the code if you modify a *.TBL file. Those files aren't used during compilation. They are used when the model runs.

You only need to modify MPTABLE.TBL in the directory where you plan to run WRF.
Many thanks for your detailed reply! I benefit a lot!
 
Top