MueLu Version of the Day
Loading...
Searching...
No Matches
MueLu_DisableMultipleCallCheck.hpp
Go to the documentation of this file.
1// @HEADER
2// *****************************************************************************
3// MueLu: A package for multigrid based preconditioning
4//
5// Copyright 2012 NTESS and the MueLu contributors.
6// SPDX-License-Identifier: BSD-3-Clause
7// *****************************************************************************
8// @HEADER
9
10#ifndef MUELU_DISABLEMULTIPLECALLCHECK_HPP
11#define MUELU_DISABLEMULTIPLECALLCHECK_HPP
12
13#include <Teuchos_RCP.hpp>
14
16
17namespace MueLu {
18
21 public:
22 DisableMultipleCallCheck(const RCP<const TwoLevelFactoryBase>& fact)
23 : fact_(fact) { fact_->DisableMultipleCallCheck(); }
24 ~DisableMultipleCallCheck() { fact_->EnableMultipleCallCheck(); }
25
26 private:
27 const RCP<const TwoLevelFactoryBase> fact_;
28};
29
30} // namespace MueLu
31
32#endif // MUELU_DISABLEMULTIPLECALLCHECK_HPP
An exception safe way to call the method TwoLevelFactoryBase::DisableMultipleCallCheck.
const RCP< const TwoLevelFactoryBase > fact_
DisableMultipleCallCheck(const RCP< const TwoLevelFactoryBase > &fact)
Namespace for MueLu classes and methods.