Tpetra parallel linear algebra Version of the Day
Loading...
Searching...
No Matches
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.
21namespace Teuchos {
22class ParameterList;
23} // namespace Teuchos
24
25namespace Tpetra {
26
73
97void setCombineModeParameter(Teuchos::ParameterList& plist,
98 const std::string& paramName);
99
101std::string combineModeToString(const CombineMode combineMode);
102
103} // namespace Tpetra
104
105#endif // TPETRA_COMBINEMODE_HPP
Namespace Tpetra contains the class and methods constituting the Tpetra library.
std::string combineModeToString(const CombineMode combineMode)
Human-readable string representation of the given CombineMode.
void setCombineModeParameter(Teuchos::ParameterList &plist, const std::string &paramName)
Set CombineMode parameter in a Teuchos::ParameterList.
CombineMode
Rule for combining data in an Import or Export.
@ REPLACE
Replace existing values with new values.
@ ADD
Sum new values.
@ ABSMAX
Replace old value with maximum of magnitudes of old and new values.
@ ADD_ASSIGN
Accumulate new values into existing values (may not be supported in all classes)
@ INSERT
Insert new values that don't currently exist.
@ ZERO
Replace old values with zero.