Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ namespace Core::IO
std::make_shared<Core::LinAlg::Map>(*discretization_->node_row_map());
nodecolmap_last_geometry_set_ =
std::make_shared<Core::LinAlg::Map>(*discretization_->node_col_map());
elemrowmap_last_geometry_set_ =
std::make_shared<Core::LinAlg::Map>(*discretization_->element_row_map());
elemcolmap_last_geometry_set_ =
std::make_shared<Core::LinAlg::Map>(*discretization_->element_col_map());
}

/*-----------------------------------------------------------------------------------------------*
Expand All @@ -145,7 +149,9 @@ namespace Core::IO
// check if parallel distribution of discretization changed
int map_changed =
((not noderowmap_last_geometry_set_->same_as(*discretization_->node_row_map())) or
(not nodecolmap_last_geometry_set_->same_as(*discretization_->node_col_map())));
(not nodecolmap_last_geometry_set_->same_as(*discretization_->node_col_map())) or
(not elemrowmap_last_geometry_set_->same_as(*discretization_->element_row_map())) or
(not elemcolmap_last_geometry_set_->same_as(*discretization_->element_col_map())));
int map_changed_allproc(0);
map_changed_allproc = Core::Communication::max_all(map_changed, discretization_->get_comm());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,8 @@ namespace Core::IO
//! Node row and col maps the geometry of visualization writer is based on
std::shared_ptr<Core::LinAlg::Map> noderowmap_last_geometry_set_;
std::shared_ptr<Core::LinAlg::Map> nodecolmap_last_geometry_set_;
std::shared_ptr<Core::LinAlg::Map> elemrowmap_last_geometry_set_;
std::shared_ptr<Core::LinAlg::Map> elemcolmap_last_geometry_set_;
};

/**
Expand Down