Namespaces | Macros | Functions
Read_input_file.cpp File Reference
#include "Read_input_file.hpp"
#include "print.hpp"
#include "set_Vec.hpp"
#include "Init_Vec.hpp"
#include <string>
#include <fstream>
#include <iostream>
#include <jsoncpp/json/json.h>

Namespaces

 SPE
 Namespace containing all functions and data classes for this solver.
 

Macros

#define ANSI_COLOR_GREEN   "\x1b[32m"
 
#define ANSI_COLOR_RESET   "\x1b[0m"
 

Functions

int SPE::Read_input_file (SPE &data, char const buff[]="input_file.json")
 Read an input file written in json format. More...
 
int SPE::set_input_value (Json::Value &val, const char buff[], PetscInt &v)
 take Json data and save it to value if it exists More...
 
int SPE::set_input_value (Json::Value &val, const char buff[], PetscReal &v)
 take Json data and save it to value if it exists More...
 
int SPE::set_input_value (Json::Value &val, const char buff[], PetscScalar &v)
 take Json data and save it to value if it exists More...
 
int SPE::set_input_value (Json::Value &val, const char buff[], PetscBool &v)
 take Json data and save it to value if it exists More...
 
int SPE::set_input_value (Json::Value &val, const char buff[], char *v)
 take Json data and save it to value if it exists More...
 
int SPE::set_input_value (Json::Value &val, const char buff[], std::string &v)
 take Json data and save it to value if it exists More...
 

Macro Definition Documentation

#define ANSI_COLOR_GREEN   "\x1b[32m"
#define ANSI_COLOR_RESET   "\x1b[0m"