|
1 | 1 | # (C) Copyright 2005- ECMWF.
|
2 | 2 |
|
3 | 3 | transient dummyc=0: hidden;
|
4 |
| -# Evaluate MTG2Switch concept. |
5 |
| -# Default is 1 unless changed by centre or pseudocentre, set in boot.def. |
6 |
| -# To be discussed. This means that all centres are default post-MTG2 unless entry is added in concept. |
7 | 4 |
|
8 |
| -concept MTG2Switch(MTG2SwitchDefault, "MTG2SwitchConcept.def", conceptsDir2,conceptsDir1): no_copy, read_only, long_type; |
| 5 | +# With value of the switch defined in section.4.def, we read the corresponding def files. This works as follows: |
| 6 | +# Pre-MTG2 ( MTG2Switch=0 ): static def files [concept].[tablesVersionMTG2Switch].def |
| 7 | +# Else ( MTG2Switch!=0 ): default def files [concept].def. Ensures continuity of "status quo". |
9 | 8 |
|
10 |
| -# If MTG2Switch is 0 (pre-MTG2) we need to look at pre-MTG2 definitions, tableVersion defined in boot.def. |
11 |
| -# Otherwise look at new definitions. |
12 |
| - |
13 |
| -if ( MTG2Switch == 0 ) { |
14 |
| - |
15 |
| - constant paramIdFilename = "paramId.[tablesVersionMTG2Switch].def" : hidden ; |
16 |
| - constant shortNameFilename = "shortName.[tablesVersionMTG2Switch].def" : hidden ; |
17 |
| - constant unitsFilename = "units.[tablesVersionMTG2Switch].def" : hidden ; |
18 |
| - constant nameFilename = "name.[tablesVersionMTG2Switch].def" : hidden ; |
19 |
| - |
20 |
| -# All other cases other than pre-MTG2 fall into default parameter files |
21 |
| -} else { |
22 |
| - |
23 |
| - constant paramIdFilename = "paramId.def" : hidden ; |
24 |
| - constant shortNameFilename = "shortName.def" : hidden ; |
25 |
| - constant unitsFilename = "units.def" : hidden ; |
26 |
| - constant nameFilename = "name.def" : hidden ; |
27 |
| - |
28 |
| -} |
29 |
| - |
30 |
| -# meta paramIdFilename g2_param_concept_filename("paramId", MTG2Switch, tablesVersionMTG2Switch, datasetForLocal): hidden; |
31 |
| -# meta shortNameFilename g2_param_concept_filename("shortName", MTG2Switch, tablesVersionMTG2Switch, datasetForLocal): hidden; |
32 |
| -# meta unitsFilename g2_param_concept_filename("units", MTG2Switch, tablesVersionMTG2Switch, datasetForLocal): hidden; |
33 |
| -# meta nameFilename g2_param_concept_filename("name", MTG2Switch, tablesVersionMTG2Switch, datasetForLocal): hidden; |
| 9 | +meta paramIdFilename g2_param_concept_filename("paramId", MTG2Switch, tablesVersionMTG2Switch, datasetForLocal): hidden; |
| 10 | +meta shortNameFilename g2_param_concept_filename("shortName", MTG2Switch, tablesVersionMTG2Switch, datasetForLocal): hidden; |
| 11 | +meta unitsFilename g2_param_concept_filename("units", MTG2Switch, tablesVersionMTG2Switch, datasetForLocal): hidden; |
| 12 | +meta nameFilename g2_param_concept_filename("name", MTG2Switch, tablesVersionMTG2Switch, datasetForLocal): hidden; |
34 | 13 |
|
35 | 14 | # Now deal with chemical parameter split, pre and post MTG2
|
36 | 15 | if (defined(MTG2Switch) and MTG2Switch == 2) {
|
@@ -65,7 +44,7 @@ concept nameLegacyECMF(defaultName,"name.legacy.def",conceptsMasterDir,conceptsL
|
65 | 44 | concept nameECMF(nameLegacyECMF,nameFilename,conceptsMasterDir,conceptsLocalDirECMF): no_copy;
|
66 | 45 | concept name(nameECMF,nameFilename,conceptsDir2,conceptsDir1): no_copy,dump;
|
67 | 46 |
|
68 |
| -# cfName does not have pre and post MTG2 switch |
| 47 | +# cfName does not have pre and post MTG2 change in definition files |
69 | 48 |
|
70 | 49 | concept cfNameLegacyECMF(defaultShortName,"cfName.legacy.def",conceptsMasterDir,conceptsLocalDirECMF): no_copy,hidden;
|
71 | 50 | concept cfNameECMF(cfNameLegacyECMF,"cfName.def",conceptsMasterDir,conceptsLocalDirECMF) : no_copy;
|
|
0 commit comments