Last change
on this file since 3554 was
3428,
checked in by jbclement, 3 months ago
|
PEM:
Corrections and improvements for the launching script.
JBC
|
-
Property svn:executable set to
*
|
File size:
1.0 KB
|
Rev | Line | |
---|
[3351] | 1 | #!/bin/bash |
---|
| 2 | ######################################################### |
---|
| 3 | ### Script to clean the folder after a PEM simulation ### |
---|
| 4 | ######################################################### |
---|
| 5 | |
---|
| 6 | echo "Cleaning..." |
---|
[3354] | 7 | # Cleaning of files in the current folder |
---|
| 8 | rm -f Bands*.dat |
---|
| 9 | rm -f data2reshape* |
---|
| 10 | rm -f data_PCM_Y* |
---|
| 11 | rm -f info_PEM.txt |
---|
[3394] | 12 | find . -type f -name "PCMrun*.job" ! -name "PCMrun.job" -delete |
---|
[3354] | 13 | rm -f *.out |
---|
| 14 | rm -f kill_launchPEM.sh |
---|
| 15 | rm -f log_launchPEM.txt |
---|
| 16 | rm -f out_run* |
---|
| 17 | rm -f run.def |
---|
| 18 | rm -f start*.nc |
---|
| 19 | rm -f used_* |
---|
| 20 | rm -f Xdiurnalave.nc |
---|
| 21 | rm -f xios_client_* |
---|
| 22 | rm -f diag*.nc |
---|
| 23 | rm -f restart*.nc |
---|
| 24 | rm -f restart1D*.txt |
---|
| 25 | rm -f start1D*.txt |
---|
| 26 | # Reset the initial starting files to prepare a new simulation |
---|
| 27 | if [ -f "starts/startfi.nc" ]; then |
---|
| 28 | cp starts/startfi.nc . |
---|
| 29 | fi |
---|
[3351] | 30 | if [ -f "starts/start.nc" ]; then |
---|
| 31 | cp starts/start.nc . |
---|
| 32 | elif [ -f "starts/start1D.txt" ]; then |
---|
| 33 | cp starts/start1D.txt . |
---|
| 34 | fi |
---|
[3428] | 35 | if [ -f "starts/startpem.nc" ]; then |
---|
| 36 | cp starts/startpem.nc . |
---|
| 37 | fi |
---|
[3354] | 38 | # Cleaning of files in the sub-folders |
---|
| 39 | rm -f diags/* |
---|
| 40 | rm -f starts/* |
---|
| 41 | rm -f out_PCM/* |
---|
| 42 | rm -f out_PEM/* |
---|
[3351] | 43 | echo "Done!" |
---|
Note: See
TracBrowser
for help on using the repository browser.