Changes between Version 2 and Version 3 of SmoothFile
- Timestamp:
- 05/09/11 12:56:56 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SmoothFile
v2 v3 33 33 34 34 === Change the test for re-submission === 35 36 Changeset [260] : 37 * Minor changes regarding smooth files handling 38 * We do not want to erase them between gcm execution 39 * We use that for aerosols forcing and ozone forcing updates 40 {{{ 41 385 if [ X${ret} = Xtrue ] ; then 42 385 if ( [ X${ret} = Xtrue ] || [ ${Period} -eq 1 ] ) ; then 43 }}} 44 This force the file to be get in the fist Period of a re-submission. 45 46 Changeset [409] : [[BR]] 47 For Smooth file, first access is always true for Period=1. 48 Get Files when Smooth\Min<=Cumul\Period<=Smooth\Max and modulo [min]:[modulo:][max] is true. [BR] 49 see ticket #44 50 {{{ 51 384 if ( [ X${ret} = Xtrue ] || [ ${Period} -eq 1 ] ) ; then 52 387 if ( [ X${ret} = Xtrue ] || ( [ ${Period} -eq 1 ] && [ ${CumulPeriod} -ge ${SmoothMin} ] && [ ${CumulPeriod} -le ${SmoothMax} ) ) ; then 53 }}} 54 This force the file to be get in the fist Period of a re-submission '''AND''' Smooth\Min <= Cumul\Period <= Smooth\Max. 55 35 56 === Bug on re-submission === 36 57 Changeset [412] : 37 58 {{{ 38 386eval ret=$( IGCM_SmoothModulo ${SmoothDef} ${CumulPeriod} )39 387if ( [ X${ret} = Xtrue ] || ( [ ${Period} -eq 1 ] && [ ${CumulPeriod} -ge ${SmoothMin} ] && [ ${CumulPeriod} -le ${SmoothMax} ) ) ; then59 386 eval ret=$( IGCM_SmoothModulo ${SmoothDef} ${CumulPeriod} ) 60 387 if ( [ X${ret} = Xtrue ] || ( [ ${Period} -eq 1 ] && [ ${CumulPeriod} -ge ${SmoothMin} ] && [ ${CumulPeriod} -le ${SmoothMax} ) ) ; then 40 61 }}} 41 62 {{{ … … 51 72 }}} 52 73 53 == Smooth\Modulo function == 74 You should only use this version. 75 76 == SmoothModulo function == 54 77 Definition of Smooth modulo function 55 78 … … 62 85 63 86 String\Modulo : A string of min:module:max like definition of Scilab vectors. 64 <<< 87 {{{ 65 88 [min]:[modulo:][max] 66 >>> 89 }}} 67 90 where : 68 91 * [] value are optionnals; … … 75 98 Example : 76 99 * 1:12: for a 1M Period\Length means in all january only through the end (defaut end corresponds to Date\End) 77 * 1:12:124 for a 1M Period\Length meansthen same, but only if Cumul Period < 125.100 * 1:12:124 for a 1M Period\Length meansthen same, but only if Cumul\Period < 125. 78 101 * :12:124 is the same a previous (default init is 1). 79 * 1:124 means always before CumulPeriod < 125. 102 * 1:124 means always before Cumul\Period < 125. 103 * : always. You can use Boundary\Files section to do this.