16 const std::string& paramName) {
18 typedef Teuchos::StringToIntegralParameterEntryValidator<enum_type>
21 const std::string docString =
22 "Tpetra::CombineMode: rule for combining "
23 "entries that overlap across processes, when redistributing data via a "
24 "Tpetra::Import or Tpetra::Export";
25 const std::string defaultVal =
"ADD";
26 const bool caseSensitive =
false;
28 const Teuchos::Array<std::string>::size_type numParams = 6;
29 Teuchos::Array<std::string> strs(numParams);
30 Teuchos::Array<std::string> docs(numParams);
31 Teuchos::Array<enum_type> vals(numParams);
38 strs[5] =
"ADD_ASSIGN";
40 docs[0] =
"Sum new values";
41 docs[1] =
"Insert new values that don't currently exist";
42 docs[2] =
"Replace existing values with new values";
43 docs[3] =
"Replace old value with maximum of magnitudes of old and new values";
44 docs[4] =
"Replace old values with zero";
46 "Do addition assignment (+=) of new values into existing value; "
47 "may not be supported by all classes";
56 plist.set(paramName, defaultVal, docString,
57 Teuchos::rcp(
new validator_type(strs(), docs(), vals(),
58 defaultVal, caseSensitive)));