Changeset 1607


Ignore:
Timestamp:
12/08/23 11:00:25 (5 months ago)
Author:
nillod
Message:

Replace job 'PeriodNb?' with 'NbPeriodsPerJob?' to be more explicit for users.

Location:
trunk/libIGCM
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_job

    r1596 r1607  
    176176#D- -1. PLACE FOR USER MODIFICATION 
    177177#D-     - Job Verbosity 
    178 #D-     - PeriodNb 
     178#D-     - NbPeriodsPerJob 
    179179#D-     - Experience type : DEB(ug), DEV(elopment), RUN 
    180180#D--------------------------------------------------------------------== 
     
    200200 
    201201#D- Number of execution in one job 
    202 PeriodNb=1 
     202NbPeriodsPerJob=1 
    203203 
    204204#D- 
     
    395395 
    396396PeriodContinue=false 
    397 if [ ${Period} -le ${PeriodNb} ]; then 
     397if [ ${Period} -le ${NbPeriodsPerJob} ]; then 
    398398  PeriodContinue=true 
    399399fi 
     
    401401 
    402402  echo 
    403   echo "Starting iteration ${Period} / ${PeriodNb}" 
     403  echo "Starting iteration ${Period} / ${NbPeriodsPerJob}" 
    404404 
    405405  #D- 
     
    637637 
    638638  PeriodContinue=false 
    639   if [ ${Period} -le ${PeriodNb} ]; then 
     639  if [ ${Period} -le ${NbPeriodsPerJob} ]; then 
    640640    PeriodContinue=true 
    641641  fi 
  • trunk/libIGCM/libIGCM.card

    r373 r1607  
    1010#************************************************************** 
    1111 
    12 #D- You MUST change cards (and first config.card) parameters too be compatible 
     12#D- You MUST change cards (and first config.card) parameters to be compatible 
    1313#D- with your modifications here. 
    1414[UserChanges] 
    15 PeriodNb=2 
     15NbPeriodsPerJob=2 
    1616#config_UserChoices_DateEnd=1900-02-03 
    1717#config_UserChoices_PeriodLength= 1D 
  • trunk/libIGCM/libIGCM_config/libIGCM_config.ksh

    r1606 r1607  
    450450 
    451451  # Here we offer the possibility to redefine R_INIT, R_BC 
    452   # and PeriodNb through config.card 
     452  # and NbPeriodsPerJob through config.card 
    453453  R_INIT=${config_UserChoices_R_INIT:=${R_IN}/INIT} 
    454454  echo 
    455   IGCM_debug_Print 2 "(Re)Define R_INIT, R_BC and PeriodNb" 
     455  IGCM_debug_Print 2 "(Re)Define R_INIT, R_BC and NbPeriodsPerJob" 
    456456  IGCM_debug_Print 3 "R_IN=${R_IN}" 
    457457  IGCM_debug_Print 3 "R_INIT=${R_INIT}" 
    458458  R_BC=${config_UserChoices_R_BC:=${R_IN}/BC} 
    459459  IGCM_debug_Print 3  "R_BC=${R_BC}" 
    460   PeriodNb=${config_UserChoices_PeriodNb:=${PeriodNb}} 
    461   IGCM_debug_Print 3  "Loop in main Job with ${PeriodNb} period(s)" 
    462  
     460  NbPeriodsPerJob=${config_UserChoices_NbPeriodsPerJob:=${NbPeriodsPerJob}} 
     461  IGCM_debug_Print 3  "Loop in main Job with ${NbPeriodsPerJob} period(s)" 
     462   
    463463  # SD ADA SPECIFIC # 
    464464  #      TO FIX     # 
    465465  #IGCM_sys_TestDirArchive ${R_IN} 
    466466  #[ $? != 0 ] && IGCM_debug_Exit "IGCM_sys_TestDirArchive" 
    467  
     467   
    468468  if ( ${FirstInitialize} ) ; then 
    469469    IGCM_sys_MkdirArchive   ${R_SAVE} 
     
    14111411    consumeHoursPerWholeSimulation=$( echo "scale=6;${consumeHoursPerPeriod}/${PeriodLengthInDays}*${ExperienceLengthInDays}" | bc ) 
    14121412 
    1413     recommendedPeriodNb=$( echo "scale=6;${jobWarningDelay}/3600/${consumeHoursPerPeriod}*${coreNumber}" | bc ) 
    1414  
     1413    recommendedNbPeriodsPerJob=$( echo "scale=6;${jobWarningDelay}/3600/${consumeHoursPerPeriod}*${coreNumber}" | bc ) 
     1414     
    14151415    IGCM_sys_SendMail Accounting 
    14161416  fi 
     
    14591459        IGCM_debug_Print 1  "Change config_UserChoices_PeriodLength=${config_UserChoices_PeriodLength}" 
    14601460        ;; 
    1461       PeriodNb) 
    1462         IGCM_debug_Print 1  "Loop in main Job with ${PeriodNb} period(s)" 
     1461      NbPeriodsPerJob) 
     1462        IGCM_debug_Print 1  "Loop in main Job with ${NbPeriodsPerJob} period(s)" 
    14631463        ;; 
    14641464      config_Post_RebuildFrequency) 
  • trunk/libIGCM/libIGCM_ensemble/ENSEMBLE_DOC.txt

    r1475 r1607  
    8989 
    9090This will create all the directories of the ensemble and Qsub.xxx.sh, a shell file  
    91 containing all command to submit all jobs (PeriodNb=60 for all simulations). 
     91containing all command to submit all jobs (NbPeriodsPerJob=10 for all simulations). 
    9292 
    9393The Qclean.PeriodLength.xxx.sh is bash file to use clean_PeriodLength script for 
  • trunk/libIGCM/libIGCM_ensemble/libIGCM_ensemble.ksh

    r1565 r1607  
    5050      Job_Period=${answer} 
    5151  fi 
    52   print "\nPeriodNb in ensemble Jobs is ${Job_Period}" 
     52  print "\nNbPeriodsPerJob in ensemble Jobs is ${Job_Period}" 
    5353   
    5454  IGCM_debug_Print 1 "Ens_PERTURB ACTIVE     = ${ensemble_Ens_PERTURB_active}" 
     
    181181  sed -e "s/\(#.*Script_Output_\)${config_UserChoices_JobName}\(\.*\)/\1${MemberDir}\2/" \ 
    182182      -e "s/\(#.*\)${config_UserChoices_JobName}\(\.*\)/\1${MemberDir} \2/"              \ 
    183       -e "s/^PeriodNb=.*/PeriodNb=${Job_Period}/"                                        \ 
     183      -e "s/^NbPeriodsPerJob=.*/NbPeriodsPerJob=${Job_Period}/"                                        \ 
    184184      ${SUBMIT_DIR}/${StartDir}/${MemberDir}/Job_${MemberDir} > Job_${MemberDir}.tmp 
    185185  IGCM_sys_Mv Job_${MemberDir}.tmp ${SUBMIT_DIR}/${StartDir}/${MemberDir}/Job_${MemberDir} 
  • trunk/libIGCM/libIGCM_sys/jobAccounting.mail

    r1262 r1607  
    55The whole simulation will consume around ${consumeHoursPerWholeSimulation} hours. To be compared with your project allocation. 
    66 
    7 For your case \(a job duration of ${jobWarningDelay} seconds\) the recommended PeriodNb is around ${recommendedPeriodNb}. To be compare with the current setting \(Job_${config_UserChoices_JobName} parameter\) : PeriodNb=${PeriodNb} 
     7For your case \(a job duration of ${jobWarningDelay} seconds\) the recommended NbPeriodsPerJob is around ${recommendedNbPeriodsPerJob}. To be compare with the current setting \(Job_${config_UserChoices_JobName} parameter\) : NbPeriodsPerJob=${NbPeriodsPerJob} 
    88 
    99Greetings! 
Note: See TracChangeset for help on using the changeset viewer.