Changeset 5420 for BOL/LMDZ_Setup


Ignore:
Timestamp:
Dec 18, 2024, 1:04:30 AM (22 hours ago)
Author:
fhourdin
Message:

Minor change in $SCRATCH directory management

Location:
BOL/LMDZ_Setup
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • BOL/LMDZ_Setup/lmdz_env.sh

    r5415 r5420  
    99
    1010# <root_dir> will be set by sed by setup.sh here
    11 root_dir=/home/abarral/PycharmProjects/installLMDZ/LMDZ_Setup
     11root_dir=/home/hourdin/TMP/LMDZ_Setup
    1212
    1313function get_hostname {
     
    4343      account="lmd"  # $(idrproj | grep active | awk '{ print $1}') doesn't work on compute nodes
    4444      ARCH="X64_JEANZAY_PBIOIPSL"
    45       SIMRUNBASEDIR="$SCRATCH/"
     45      SIMRUNBASEDIR="$SCRATCH/$(basename $root_dir)"
    4646      LMDZD="$root_dir/LMDZD"
    4747      LMDZ_INIT="$root_dir/LMDZ_Init"
     
    6161
    6262      ARCH="X64_MESOIPSL-GNU"
    63       SIMRUNBASEDIR="$SCRATCH/"
     63      SIMRUNBASEDIR="$SCRATCH/$(basename $root_dir)"
    6464      LMDZD="$root_dir/LMDZD"
    6565      LMDZ_INIT="$HOME/LMDZ_Init"
     
    9898      account=$(/usr/sbin/my_project.py -l 2>&1 | head -1 | cut -d " " -f 3- | cut -c 5-)
    9999      ARCH="X64_ADASTRA-GNU"
    100       SIMRUNBASEDIR="$SCRATCHDIR/"
     100      SIMRUNBASEDIR="$SCRATCHDIR/$(basename $root_dir)"
    101101      LMDZD="$root_dir/LMDZD"
    102102      LMDZ_INIT="$WORKDIR/LMDZ_Init"
     
    112112    *) echo "WARNING: RUNNING THIS SCRIPT ON A LOCAL COMPUTER IS DISCOURAGED (lackluster cpus and memory)"
    113113      ARCH="local-gfortran-parallel"  # The arch file to use
    114       SIMRUNBASEDIR="/tmp/SCRATCH/"  # Where the simulations will be executed ($SIMRUNBASEDIR/LMDZ_Setup/...)
     114      SIMRUNBASEDIR="$root_dir/SCRATCH/"  # Where the simulations will be executed ($SIMRUNBASEDIR/LMDZ_Setup/...)
    115115      LMDZD="$root_dir/LMDZD"  # Where the sources will be downloaded and compiled
    116116      LMDZ_INIT="$HOME/LMDZ_Init"  # Where to store shared files used for initialisation. Should be outside the LMDZ_Setup dir since it's shared between several LMDZ_Setup.
  • BOL/LMDZ_Setup/script_SIMU

    r5415 r5420  
    7777
    7878# Repertoires de travail
    79 WWORKD=$SCRATCHD/$SIMU_dir$$
     79WWORKD=$SCRATCHD/$simul$$
    8080if [[ -d $WWORKD ]]; then  # useful when running on local computer, where jobs aren't submitted
    8181  rm -rf "$WWORKD"
  • BOL/LMDZ_Setup/setup.sh

    r5415 r5420  
    380380
    381381function setup_simu() {
    382   SIMRUNTOPDIR="$SIMRUNBASEDIR/$(basename "$local")"
     382  #SIMRUNTOPDIR="$SIMRUNBASEDIR/$(basename "$local")"
     383  SIMRUNTOPDIR="$SIMRUNBASEDIR"
    383384  SIMRUNDIR=$SIMRUNTOPDIR
    384385  mkdir -p "$SIMRUNDIR"
Note: See TracChangeset for help on using the changeset viewer.