50 const int local_num_options = 1;
56 const char* local_SOptions[local_num_options] = {
62 namespace MoochoPack {
66 ,
const char opt_grp_name[] )
67 : OptionsFromStreamPack::SetOptionsFromStreamNode(
68 opt_grp_name, local_num_options, local_SOptions )
69 , OptionsFromStreamPack::SetOptionsToTargetBase<
80 case FD_DERIV_TESTING:
82 const std::string &option = option_value.c_str();
83 if( option ==
"FD_DEFAULT" )
84 target().fd_deriv_testing( target_t::FD_DEFAULT );
85 else if( option ==
"FD_TEST" )
86 target().fd_deriv_testing( target_t::FD_TEST );
87 else if( option ==
"FD_NO_TEST" )
88 target().fd_deriv_testing( target_t::FD_NO_TEST );
90 throw std::invalid_argument(
"Error, incorrect value for "
91 "\"fd_deriv_testing\". Only the options "
92 "FD_DEFAULT, FD_TEST, and FD_NO_TEST "
bool StringToBool(const char *opt_name, const char *str)
Convert a string "true" or "false" into bool #true# or #false#.
EvalNewPointTailoredApproach_Step & target()
EvalNewPointTailoredApproach_StepSetOptions(EvalNewPointTailoredApproach_Step *target=0, const char opt_grp_name[]="EvalNewPointTailoredApproach")
Base class for evaluating a new point for the "Tailored Approach".
void setOption(int option_num, const std::string &option_value)
Overridden from SetOptionsFromStreamNode.
#define TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test)
const std::string & option_value(OptionsGroup::const_iterator &itr)