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

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

PEM:
Renaming the file "info_PEM.txt" into "launchPEM.info".
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 launchPEM.info
14find . -type f -name "PCMrun*.job" ! -name "PCMrun.job" -delete
15rm -f *.out
16rm -f kill_launchPEM.sh
17rm -f *.log
18rm -f run.def
19rm -f start*.nc
20rm -f used_*
21rm -f Xout*4pem*.nc
22rm -f xios_client_*
23rm -f diag*.nc
24rm -f restart*.nc
25rm -f restart1D*.txt
26rm -f start1D*.txt
27rm -f profile_temp.out
28# Reset the initial starting files to prepare a new simulation
29if [ -f "starts/startfi.nc" ]; then
30    cp starts/startfi.nc .
31fi
32if [ -f "starts/start.nc" ]; then
33    cp starts/start.nc .
34elif [ -f "starts/start1D.txt" ]; then
35    cp starts/start1D.txt .
36fi
37if [ -f "starts/startpem.nc" ]; then
38    cp starts/startpem.nc .
39fi
40# Cleaning of files in the sub-folders
41rm -f diags/*
42rm -f starts/*
43rm -f logs/*
44echo "Done!"
Note: See TracBrowser for help on using the repository browser.