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

Last change on this file since 4113 was 4110, checked in by jbclement, 9 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
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
[4091]14find . -type f -name "pcm_run*.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
[4110]37if [ -f "starts/startevo.nc" ]; then
38    cp starts/startevo.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.