Skip to content

Commit

Permalink
Fixes Issue 2917, 2918 - cf2vdc failed to copy certain variables (#2925)
Browse files Browse the repository at this point in the history
* Fixed #2917
Fixed #2918

Wrong virtual method picked up

* clang-format pre-push hook
  • Loading branch information
clyne authored Dec 4, 2021
1 parent a6a68b7 commit a5b5009
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/cf2vdc/cf2vdc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ size_t gcd(size_t n1, size_t n2)

size_t lcm(size_t n1, size_t n2) { return ((n1 * n2) / gcd(n1, n2)); }

int copyVarHelper(DC &dc, VDC &vdc, int fdr, int fdw, vector<size_t> &buffer_dims, vector<size_t> &src_hslice_dims, vector<size_t> &dst_hslice_dims, size_t src_nslice, size_t dst_nslice, double mv,
float *buffer)
int copyVarHelper(DC &dc, VDCNetCDF &vdc, int fdr, int fdw, vector<size_t> &buffer_dims, vector<size_t> &src_hslice_dims, vector<size_t> &dst_hslice_dims, size_t src_nslice, size_t dst_nslice,
double mv, float *buffer)
{
VAssert(buffer_dims.size() == src_hslice_dims.size());
VAssert(buffer_dims.size() == dst_hslice_dims.size());
Expand Down Expand Up @@ -116,7 +116,7 @@ int copyVarHelper(DC &dc, VDC &vdc, int fdr, int fdw, vector<size_t> &buffer_dim
return (0);
}

int CopyVar2d3dMask(DC &dc, VDC &vdc, size_t ts, string varname, int lod)
int CopyVar2d3dMask(DC &dc, VDCNetCDF &vdc, size_t ts, string varname, int lod)
{
// Only data variables can have masks
//
Expand Down

0 comments on commit a5b5009

Please sign in to comment.