mirror of https://github.com/ecmwf/eccodes.git
ECC-1846: Make loading modelNameConcept.def optional
This commit is contained in:
parent
ece5366be6
commit
d284535229
|
@ -3,10 +3,12 @@
|
|||
constant modelNameDefault = "unknown";
|
||||
constant modelVersionDefault = "unknown";
|
||||
|
||||
concept_nofail modelName (modelNameDefault, "modelNameConcept.def",conceptsDir2,conceptsDir1): no_copy, dump;
|
||||
if (centre is "ecmf" or datasetForLocal is "era6") {
|
||||
concept_nofail modelName (modelNameDefault, "modelNameConcept.def",conceptsDir2,conceptsDir1): no_copy, dump;
|
||||
|
||||
if (!(modelName is "unknown")) {
|
||||
if (!(modelName is "unknown")) {
|
||||
concept_nofail modelVersion (modelVersionDefault, "modelVersionConcept_[modelName].def",conceptsDir2,conceptsDir1): no_copy, dump;
|
||||
alias ls.model = modelName;
|
||||
alias mars.model = modelName;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue