Changeset 1242 for trunk/libIGCM/ins_job


Ignore:
Timestamp:
10/06/15 09:34:04 (9 years ago)
Author:
sdipsl
Message:
  • IGCM_config_ConfigureExecution was buggy
  • Fix Ada headers edition
  • typo
  • has been tested
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/ins_job

    r1238 r1242  
    108108. ${libIGCM}/libIGCM_date/libIGCM_date.ksh 
    109109. ${libIGCM}/libIGCM_sys/libIGCM_sys.ksh 
     110. ${libIGCM}/libIGCM_config/libIGCM_config.ksh 
    110111if [ $x_e = 'true' ] ; then 
    111112  . ${libIGCM}/libIGCM_ensemble/libIGCM_ensemble.ksh 
     
    161162F_CFG_ENS='ensemble.card'; 
    162163SUBMIT_DIR_ENS=$( pwd ) 
    163 for i in $(find ${d_n}/.. -name ${F_CFG} -print) 
     164#for i in $(find ${d_n}/.. -name ${F_CFG} -print) 
     165for i in $(find $( pwd ) -name ${F_CFG} -print) 
    164166do 
    165167  j=$(cd ${i%/*};/bin/pwd;) 
     
    189191  IGCM_card_DefineArrayFromSection ${j}'/'${F_CFG} UserChoices 
    190192  # Set default values 
    191   config_UserChoices_JobNumProcTot=1 
    192193  config_UserChoices_ExpType="" 
    193194  RESOL_ATM_3D=this_is_a_test_string 
     
    257258    \cp ${F_RCI} ${j}; 
    258259   } 
    259    
     260 
     261  #================================== 
     262  # Read ListOfComponents section: 
     263  #echo 
     264  #IGCM_debug_Print 1 "DefineArrayFromSection : ListOfComponents" 
     265 
     266  IGCM_card_DefineArrayFromSection  ${j}'/'${F_CFG} ListOfComponents 
     267  for comp in ${config_ListOfComponents[*]} ; do 
     268    IGCM_card_DefineArrayFromOption  ${j}'/'${F_CFG} ListOfComponents ${comp} 
     269  done 
     270  #IGCM_debug_Print 3 ${config_ListOfComponents[*]} 
     271 
    260272  #================================== 
    261273  # Read Executable section: 
    262   IGCM_card_DefineArrayFromSection ${j}'/'${F_CFG} Executable   
     274  IGCM_card_DefineArrayFromSection ${j}'/'${F_CFG} Executable 
    263275 
    264276  # Define the execution context (MPMD, SPMD, MPI/OMP ...) 
    265   IGCM_config_ConfigureExexution 
     277  IGCM_config_ConfigureExecution ${j}'/'${F_CFG} 
    266278 
    267279  # coreNumber    : TOTAL NUMBER OF CORES 
     
    277289      -e "s%::modipsl::%${F_MOD}%" \ 
    278290      -e "s/::Jobname::/${JobName}/" \ 
    279       -e "s/::JobNumProcTot::/${config_UserChoices_JobNumProcTot}/" \ 
    280291      -e "s/::default_project::/${ProjectID}/" \ 
    281292      ${F_JOB} > ${j}'/'${n_f} 
Note: See TracChangeset for help on using the changeset viewer.