Skip to content
Snippets Groups Projects
Commit 64f18b14 authored by Guillaume S's avatar Guillaume S
Browse files

lower maximum // jobs number from 100 to 90

parent a5baa5e6
Branches branch_4.2
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ if [ ! -s ${d2D}/${fhpg} ]; then
if [[ -s ${p2D} && -s ${p3D} ]]; then
sed -e "s/fsurf2D/${f2D}/g; s/finst3D/${f3D}/g; s/fmask/${fmsk}/g; s/fhpg/${fhpg}/g; s~fdir~${d2D}~g" < /home/ar0s/SRC/NEMO/main/tools/ABL_TOOLS/namelist_abl_tools.base > /home/ar0s/PROD_ERA5_ABL/JOBS/namelist_abl_tools.hpg.$date
while [ $(squeue -u $USER -h -t pending,running -r | wc -l) -eq 100 ]; do echo "sleeping..."; sleep 10; done
while [ $(squeue -u $USER -h -t pending,running -r | wc -l) -eq 90 ]; do echo "sleeping..."; sleep 10; done
if [ ${date} -eq ${date_end} ]; then echo "waiting..."; w="--wait"; fi
......
......@@ -25,7 +25,7 @@ if [ ! -s ${d2D}/${fabl} ]; then
sed -e "s/fsurf2D/${f2D}/g; s/finst3D/${f3D}/g; s/fmask/${fmsk}/g; s/fhpg/${fhpg}/g; s/fabl/${fabl}/g; s~fdir~${d2D}~g" < /home/ar0s/SRC/NEMO/main/tools/ABL_TOOLS/namelist_abl_tools.base > /home/ar0s/PROD_ERA5_ABL/JOBS/namelist_abl_tools.vint.$date
sed -i "s/ln_read_mask = .false./ln_read_mask = .true./g" /home/ar0s/PROD_ERA5_ABL/JOBS/namelist_abl_tools.vint.$date
while [ $(squeue -u $USER -h -t pending,running -r | wc -l) -eq 100 ]; do echo "sleeping..."; sleep 10; done
while [ $(squeue -u $USER -h -t pending,running -r | wc -l) -eq 90 ]; do echo "sleeping..."; sleep 10; done
if [ ${date} -eq ${date_end} ]; then echo "waiting..."; w="--wait"; fi
......
......@@ -19,7 +19,7 @@ d2D=$(dirname $p2D) ; d3D=$(dirname $p3D)
if [ ! -s ${dout}/${f2D} ]; then
if [ -s ${p2D} ]; then
while [ $(squeue -u $USER -h -t pending,running -r | wc -l) -eq 100 ]; do echo "sleeping..."; sleep 10; done
while [ $(squeue -u $USER -h -t pending,running -r | wc -l) -eq 90 ]; do echo "sleeping..."; sleep 10; done
if [ ${date} -eq ${date_end} ]; then echo "waiting..."; w="--wait"; fi
sbatch ${w} --job-name=cdogrid2D_${date} /home/ar0s/PROD_ERA5_ABL/job_cdogrid.sbatch ${p2D} ${dout}/${f2D}
else
......@@ -31,7 +31,7 @@ fi
if [ ! -s ${dout}/${f3D} ]; then
if [ -s ${p3D} ]; then
while [ $(squeue -u $USER -h -t pending,running -r | wc -l) -eq 100 ]; do echo "sleeping..."; sleep 10; done
while [ $(squeue -u $USER -h -t pending,running -r | wc -l) -eq 90 ]; do echo "sleeping..."; sleep 10; done
if [ ${date} -eq ${date_end} ]; then echo "waiting..."; w="--wait"; fi
sbatch ${w} --job-name=cdogrid3D_${date} /home/ar0s/PROD_ERA5_ABL/job_cdogrid.sbatch ${p3D} ${dout}/${f3D}
if [ -n "${w}" ]; then
......
......@@ -20,7 +20,7 @@ for v in ${var_list[@]}; do
if [ ! -s ${d}/${fout} ]; then
if [ -s ${d}/${finp} ]; then
while [ $(squeue -u $USER -h -t pending,running -r | wc -l) -eq 100 ]; do echo "sleeping..."; sleep 10; done
while [ $(squeue -u $USER -h -t pending,running -r | wc -l) -eq 90 ]; do echo "sleeping..."; sleep 10; done
if [[ ${date} -eq ${date_end} && ${v} == "humi" ]]; then echo "waiting..."; w="--wait"; fi
sbatch ${w} --job-name=cdomiss_${date} /home/ar0s/PROD_ERA5_ABL/job_cdomiss.sbatch ${d}/${finp} ${d}/${fout}
if [ -n "${w}" ]; then
......
......@@ -25,7 +25,7 @@ file_nb=$( eval "ls ${dabl}/{$(tr ' ' ',' <<< ${var_list[*]})}_${fabl} 2>/dev/nu
if [ ${file_nb} -lt ${var_nb} ]; then
if [ -s ${pabl} ]; then
while [ $(squeue -u $USER -h -t pending,running -r | wc -l) -eq 100 ]; do echo "sleeping..."; sleep 10; done
while [ $(squeue -u $USER -h -t pending,running -r | wc -l) -eq 90 ]; do echo "sleeping..."; sleep 10; done
if [ ${date} -eq ${date_end} ]; then echo "waiting..."; w="--wait"; fi
sbatch ${w} --job-name=cdosplit_${date} /home/ar0s/PROD_ERA5_ABL/job_cdosplit.sbatch $pabl
if [ -n "${w}" ]; then
......
......@@ -26,7 +26,7 @@ if [ ! -s ${dir_out}/${file_out} ]; then
fi
# SUBMIT MARS REQUEST
while [ $(squeue -u $USER -h -t pending,running -r | wc -l) -eq 100 ]; do echo "sleeping..."; sleep 10; done
while [ $(squeue -u $USER -h -t pending,running -r | wc -l) -eq 90 ]; do echo "sleeping..."; sleep 10; done
if [ ${date} -eq ${date_end} ]; then echo "waiting..."; w="--wait"; fi
sbatch ${w} --job-name=mars_${req_type}_${date} <<EOF
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment