Tpetra parallel linear algebra
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
core
src
Tpetra_Core.hpp
Go to the documentation of this file.
1
// @HEADER
2
// *****************************************************************************
3
// Tpetra: Templated Linear Algebra Services Package
4
//
5
// Copyright 2008 NTESS and the Tpetra contributors.
6
// SPDX-License-Identifier: BSD-3-Clause
7
// *****************************************************************************
8
// @HEADER
9
10
#ifndef TPETRA_CORE_HPP
11
#define TPETRA_CORE_HPP
12
21
22
#include <Tpetra_ConfigDefs.hpp>
23
#include <Teuchos_Comm.hpp>
24
#ifdef HAVE_TPETRACORE_MPI
25
#include "mpi.h"
26
#endif
// HAVE_TPETRACORE_MPI
27
28
namespace
Tpetra
{
29
39
Teuchos::RCP<const Teuchos::Comm<int> >
getDefaultComm
();
40
47
bool
isInitialized
();
48
74
void
initialize
(
int
* argc,
char
*** argv);
75
76
#ifdef HAVE_TPETRA_MPI
102
void
initialize
(
int
* argc,
char
*** argv, MPI_Comm comm);
103
#endif
// HAVE_TPETRA_MPI
104
134
void
initialize
(
int
* argc,
char
*** argv,
135
const
Teuchos::RCP<
const
Teuchos::Comm<int> >& comm);
136
147
void
finalize
();
148
188
class
ScopeGuard
{
189
public
:
197
ScopeGuard
(
int
* argc,
char
*** argv);
198
199
#ifdef HAVE_TPETRA_MPI
211
ScopeGuard
(
int
* argc,
char
*** argv, MPI_Comm comm);
212
#endif
// HAVE_TPETRA_MPI
213
218
ScopeGuard
() =
delete
;
219
225
~ScopeGuard
();
226
};
227
228
}
// namespace Tpetra
229
230
#endif
// TPETRA_CORE_HPP
Tpetra::ScopeGuard::ScopeGuard
ScopeGuard()=delete
Default constructor (FORBIDDEN).
Tpetra::ScopeGuard::~ScopeGuard
~ScopeGuard()
Finalize Tpetra.
Definition
Tpetra_Core.cpp:340
Tpetra::ScopeGuard::ScopeGuard
ScopeGuard(int *argc, char ***argv)
Initialize Tpetra.
Definition
Tpetra_Core.cpp:330
Tpetra
Namespace Tpetra contains the class and methods constituting the Tpetra library.
Tpetra::initialize
void initialize(int *argc, char ***argv)
Initialize Tpetra.
Definition
Tpetra_Core.cpp:197
Tpetra::isInitialized
bool isInitialized()
Whether Tpetra is in an initialized state.
Definition
Tpetra_Core.cpp:166
Tpetra::finalize
void finalize()
Finalize Tpetra.
Definition
Tpetra_Core.cpp:292
Tpetra::getDefaultComm
Teuchos::RCP< const Teuchos::Comm< int > > getDefaultComm()
Get Tpetra's default communicator.
Definition
Tpetra_Core.cpp:170
Generated by
1.17.0