17 const std::string& paramName)
20 typedef Teuchos::StringToIntegralParameterEntryValidator<enum_type>
23 const std::string docString =
"Tpetra::CombineMode: rule for combining "
24 "entries that overlap across processes, when redistributing data via a "
25 "Tpetra::Import or Tpetra::Export";
26 const std::string defaultVal =
"ADD";
27 const bool caseSensitive =
false;
29 const Teuchos::Array<std::string>::size_type numParams = 6;
30 Teuchos::Array<std::string> strs (numParams);
31 Teuchos::Array<std::string> docs (numParams);
32 Teuchos::Array<enum_type> vals (numParams);
39 strs[5] =
"ADD_ASSIGN";
41 docs[0] =
"Sum new values";
42 docs[1] =
"Insert new values that don't currently exist";
43 docs[2] =
"Replace existing values with new values";
44 docs[3] =
"Replace old value with maximum of magnitudes of old and new values";
45 docs[4] =
"Replace old values with zero";
46 docs[5] =
"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)));