Skip to content

Commit

Permalink
Merge pull request #16278 from kinnewig/make_teuchos_rcp
Browse files Browse the repository at this point in the history
  • Loading branch information
masterleinad committed Nov 20, 2023
2 parents 715e22d + 0c5468d commit e3f890a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
20 changes: 18 additions & 2 deletions include/deal.II/base/trilinos_utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,24 @@ namespace Utilities
using Teuchos::make_rcp;
# endif // defined DOXYGEN || !DEAL_II_TRILINOS_VERSION_GTE(14, 0, 0)
} // namespace internal
} // namespace Trilinos
#endif // DEAL_II_TRILINOS_WITH_TPETRA



/* ------------------------- Inline functions ---------------------- */
namespace internal
{
# if !DEAL_II_TRILINOS_VERSION_GTE(14, 0, 0)
template <class T, class... Args>
inline Teuchos::RCP<T>
make_rcp(Args &&...args)
{
return Teuchos::RCP<T>(new T(std::forward<Args>(args)...));
}
# endif // !DEAL_II_TRILINOS_VERSION_GTE(14, 0, 0)
} // namespace internal

} // namespace Trilinos
#endif // DEAL_II_TRILINOS_WITH_TPETRA

} // namespace Utilities

Expand Down
17 changes: 0 additions & 17 deletions source/base/trilinos_utilities.cc
Original file line number Diff line number Diff line change
Expand Up @@ -169,23 +169,6 @@ namespace Utilities
}
} // namespace Trilinos
#endif


#ifdef DEAL_II_TRILINOS_WITH_TPETRA
namespace Trilinos
{
# if !DEAL_II_TRILINOS_VERSION_GTE(14, 0, 0)
template <class T, class... Args>
Teuchos::RCP<T>
make_rcp(Args &&...args)
{
return Teuchos::RCP<T>(new T(std::forward<Args>(args)...));
}
# endif // !DEAL_II_TRILINOS_VERSION_GTE(14, 0, 0)

} // namespace Trilinos
#endif // DEAL_II_TRILINOS_WITH_TPETRA

} // namespace Utilities

DEAL_II_NAMESPACE_CLOSE

0 comments on commit e3f890a

Please sign in to comment.