Skip to content

Commit

Permalink
Fixed 3011 and 3012 - renderers doesn't work with some VDC data (#3014)
Browse files Browse the repository at this point in the history
* Fixed #3011
Fixed #3012

* clang-format pre-push hook
  • Loading branch information
clyne authored Feb 13, 2022
1 parent 2822236 commit 74a8fb0
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/vdc/DerivedVar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2402,8 +2402,25 @@ void DerivedCoordVarStandardOceanSCoordinate::compute_g2(const vector<size_t> &m
// Register class with object factory!!!
//

#ifdef VAPOR3_6_0

//
// The atmosphere_hybrid_sigma_pressure_coordinate conversion from pressure
// to meters unforunately results in a flipped (inverted?) vertical coordinate
// system with logical grid indices increasing as user coordinates
// decrease. I.e. Z[k] > Z[k+1]. In numerous places VAPOR
// expects the grid index and associated vertical coordinate to be
// monotonically increasing. This needs to be fixed as this assumption
// often does not hold true. However it is a big lift. For now, just
// remove the atmosphere_hybrid_sigma_pressure_coordinate converter from
// the object factory.
//


static DerivedCFVertCoordVarFactoryRegistrar<DerivedCoordVarStandardAHSPC> registrar_atmosphere_hybrid_sigma_pressure_coordinate("atmosphere_hybrid_sigma_pressure_coordinate");

#endif

DerivedCoordVarStandardAHSPC::DerivedCoordVarStandardAHSPC(DC *dc, string mesh, string formula) : DerivedCFVertCoordVar("", dc, mesh, formula)
{
_standard_name = "atmosphere_hybrid_sigma_pressure_coordinate";
Expand Down

0 comments on commit 74a8fb0

Please sign in to comment.