38 | | |
39 | | print - "\nWorking with file ${F_CFG}\nin directory ${j}\nfor ${n_f}"; |
40 | | if [ ! X$( echo ${j} | grep USER_SPEC ) = X ] ; then |
41 | | echo "USER_SPEC directory exist in path, do not use this config.card" |
42 | | continue |
43 | | fi |
44 | | |
45 | | # Add specific treatment if new type of configuration |
46 | | if [ -d ${j}/USER_SPEC ] && [ -d ${j}/GENERAL ] ; then |
47 | | echo "This is new configuration structure" |
48 | | IGCM_card_DefineVariableFromOption ${j}'/'${F_CFG} UserChoices JobName |
49 | | IGCM_card_DefineVariableFromOption ${j}'/'${F_CFG} UserChoices UserSpec |
50 | | echo "JobName=${config_UserChoices_JobName}" |
51 | | if [ X${config_UserChoices_UserSpec} = X ] ; then |
52 | | echo "The variable UserSpec must be added in config.card in section UserChoices" |
53 | | echo "UserSpec gives the directory for the .card configurtaion files for the wanted experiement. For exemple UserSpec=IPSLCM5/historical" |
54 | | echo "UserSpec= $Config_UserChoices_UserSpec " |
55 | | continue |
56 | | else |
57 | | echo "UserSpec= $Config_UserChoices_UserSpec " |
58 | | fi |
59 | | |
60 | | if [ -d ${j}/${config_UserChoices_JobName} ] ; then |
61 | | echo "Directory ${j}/${config_UserChoices_JobName} exist already, continue next config.card" |
62 | | continue |
63 | | fi |
64 | | cp -r ${j}/USER_SPEC/${config_UserChoices_UserSpec} ${j}/${config_UserChoices_JobName} |
65 | | cp -r ${j}/GENERAL/* ${j}/${config_UserChoices_JobName}/. |
66 | | cp -f ${j}/${F_CFG} ${j}/${config_UserChoices_JobName}/. |
67 | | j=${j}/${config_UserChoices_JobName} |
68 | | echo new j=$j |
69 | | fi |
70 | | # end test and work |
| 42 | > ls |
| 43 | AA_make |
| 44 | AA_make.ldef |
| 45 | scripts |
| 46 | config.card |
| 47 | GENERAL |
| 48 | USER_SPEC |
| 53 | For the running part, there are 2 directories USER_SPEC and GENERAL and one config.card. The directory GENERAL contains the sub-directories POST, PARAM and DRIVERS. The files in GENERAL are used for all types of experiments using this configuration. [[BR]] |
| 54 | USER_SPEC contains different sub-directories with all cards needed for a set of proposed experiments. For one experiment, a config.card and a directory COMP exist. The COMP directory contains all components card for the experiment. For exemple the expermiment historical : |
| 55 | |
| 56 | {{{ |
| 57 | > ls USER_SPEC |
| 58 | IPSLCM5A |
| 59 | |
| 60 | > ls USER_SPEC/IPSLCM5 |
| 61 | Chistorical |
| 62 | CpiControl |
| 63 | EXP00 |
| 64 | historical |
| 65 | piControl |
| 66 | |
| 67 | > ls USER_SPEC/IPSLCM5/historical |
| 68 | config.card |
| 69 | COMP |
| 70 | |
| 71 | > ls USER_SPEC/IPSLCM5/historical/COMP |
| 72 | lim2.card |
| 73 | lmdz.card |
| 74 | oasis.card |
| 75 | opa9.card |
| 76 | orchidee.card |
| 77 | pisces.card |
| 78 | stomate.card |
| 79 | }}} |
| 80 | |
| 81 | [[BR]] |
| 82 | |
| 83 | '''How to create a job and run directory''' |
| 84 | Combining the GENERAL directory with one of the sub-directories in USER_SPEC makes a complete run directory. The ins_job now contains an |
| 85 | |
| 86 | |
| 87 | To set up a complete run directory, is done by adding one of the sub-directories in USER_SPEC into the GENERAL directory. |
| 88 | |
| 89 | |
| 90 | |
| 91 | |