43#include <Teuchos_StandardParameterEntryValidators.hpp>
52 typedef Teuchos::StringToIntegralParameterEntryValidator<enum_type>
55 const std::string
docString =
"Tpetra::CombineMode: rule for combining "
56 "entries that overlap across processes, when redistributing data via a "
57 "Tpetra::Import or Tpetra::Export";
61 const Teuchos::Array<std::string>::size_type
numParams = 6;
71 strs[5] =
"ADD_ASSIGN";
73 docs[0] =
"Sum new values";
74 docs[1] =
"Insert new values that don't currently exist";
75 docs[2] =
"Replace existing values with new values";
76 docs[3] =
"Replace old value with maximum of magnitudes of old and new values";
77 docs[4] =
"Replace old values with zero";
78 docs[5] =
"Do addition assignment (+=) of new values into existing value; "
79 "may not be supported by all classes";
Declaration of Tpetra::CombineMode enum, and a function for setting a Tpetra::CombineMode parameter i...
Struct that holds views of the contents of a CrsMatrix.
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 ¶mName)
Set CombineMode parameter in a Teuchos::ParameterList.
CombineMode
Rule for combining data in an Import or Export.
@ REPLACE
Replace existing values with 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.