Skip to content

Commit 166c3b2

Browse files
author
guo.2154
committed
Merge branch 'dev' of github.com:hguo/ftk into dev
2 parents 4fa86ef + 4e717f0 commit 166c3b2

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

include/ftk/filters/critical_line_tracker_3d_regular.hh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -334,11 +334,11 @@ inline void critical_line_tracker_3d_regular::update_timestep()
334334
});
335335

336336
ftk::lattice ext({0, 0, 0},
337-
{field_data_snapshots[0].uv.dim(1),
338-
field_data_snapshots[0].uv.dim(2),
339-
field_data_snapshots[0].uv.dim(3)});
337+
{field_data_snapshots[0].uv.dimf(1),
338+
field_data_snapshots[0].uv.dimf(2),
339+
field_data_snapshots[0].uv.dimf(3)});
340340

341-
const int nchannels = field_data_snapshots[0].uv.dim(0);
341+
const int nchannels = field_data_snapshots[0].uv.dimf(0);
342342

343343
// ordinal
344344
auto results = extract_3dclt_cuda(

include/ftk/filters/critical_point_tracker_3d_regular.hh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,9 @@ inline void critical_point_tracker_3d_regular::update_timestep()
240240
});
241241

242242
ftk::lattice ext({0, 0, 0},
243-
{field_data_snapshots[0].vector.dim(1),
244-
field_data_snapshots[0].vector.dim(2),
245-
field_data_snapshots[0].vector.dim(3)});
243+
{field_data_snapshots[0].vector.dimf(1),
244+
field_data_snapshots[0].vector.dimf(2),
245+
field_data_snapshots[0].vector.dimf(3)});
246246

247247
// ordinal
248248
auto results = extract_cp3dt_cuda(

include/ftk/filters/particle_tracer_mpas_ocean.hh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ inline void particle_tracer_mpas_ocean::push_field_data_snapshot(std::shared_ptr
330330
const double *attrs[] = {}; // salinity->data(), temperature->data()};
331331

332332
// std::cerr << zTop->shape() << std::endl;
333-
mop_set_nlayers(ctx, zTop->dim(1));
333+
mop_set_nlayers(ctx, zTop->dimf(1));
334334

335335

336336
fprintf(stderr, "v=%p, vv=%p, top=%p\n", V->data(), vertVelocityTop->data(), zTop->data());

include/ftk/filters/tdgl_vortex_tracker_3d_regular.hh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,9 @@ inline void tdgl_vortex_tracker_3d_regular::update_timestep()
299299
});
300300

301301
ftk::lattice ext({0, 0, 0},
302-
{field_data_snapshots[0].rho.dim(0),
303-
field_data_snapshots[0].rho.dim(1),
304-
field_data_snapshots[0].rho.dim(2)});
302+
{field_data_snapshots[0].rho.dimf(0),
303+
field_data_snapshots[0].rho.dimf(1),
304+
field_data_snapshots[0].rho.dimf(2)});
305305

306306
// ordinal
307307
auto results = extract_tdgl_vortex_3dt_cuda(

0 commit comments

Comments
 (0)