514 | | |
515 | | |
516 | | Change this bit |
517 | | {{{ |
518 | | unset ValueSiteParams |
519 | | ipft=0 |
520 | | while [ $ipft -lt ${NbPFTs} ] ; do |
521 | | ValueSiteParams[${ipft}]=${group_site[$(( indext )) ]} |
522 | | (( indext = indext + 1 )) |
523 | | (( ipft = ipft + 1 )) |
524 | | done |
525 | | }}} |
526 | | to |
| 519 | tell ensemble.ksh to use the new variable by modifying: |
| 520 | {{{ |
| 521 | #DSGmod |
| 522 | if [ ${ensemble_CONFIG_NameSitesParam[${iphys}]} = "SOIL_FRACTIONS" ] ; then |
| 523 | echo 'nbSOILs:' $NbSOILs |
| 524 | DSGcunt=$NbSOILs |
| 525 | else |
| 526 | echo 'nbPFTs:' $NbPFTs |
| 527 | DSGcunt=$NbPFTs |
| 528 | fi |
| 529 | |
| 530 | case ${SearchParam} in |
| 531 | undefined) |
| 532 | echo "ERROR : parameter ${ensemble_CONFIG_NameSitesParam[${iphys}]} doesn't exist in run.def parameter file !" |
| 533 | echo "You must correct NameSiteParam option in your card file or add new parameter in run.def file" |
| 534 | echo "We must STOP here." |
| 535 | exit 1 |
| 536 | ;; |
| 537 | value) |
| 538 | (( NumInfosBySite = NumInfosBySite + 1 )) |
| 539 | ;; |
| 540 | line) |
| 541 | (( NumInfosBySite = NumInfosBySite + DSGcunt )) |
| 542 | ;; |
| 543 | vector) |
| 544 | (( NumInfosBySite = NumInfosBySite + DSGcunt )) |
| 545 | ;; |
| 546 | esac |
| 547 | #DSGmod |
| 548 | }}} |
| 549 | |
| 550 | Now, let Job_ENSEMBLE know that, too, by modifying: |