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

Last change on this file since 4113 was 4110, checked in by jbclement, 5 days ago

PEM:

  • Introduction of a configurable display/logging system with options 'out2term', 'out2log', 'verbosity_lvl'. All messages now use verbosity levels ('LVL_NFO', 'LVL_WRN', 'LVL_ERR' and 'LVL_DBG').
  • Code encapsulation improvements with systematic privacy/protection of module variables.
  • Addition of workflow safety checks for required executables, dependencies (e.g. 'ncdump'), input files and callphys keys.
  • Renaming of PEM starting and diagnostic files ("startevol.nc" into "startevo.nc", "diagevol.nc" into "diagevo.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 "pcm_run*.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/startevo.nc" ]; then
38    cp starts/startevo.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.