Reference documentation for deal.II version 9.5.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
trilinos_utilities.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 2005 - 2023 by the deal.II authors
4//
5// This file is part of the deal.II library.
6//
7// The deal.II library is free software; you can use it, redistribute
8// it, and/or modify it under the terms of the GNU Lesser General
9// Public License as published by the Free Software Foundation; either
10// version 2.1 of the License, or (at your option) any later version.
11// The full text of the license can be found in the file LICENSE.md at
12// the top level directory of deal.II.
13//
14// ---------------------------------------------------------------------
15
16#ifndef dealii_trilinos_utilities_h
17#define dealii_trilinos_utilities_h
18
19#include <deal.II/base/config.h>
20
22
23#ifdef DEAL_II_WITH_TRILINOS
24# include <Epetra_Comm.h>
25# include <Epetra_Map.h>
26# include <Teuchos_Comm.hpp>
27# include <Teuchos_RCP.hpp>
28# ifdef DEAL_II_WITH_MPI
29# include <Epetra_MpiComm.h>
30# else
31# include <Epetra_SerialComm.h>
32# endif
33#endif
34
36
44namespace Utilities
45{
46#ifdef DEAL_II_WITH_TRILINOS
52 namespace Trilinos
53 {
63 const Epetra_Comm &
64 comm_world();
65
75 const Epetra_Comm &
76 comm_self();
77
86 const Teuchos::RCP<const Teuchos::Comm<int>> &
88
121 Epetra_Comm *
122 duplicate_communicator(const Epetra_Comm &communicator);
123
146 void
147 destroy_communicator(Epetra_Comm &communicator);
148
157 unsigned int
158 get_n_mpi_processes(const Epetra_Comm &mpi_communicator);
159
166 unsigned int
167 get_this_mpi_process(const Epetra_Comm &mpi_communicator);
168
179 Epetra_Map
180 duplicate_map(const Epetra_BlockMap &map, const Epetra_Comm &comm);
181 } // namespace Trilinos
182#endif
183} // namespace Utilities
184
186
187#endif
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:472
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:473
void destroy_communicator(Epetra_Comm &communicator)
Epetra_Map duplicate_map(const Epetra_BlockMap &map, const Epetra_Comm &comm)
unsigned int get_this_mpi_process(const Epetra_Comm &mpi_communicator)
unsigned int get_n_mpi_processes(const Epetra_Comm &mpi_communicator)
const Epetra_Comm & comm_self()
const Teuchos::RCP< const Teuchos::Comm< int > > & tpetra_comm_self()
Epetra_Comm * duplicate_communicator(const Epetra_Comm &communicator)
const Epetra_Comm & comm_world()
const MPI_Comm comm