Opened 13 years ago

Closed 13 years ago

#54 closed enhancement (fixed)

Section not found à  signaler

Reported by: mafoipsl Owned by: sdipsl
Priority: minor Milestone: libIGCM_v1.11
Component: treatment Version:
Keywords: Post Section not found Cc:

Description

Je crois qu'il manque un test dans libIGCM_comp.ksh si la section Post demandée n'existe pas.

Le test sur Section not found existe déjà ligne 144.

Quelque chose à mettre là :

  935                         if [ $DRYRUN -le 1 ]; then
  936                             if [ X$( eval echo \${${compname}_${flag_post}_Patches[0]} ) !=  X${NULL_STR} ]; then

       [ $( eval echo \${${compname}_${flag_post}_Patches[*]} ) =  "Section not found" ] && ON FAIT CE QU IL FAUT POUR PREVENIR

 937                                 for Patch in $( eval echo \${${compname}_${flag_post}_Patches[*]} ); do
 938                                     echo ". ${libIGCM_POST}/libIGCM_post/IGCM_${Patch}.ksh" >> ${RUN_DIR}/REBUILD_${PeriodDateBegin}/rebuild.ksh

Cela arrive quand on enlève une section entière dans un fichier card de genre :

-[Post_1M_grid_T]
-Patches = (Patch_20091118_mask)
-GatherWithInternal = (nav_lon, nav_lat, deptht, time_counter, time_counter_bnds)
-TimeSeriesVars2D = (evs, ficeberg, friver, fsitherm, hfcorr, hfevapds, hfibthermds, hfrainds, hfrunoffds, hfsithermds, hfsnthermds, nshfls, omlmax, pbo, pr, prsn, sfdsi, so20chgt, so28chgt, sohefldo, sohtc300, soicecov, somixhgt, somxl010, sosaline, soshfldo, sossheig, sosstsst, sotaumod, sowaflcd, sowaflup, sowindsp, tossq, vsfsit, wfcorr, zossq)
-ChunckJob2D = NONE
-TimeSeriesVars3D = (rhopoto, rsds, thkcello, vosaline,votemper)
-ChunckJob3D = 50Y
-Seasonal=ON

Infos :

  • si on veut enlever une telle section, vérifier qu'elle n'est référencée nulle part dans le fichier card. Mettre NONE à la place
  • pour stopper une série temporelle, il suffit de mettre ChunckJobxD = OFF ou de commenter les lignes # TimeSeriesVarsxD = ...

Change History (6)

comment:1 Changed 13 years ago by sdipsl

  • Component changed from PostProcessing to treatment
  • Milestone set to libIGCM_v1.11

Le fonction IGCM_config_Check doit vérifier l'intégrité des card. Si une section manque, on stop.

Une section demandée DOIT être présente. Sans cela les fichiers ne seraient trop bancals (aucun patch ne serait appliqué...)

comment:2 Changed 13 years ago by sdipsl

  • Milestone changed from libIGCM_v1.11 to libIGCM_v1.12
  • Summary changed from Section not found à signaler to Section not found à  signaler

comment:3 Changed 13 years ago by sdipsl

Solution:
Si la section n'existe pas alors on s'arrête, par exemple [Post_1M_grid_T]
Si pour une section donnée des options manques on décide au cas par cas, en particulier pour offrir la rétro compatibilité (car de nouvelles options sont apparues).

comment:4 Changed 13 years ago by sdipsl

  • Owner changed from somebody to sdipsl
  • Status changed from new to assigned

comment:5 Changed 13 years ago by sdipsl

  • Milestone changed from libIGCM_v1.12 to libIGCM_v1.11

comment:6 Changed 13 years ago by sdipsl

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.