ECC-1846: Make loading modelNameConcept.def optional

This commit is contained in:
shahramn 2024-06-21 11:21:49 +01:00
parent ece5366be6
commit d284535229
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}
}