Skip to content

Commit

Permalink
#1729 Calls _file->check_or_update_grid
Browse files Browse the repository at this point in the history
  • Loading branch information
Howard Soh committed Jul 25, 2024
1 parent 1701488 commit 3aecd08
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/libcode/vx_data2d_nc_cf/data2d_nc_cf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,14 @@ bool MetNcCFDataFile::data_plane(VarInfo &vinfo, DataPlane &plane)
{
// Not sure why we do this

NcVarInfo *data_var = (NcVarInfo *)nullptr;
VarInfoNcCF *vinfo_nc = (VarInfoNcCF *)&vinfo;
auto data_var = (NcVarInfo *)nullptr;
auto vinfo_nc = (VarInfoNcCF *)&vinfo;
static const string method_name
= "MetNcCFDataFile::data_plane(VarInfo &, DataPlane &) -> ";

Grid grid_attr = vinfo.grid_attr();
_file->check_and_update_grid(grid_attr);

// Initialize the data plane

plane.clear();
Expand Down Expand Up @@ -339,6 +342,9 @@ int MetNcCFDataFile::data_plane_array(VarInfo &vinfo,
static const string method_name
= "MetNcCFDataFile::data_plane_array(VarInfo &, DataPlaneArray &) -> ";

Grid grid_attr = vinfo.grid_attr();
_file->check_and_update_grid(grid_attr);

// Initialize
plane_array.clear();

Expand Down

0 comments on commit 3aecd08

Please sign in to comment.