Skip to content

Commit

Permalink
refactor(bash): better comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yoctoyotta1024 committed Apr 10, 2024
1 parent 3b0ff5e commit 2d2513f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/compile_run_cleocoupledsdm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,27 @@
#SBATCH --output=./run_cleocoupledsdm_out.%j.out
#SBATCH --error=./run_cleocoupledsdm_err.%j.out

### ------------- PLEASE NOTE: this script assumes you ------------- ###
### ------------- have already built CLEO in path2build ------------ ###
### ------------------- directory using cmake -------------------- ###
### ------------- PLEASE NOTE: this script assumes you have ------------- ###
### ------- already built CLEO in "path2build" and compiled the --------- ###
### ------------- desired executable in "path2build/src" ---------------- ###

### ----- You need to edit these lines to set your ----- ###
### ----- default compiler and python environment ---- ###
### ---- and paths for CLEO and build directories ---- ###
### ------------------ input parameters ---------------- ###
### ----- You need to edit these lines to specify ------ ###
### ------- your environment and directory paths ------- ###
module load python3/2022.01-gcc-11.2.0

executable="cleocoupledsdm"
path2CLEO=${HOME}/CLEO/
path2build=$1 # get from command line argument
path2build=$1 # get from command line argument
configfile=${HOME}/CLEO/src/config/config.txt
### ---------------------------------------------------- ###

### ----------------- compile executable --------------- ###
if [ "${path2build}" == "" ]
then
path2build=${HOME}/CLEO/build/
fi
### ---------------------------------------------------- ###

### ----------------- compile executable --------------- ###
compilecmd="${path2CLEO}/scripts/bash/compile_cleo.sh ${path2build} ${executable}"
echo ${compilecmd}
${compilecmd}
Expand Down

0 comments on commit 2d2513f

Please sign in to comment.