Skip to content

Commit 64791a4

Browse files
committed
update gwb-grid/main.cc
1 parent 348017d commit 64791a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/gwb-grid/main.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ void filter_vtu_mesh(int dim,
126126
// The following line checks if we are accessing the velocity data, which is
127127
// currently stored as the third property after depth and temperature, and if so,
128128
// we need to copy all 3 components.
129-
if (d == 2)
129+
if (d == 3)
130130
{
131131
for (unsigned int i=0; i<3; ++i)
132132
output_data[d].push_back(input_data[d][src_vid*3+i]);
@@ -659,6 +659,7 @@ int main(int argc, char **argv)
659659
grid_y.resize(n_p);
660660

661661
grid_depth_wrt_surface.resize(n_p);
662+
grid_depth_wrt_reference.resize(n_p);
662663

663664
// compute positions
664665
size_t counter = 0;
@@ -845,6 +846,7 @@ int main(int argc, char **argv)
845846
grid_x.resize(n_p);
846847
grid_z.resize(n_p);
847848
grid_depth_wrt_surface.resize(n_p);
849+
grid_depth_wrt_reference.resize(n_p);
848850

849851
size_t counter = 0;
850852
for (size_t j = 0; j <= n_cell_z; ++j)

0 commit comments

Comments
 (0)