ROL
Namespaces | Functions
json/example_01.hpp File Reference
#include "json/json.h"
#include "Teuchos_ParameterList.hpp"
#include <fstream>
#include <string>

Go to the source code of this file.

Namespaces

 ROL
 

Functions

void ROL::addJSONBlockToPL (const Json::Value &block, ROL::ParameterList &parlist)
 Iterate over a block and insert key-value pairs into the ROL::ParameterList. More...
 
void ROL::addJSONPairToPL (const Json::Value &block, const std::string &key, ROL::ParameterList &parlist)
 Given a JSON block and a key, get the value and insert the key-value pair into a ROL::ParameterList. If the value is itself a block, recursively iterate. More...
 
void ROL::JSON_Parameters (const std::string &jsonFileName, ROL::ParameterList &parlist)
 Read a JSON file and store all parameters in a ROL::ParameterList. Checks for a key called "Algorithm" which has a string value which can specify a Step Type (Linesearch or Trust-Region) and either a Descent Type or a Trust-Region Subproblem Solver Type. More...
 
template<class Real >
void ROL::stepFactory (ROL::ParameterList &parlist, ROL::Ptr< ROL::Step< Real > > &step)
 A minimalist step factory which specializes the Step Type depending on whether a Trust-Region or Linesearch has been selected. More...