wiki:Documentation/UserGuide/IGCMheadaches

Version 1 (modified by mmcgrath, 7 years ago) (diff)

--

Sometimes 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.

This 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. I had to change the following in libIGCM_sys_curie.ksh.

        else
          # Default : ccc_mprun is NOT used if nb_proc eq 1
          # to have out/err per process on different files
          # echo "./${ExeNameOut} > out_${ExeNameOut}.out 2>out_${ExeNameOut}.err" >> script_${ExeNameOut}.ksh
            echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh
            EXECUTION="/usr/bin/time ./script_${ExeNameOut}.ksh"
        fi

can be changed to

        else
          # Default : ccc_mprun is NOT used if nb_proc eq 1
          # to have out/err per process on different files
          # echo "./${ExeNameOut} > out_${ExeNameOut}.out 2>out_${ExeNameOut}.err" >> script_${ExeNameOut}.ksh
            echo "#!/bin/ksh" > script_${ExeNameOut}.ksh
            echo "./${ExeNameOut}" >> script_${ExeNameOut}.ksh
            IGCM_sys_Chmod u+x script_${ExeNameOut}.ksh
            EXECUTION="/usr/bin/time ./script_${ExeNameOut}.ksh"
        fi

This 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.