ROL
|
Example of how to supply ROL with parameters from a JSON file. Requires that json-cpp be installed. More...
#include "ROL_Algorithm.hpp"
#include "ROL_StdVector.hpp"
#include "ROL_Zakharov.hpp"
#include "example_01.hpp"
#include "ROL_Stream.hpp"
#include "Teuchos_GlobalMPISession.hpp"
#include "Teuchos_XMLParameterListHelpers.hpp"
Go to the source code of this file.
Typedefs | |
typedef double | RealT |
Functions | |
int | main (int argc, char *argv[]) |
Example of how to supply ROL with parameters from a JSON file. Requires that json-cpp be installed.
To build this example, add the following to the cmake call in your trilinos build script -D TPL_ENABLE_JSONCPP=ON \ -D JSONCPP_INCLUDE_DIRS:PATH=/usr/include/jsoncpp \ -D JSONCPP_LIBRARY_DIRS=/usr/lib/x86_64-linux-gnu \ -D JSONCPP_LIBRARY_NAMES:STRING="jsoncpp" \
These example paths above are default for Ubuntu 64 bit if jsoncpp is installed using sudo apt-get install libjsoncpp-dev
Definition in file json/example_01.cpp.
typedef double RealT |
Definition at line 72 of file json/example_01.cpp.
int main | ( | int | argc, |
char * | argv[] ) |
Definition at line 74 of file json/example_01.cpp.
References dim, and ROL::JSON_Parameters().