Changes between Initial Version and Version 1 of Documentation/UserGuide/IGCMheadaches


Ignore:
Timestamp:
2014-06-16T17:12:54+02:00 (10 years ago)
Author:
mmcgrath
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/UserGuide/IGCMheadaches

    v1 v1  
     1Sometimes you are doing something with IGCM and you get a random error message, which may or may not be reproducible.  This page is a collection of error messages you might see and fixes which sometimes work to avoid them in the future. 
     2 
     3This is for a problem on Curie.  Once I get the error message again, I'll post it.  This is just to remind me what the fix was for the moment.   
     4I had to change the following in libIGCM_sys_curie.ksh. 
     5 
     6{{{ 
     7        else 
     8          # Default : ccc_mprun is NOT used if nb_proc eq 1 
     9          # to have out/err per process on different files 
     10          # echo "./${ExeNameOut} > out_${ExeNameOut}.out 2>out_${ExeNameOut}.err" >> script_${ExeNameOut}.ksh 
     11            echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
     12            EXECUTION="/usr/bin/time ./script_${ExeNameOut}.ksh" 
     13        fi 
     14}}} 
     15 
     16can be changed to   
     17 
     18{{{ 
     19        else 
     20          # Default : ccc_mprun is NOT used if nb_proc eq 1 
     21          # to have out/err per process on different files 
     22          # echo "./${ExeNameOut} > out_${ExeNameOut}.out 2>out_${ExeNameOut}.err" >> script_${ExeNameOut}.ksh 
     23            echo "#!/bin/ksh" > script_${ExeNameOut}.ksh 
     24            echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh 
     25            IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh 
     26            EXECUTION="/usr/bin/time ./script_${ExeNameOut}.ksh" 
     27        fi 
     28}}} 
     29 
     30This adds a line to the beginning of the script which defines the execution shell (and allows it to execute in case a shell has not already been defined), in addition to making the script executable.  It seems to run now, though I'm not 100% sure that the output files are correct (I get a crash).  Still looking into it.