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

Last change on this file since 4090 was 4090, checked in by jbclement, 34 hours ago

PEM:
Update README and change "startpem.nc" into "startevol.nc".
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 pem_workflow.sts
14find . -type f -name "PCMrun*.job" ! -name "pcm_run.job" -delete
15rm -f *.out
16rm -f kill_pem_workflow.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/startevol.nc" ]; then
38    cp starts/startevol.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.