Skip to content

Commit

Permalink
small fixes: as_int23 -> as_int. remove print statments
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolemarsaglia committed Jan 29, 2025
1 parent c5602be commit f9abb3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/libs/ascent/runtimes/ascent_vtkh_data_adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1501,8 +1501,8 @@ VTKHDataAdapter::StructuredBlueprintToVTKmDataSet

result->AddCoordinateSystem(coords);

int32 x_elems = n_topo["elements/dims/i"].as_int32();
int32 y_elems = n_topo["elements/dims/j"].as_int32();
int32 x_elems = n_topo["elements/dims/i"].as_int();
int32 y_elems = n_topo["elements/dims/j"].as_int();

vtkm::Id3 topo_origin = detail::topo_origin(n_topo);

Expand All @@ -1518,7 +1518,7 @@ VTKHDataAdapter::StructuredBlueprintToVTKmDataSet
}
else
{
int32 z_elems = n_topo["elements/dims/k"].as_int32();
int32 z_elems = n_topo["elements/dims/k"].as_int();
vtkm::cont::CellSetStructured<3> cell_set;
cell_set.SetPointDimensions(vtkm::make_Vec(x_elems+1,
y_elems+1,
Expand Down
3 changes: 0 additions & 3 deletions src/libs/vtkh/filters/UniformGrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -628,12 +628,9 @@ class LocalReduceField
int num_points = tmp_mask_portal.GetNumberOfValues();

//create invalid mask where true == invalid
std::cerr << "HJERERERERERER" << std::endl;
std::cerr << "tmp mask: " << std::endl;
std::vector<int> l_mask(num_points,1);
for(int j = 0; j < num_points; ++j)
{
std::cerr << tmp_mask_portal.Get(j) << " " << std::endl;
l_mask[j] = l_mask[j] && tmp_mask_portal.Get(j) && r_local_mask_portal.Get(j);
if(l_mask[j] != r_local_mask_portal.Get(j))
w_local_mask_portal.Set(j,l_mask[j]);
Expand Down

0 comments on commit f9abb3e

Please sign in to comment.