Version 2, position dependent E/B, kinetic ions, boris mover, terminator

This commit is contained in:
Jonas Kellerer
2022-10-21 10:09:19 +02:00
parent acc55cf003
commit 83fd2e5d7e
869 changed files with 1033204 additions and 3634436 deletions
+36
View File
@@ -0,0 +1,36 @@
#ifndef PARAMETER_H
#define PARAMETER_H
#include <array>
#include <string>
#include <vector>
#include "jansson.h"
#include "simulation/jansson_additionals.h"
class Parameter {
public:
Parameter(std::string filename);
~Parameter();
double doubleValue(const json_path& path) const;
double doubleValue(const json_path& path, double default_value) const;
int intValue(const json_path& path) const;
int intValue(const json_path& path, int default_value) const;
std::string stringValue(const json_path& path) const;
std::string stringValue(const json_path& path,
const std::string& default_value) const;
bool boolValue(const json_path& path) const;
bool boolValue(const json_path& path, bool default_value) const;
bool pathExists(const json_path& path) const;
json_t* jsonFile() const;
json_t* jsonObjectFromBase(const json_path& path) const;
private:
json_error_t* j_error_;
json_t* j_file_;
json_t* openParameterFile(const std::string& filename) const;
};
#endif /* PARAMETER_H */