Skip to content

Commit

Permalink
MueLu RefMaxwell: Allow setting importer parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
cgcgcg committed Aug 19, 2019
1 parent a2c23dd commit c84839f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/muelu/adapters/xpetra/MueLu_RefMaxwell_def.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -927,6 +927,15 @@ namespace MueLu {
D0x_ = MultiVectorFactory::Build(D0_Matrix_->getDomainMap(), 1);
residual_ = MultiVectorFactory::Build(SM_Matrix_->getDomainMap(), 1);

if (!ImporterH_.is_null() && parameterList_.isSublist("refmaxwell: ImporterH params")){
RCP<ParameterList> importerParams = rcpFromRef(parameterList_.sublist("refmaxwell: ImporterH params"));
ImporterH_->setDistributorParameters(importerParams);
}
if (!Importer22_.is_null() && parameterList_.isSublist("refmaxwell: Importer22 params")){
RCP<ParameterList> importerParams = rcpFromRef(parameterList_.sublist("refmaxwell: Importer22 params"));
Importer22_->setDistributorParameters(importerParams);
}

#ifdef HAVE_MUELU_CUDA
if (parameterList_.get<bool>("refmaxwell: cuda profile setup", false)) cudaProfilerStop();
#endif
Expand Down

0 comments on commit c84839f

Please sign in to comment.