Definitions: Faster to decode two keys than concept

This commit is contained in:
shahramn 2024-04-15 16:31:43 +01:00
parent 7250f5cbc3
commit cc3caa2938
1 changed files with 3 additions and 1 deletions

View File

@ -66,7 +66,9 @@ if (extraDim) {
} else {
# See GRIB-74 why we store the pressureUnits in a transient
transient tempPressureUnits=pressureUnits;
if (!(typeOfLevel is "surface")) {
# Same as typeOfLevel != "surface" but much quicker to evaluate
# than via the concept
if ( ! (typeOfFirstFixedSurface == 1 && typeOfSecondFixedSurface == 255) ) {
if (tempPressureUnits is "Pa") {
meta marsLevel scale(level,one,hundred) : read_only;
alias mars.levelist=marsLevel;