Tpetra parallel linear algebra
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
core
src
Tpetra_CombineMode.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_COMBINEMODE_HPP
11
#define TPETRA_COMBINEMODE_HPP
12
17
18
#include <string>
19
20
// Forward declaration of Teuchos::ParameterList.
21
namespace
Teuchos {
22
class
ParameterList;
23
}
// namespace Teuchos
24
25
namespace
Tpetra
{
26
65
enum
CombineMode
{
66
ADD
,
67
INSERT
,
68
REPLACE
,
69
ABSMAX
,
70
ZERO
,
71
ADD_ASSIGN
72
};
73
97
void
setCombineModeParameter
(Teuchos::ParameterList& plist,
98
const
std::string& paramName);
99
101
std::string
combineModeToString
(
const
CombineMode
combineMode);
102
103
}
// namespace Tpetra
104
105
#endif
// TPETRA_COMBINEMODE_HPP
Tpetra
Namespace Tpetra contains the class and methods constituting the Tpetra library.
Tpetra::combineModeToString
std::string combineModeToString(const CombineMode combineMode)
Human-readable string representation of the given CombineMode.
Definition
Tpetra_CombineMode.cpp:61
Tpetra::setCombineModeParameter
void setCombineModeParameter(Teuchos::ParameterList &plist, const std::string ¶mName)
Set CombineMode parameter in a Teuchos::ParameterList.
Definition
Tpetra_CombineMode.cpp:15
Tpetra::CombineMode
CombineMode
Rule for combining data in an Import or Export.
Definition
Tpetra_CombineMode.hpp:65
Tpetra::REPLACE
@ REPLACE
Replace existing values with new values.
Definition
Tpetra_CombineMode.hpp:68
Tpetra::ADD
@ ADD
Sum new values.
Definition
Tpetra_CombineMode.hpp:66
Tpetra::ABSMAX
@ ABSMAX
Replace old value with maximum of magnitudes of old and new values.
Definition
Tpetra_CombineMode.hpp:69
Tpetra::ADD_ASSIGN
@ ADD_ASSIGN
Accumulate new values into existing values (may not be supported in all classes).
Definition
Tpetra_CombineMode.hpp:71
Tpetra::INSERT
@ INSERT
Insert new values that don't currently exist.
Definition
Tpetra_CombineMode.hpp:67
Tpetra::ZERO
@ ZERO
Replace old values with zero.
Definition
Tpetra_CombineMode.hpp:70
Generated by
1.17.0