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

Last change on this file since 3391 was 3354, checked in by jbclement, 19 months ago

PEM:
Addition of a script to execute multiple scripts in subdirectories (useful to launch multiple jobs at once for ex.) + Updates for several scripts in the deftank.
JBC

  • Property svn:executable set to *
File size: 993 bytes
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 "jobPCM*.slurm" ! -name "jobPCM.slurm" -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
35# Cleaning of files in the sub-folders
36rm -f diags/*
37rm -f starts/*
38rm -f out_PCM/*
39rm -f out_PEM/*
40echo "Done!"
Note: See TracBrowser for help on using the repository browser.