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

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

PEM:
Update README and change "startpem.nc" into "startevol.nc".
JBC

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