Skip to content

Commit

Permalink
MueLu Amesos2Smoother: Only set "IsContiguous" to false for single rank
Browse files Browse the repository at this point in the history
On multiple ranks Amesos2 performs an import into a single rank first.
  • Loading branch information
cgcgcg committed Oct 3, 2023
1 parent e135b58 commit 1d16146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/muelu/src/Smoothers/MueLu_Amesos2Smoother_def.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ namespace MueLu {
RCP<Teuchos::ParameterList> amesos2_params = Teuchos::rcpFromRef(pL.sublist("Amesos2"));
amesos2_params->setName("Amesos2");
if ((rowMap->getGlobalNumElements() != as<size_t>((rowMap->getMaxAllGlobalIndex() - rowMap->getMinAllGlobalIndex())+1)) ||
(!rowMap->isContiguous())) {
(!rowMap->isContiguous() && (rowMap->getComm()->getSize() == 1))) {
if (!(amesos2_params->sublist(prec_->name()).template isType<bool>("IsContiguous")))
amesos2_params->sublist(prec_->name()).set("IsContiguous", false, "Are GIDs Contiguous");
}
Expand Down

0 comments on commit 1d16146

Please sign in to comment.