10 #ifndef ROL_DISTRIBUTIONFACTORY_HPP
11 #define ROL_DISTRIBUTIONFACTORY_HPP
13 #include "ROL_ParameterList.hpp"
57 std::string retString;
77 default: retString =
"INVALID EDistribution";
break;
135 ROL::ParameterList sollist;
136 if ( parlist.isSublist(
"SOL") ) {
137 dist.assign(parlist.sublist(
"SOL").sublist(
"Distribution").get(
"Name",
"Dirac"));
141 dist.assign(parlist.sublist(
"Distribution").get(
"Name",
"Dirac"));
142 sollist.sublist(
"SOL") = parlist;
163 default:
return ROL::nullPtr;
EDistribution StringToEDistribution(std::string s)
EPolyProjAlgo & operator++(EPolyProjAlgo &type)
std::string removeStringFormat(std::string s)
int isValidDistribution(EDistribution ed)
EPolyProjAlgo & operator--(EPolyProjAlgo &type)
std::string EDistributionToString(EDistribution ed)
ROL::Ptr< Distribution< Real > > DistributionFactory(ROL::ParameterList &parlist)