Commit 3d272e8b authored by Femi Kadri's avatar Femi Kadri

modification to chain script

parent ba741e1b
......@@ -393,6 +393,7 @@ setenv job_caused_an_error "0"
if( ${cluster_name} == "schooner" ) then
setenv job_did_not_crash `grep FINISHED *${this_job_id}_stdout.txt | wc -l`
setenv job_caused_an_error `egrep -i 'ERROR|fault|segmentation|SIGSEGV|forrtl|SIGKILL|killed|severe|exited|Unreachable|SIGUSR2' *${this_job_id}_*.txt | wc -l`
else( ${cluster_name} == "stampede" )
setenv job_did_not_crash `grep FINISHED *${this_job_id}.out | wc -l`
setenv job_caused_an_error `egrep -i 'ERROR|fault|segmentation|SIGSEGV|forrtl|SIGKILL|killed|severe|exited|Unreachable|SIGUSR2' *${this_job_id}.err | wc -l`
......@@ -407,7 +408,7 @@ if ((${job_did_not_crash} == 0) || (${job_caused_an_error} > 0 )) then
echo ' ... EXITING :( '
if ( ${cluster_name} == "schooner" ) then
grep -i ERROR *${this_job_id}_stdout.txt
else( ${cluster_name} == "stampede" )
else( ${cluster_name} == "stampede" )
grep -i ERROR *${this_job_id}.out
endif
# Put the input file back the way it was before this script ran.
......@@ -676,11 +677,11 @@ while ((${iteration_index} <= ${maximum_number_of_jobs}) && (${job_did_not_crash
else if( ${cluster_name} == "schooner" ) then
setenv this_job_id `sbatch ${cluster_name}_initial_LBM.sh | awk '{ print $4; }'`
setenv this_job_id `sbatch ${cluster_name}_initial_LST.sh | awk '{ print $4; }'`
else if( ${cluster_name} == "stampede" ) then
setenv this_job_id `sbatch ${cluster_name}_initial_LBM.sh | grep "Submitted batch"| awk '{ print $4; }'`
setenv this_job_id `sbatch ${cluster_name}_initial_LST.sh | grep "Submitted batch"| awk '{ print $4; }'`
else if ( ${cluster_name} == "lonestar" ) then
......@@ -717,11 +718,11 @@ while ((${iteration_index} <= ${maximum_number_of_jobs}) && (${job_did_not_crash
else if( ${cluster_name} == "schooner" ) then
setenv this_job_id `sbatch ${cluster_name}_resume_LBM.sh | awk '{ print $4; }'`
setenv this_job_id `sbatch ${cluster_name}_resume_LST.sh | awk '{ print $4; }'`
else if( ${cluster_name} == "stampede" ) then
setenv this_job_id `sbatch ${cluster_name}_resume_LBM.sh | grep "Submitted batch"| awk '{ print $4; }'`
setenv this_job_id `sbatch ${cluster_name}_resume_LST.sh | grep "Submitted batch"| awk '{ print $4; }'`
else if ( ${cluster_name} == "lonestar" ) then
......@@ -887,11 +888,11 @@ touch LST_currently_converged.dat
else if( ${cluster_name} == "schooner" ) then
setenv this_job_id `sbatch ${cluster_name}_finalize_LBM.sh | awk '{ print $4; }'`
setenv this_job_id `sbatch ${cluster_name}_finalize_LST.sh | awk '{ print $4; }'`
else if( ${cluster_name} == "stampede" ) then
setenv this_job_id `sbatch ${cluster_name}_finalize_LBM.sh | grep "Submitted batch"| awk '{ print $4; }'`
setenv this_job_id `sbatch ${cluster_name}_finalize_LST.sh | grep "Submitted batch"| awk '{ print $4; }'`
else if ( ${cluster_name} == "lonestar" ) then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment