mirror of https://github.com/ecmwf/eccodes.git
Definitions: Faster to copy the concept so we evaluate it once
This commit is contained in:
parent
303a8ea9a5
commit
09f7774abd
|
@ -79,7 +79,8 @@ if (extraDim) {
|
||||||
# ECC-1333: levtype should be read-only in GRIB2
|
# ECC-1333: levtype should be read-only in GRIB2
|
||||||
concept mars.levtype(unknown,"marsLevtypeConcept.def",conceptsDir2,conceptsDir1):no_copy, read_only;
|
concept mars.levtype(unknown,"marsLevtypeConcept.def",conceptsDir2,conceptsDir1):no_copy, read_only;
|
||||||
# GRIB-372: levelist alias does not pertain to surface parameters
|
# GRIB-372: levelist alias does not pertain to surface parameters
|
||||||
if (levtype is "sfc" || levtype is "o2d") {
|
transient tempLevtype = levtype; # Faster to copy the concept so we evaluate it once
|
||||||
|
if (tempLevtype is "sfc" || tempLevtype is "o2d") {
|
||||||
unalias mars.levelist;
|
unalias mars.levelist;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -237,6 +237,7 @@ static const char* concept_evaluate(grib_accessor* a)
|
||||||
grib_concept_value* c = action_concept_get_concept(a);
|
grib_concept_value* c = action_concept_get_concept(a);
|
||||||
grib_handle* h = grib_handle_of_accessor(a);
|
grib_handle* h = grib_handle_of_accessor(a);
|
||||||
|
|
||||||
|
// fprintf(stderr, "DEBUG: concept_evaluate: %s %s\n", a->name, c->name);
|
||||||
while (c) {
|
while (c) {
|
||||||
grib_concept_condition* e = c->conditions;
|
grib_concept_condition* e = c->conditions;
|
||||||
int cnt = 0;
|
int cnt = 0;
|
||||||
|
|
Loading…
Reference in New Issue