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

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
Line 
1#!/bin/bash
2#########################################################
3### Script to clean the folder after a PEM simulation ###
4#########################################################
5
6echo "Cleaning..."
7# Cleaning of files in the current folder
8rm -f Bands*.dat
9rm -f data2reshape*
10rm -f data_PCM_Y*
11rm -f info_PEM.txt
12find . -type f -name "PCMrun*.job" ! -name "PCMrun.job" -delete
13rm -f *.out
14rm -f kill_launchPEM.sh
15rm -f log_launchPEM.txt
16rm -f out_run*
17rm -f run.def
18rm -f start*.nc
19rm -f used_*
20rm -f Xdiurnalave.nc
21rm -f xios_client_*
22rm -f diag*.nc
23rm -f restart*.nc
24rm -f restart1D*.txt
25rm -f start1D*.txt
26# Reset the initial starting files to prepare a new simulation
27if [ -f "starts/startfi.nc" ]; then
28    cp starts/startfi.nc .
29fi
30if [ -f "starts/start.nc" ]; then
31    cp starts/start.nc .
32elif [ -f "starts/start1D.txt" ]; then
33    cp starts/start1D.txt .
34fi
35if [ -f "starts/startpem.nc" ]; then
36    cp starts/startpem.nc .
37fi
38# Cleaning of files in the sub-folders
39rm -f diags/*
40rm -f starts/*
41rm -f out_PCM/*
42rm -f out_PEM/*
43echo "Done!"
Note: See TracBrowser for help on using the repository browser.