Skip to content

Commit

Permalink
Definitions: Faster to decode two keys than concept
Browse files Browse the repository at this point in the history
  • Loading branch information
shahramn committed Apr 15, 2024
1 parent 7250f5c commit cc3caa2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion definitions/grib2/template.4.horizontal.def
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cc3caa2

Please sign in to comment.