Skip to content

Commit

Permalink
Fixed #3016 - Vapor fails to open idealized/kalundquist (#3017)
Browse files Browse the repository at this point in the history
  • Loading branch information
clyne authored Feb 14, 2022
1 parent 4169163 commit c3fb94b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/vdc/GridHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,10 +266,12 @@ CurvilinearGrid *GridHelper::_make_grid_curvilinear(size_t ts, int level, int lo
// X horizontal coord blocks
//
DimsType bs2d = {bs[0], bs[1], 1};
DimsType bmin2d = {bmin[0], bmin[1], 0};
DimsType bmax2d = {bmax[0], bmax[1], 0};
size_t nblocks2d = 1;
size_t block_size2d = 1;
for (int i = 0; i < bs2d.size(); i++) {
nblocks2d *= bmax[i] - bmin[i] + 1;
nblocks2d *= bmax2d[i] - bmin2d[i] + 1;
block_size2d *= bs2d[i];
}

Expand All @@ -287,7 +289,7 @@ CurvilinearGrid *GridHelper::_make_grid_curvilinear(size_t ts, int level, int lo
RegularGrid xrg(dims2d, bs2d, xcblkptrs, minu2d, maxu2d);
RegularGrid yrg(dims2d, bs2d, ycblkptrs, minu2d, maxu2d);

string qtr_key = _getQuadTreeRectangleKey(ts, level, lod, cvarsinfo, bmin, bmax);
string qtr_key = _getQuadTreeRectangleKey(ts, level, lod, cvarsinfo, bmin2d, bmax2d);

// Try to get a shared pointer to the QuadTreeRectangle from the
// cache. If one does not exist the Grid class will make one. We use
Expand Down

0 comments on commit c3fb94b

Please sign in to comment.