source: trunk/LMDZ.COMMON/libf/evolution/deftank/clean.sh @ 3861

Last change on this file since 3861 was 3861, checked in by jbclement, 2 days ago

PEM:

  • Big update of "README" file in the "deftank" folder.
  • Renaming the log files "out_run*" into "run.log".
  • Merging the folders "out_PCM" and "out_PEM" into "logs" where the log files are gathered with convenient renaming.
  • Update of job files.
  • More robust tests in "lib_launchPEM.sh".

JBC

  • Property svn:executable set to *
File size: 1.2 KB
Line 
1#!/bin/bash
2#########################################################
3### Script to clean the folder after a PEM simulation ###
4### and reset the initial starting files to prepare a ###
5### new simulation                                    ###
6#########################################################
7# There is no argument, you can just execute it.
8################################################
9
10echo "Cleaning..."
11# Cleaning of files in the current folder
12rm -f Bands*.dat
13rm -f data2reshape*
14rm -f data_PCM_Y*
15rm -f info_PEM.txt
16find . -type f -name "PCMrun*.job" ! -name "PCMrun.job" -delete
17rm -f *.out
18rm -f kill_launchPEM.sh
19rm -f *.log
20rm -f run.def
21rm -f start*.nc
22rm -f used_*
23rm -f Xdiurnalave.nc
24rm -f xios_client_*
25rm -f diag*.nc
26rm -f restart*.nc
27rm -f restart1D*.txt
28rm -f start1D*.txt
29# Reset the initial starting files to prepare a new simulation
30if [ -f "starts/startfi.nc" ]; then
31    cp starts/startfi.nc .
32fi
33if [ -f "starts/start.nc" ]; then
34    cp starts/start.nc .
35elif [ -f "starts/start1D.txt" ]; then
36    cp starts/start1D.txt .
37fi
38if [ -f "starts/startpem.nc" ]; then
39    cp starts/startpem.nc .
40fi
41# Cleaning of files in the sub-folders
42rm -f diags/*
43rm -f starts/*
44rm -f logs/*
45echo "Done!"
Note: See TracBrowser for help on using the repository browser.