Skip to content
Snippets Groups Projects
Commit 1809d96e authored by Lukas Bentkamp's avatar Lukas Bentkamp Committed by Cristian Lalescu
Browse files

adding variation parameters to postprocessing. I hope this will work now.

parent df1a1e3e
Branches
Tags
2 merge requests!43Develop,!42Feature/varying forcing
......@@ -69,6 +69,8 @@ int postprocess::read_parameters()
this->friction_coefficient = hdf5_tools::read_value<double>(parameter_file, "parameters/friction_coefficient");
this->fk0 = hdf5_tools::read_value<double>(parameter_file, "parameters/fk0");
this->fk1 = hdf5_tools::read_value<double>(parameter_file, "parameters/fk1");
this->variation_strength = hdf5_tools::read_value<double>(parameter_file, "parameters/variation_strength");
this->variation_time_scale = hdf5_tools::read_value<double>(parameter_file, "parameters/variation_time_scale");
this->energy = hdf5_tools::read_value<double>(parameter_file, "parameters/energy");
this->injection_rate = hdf5_tools::read_value<double>(parameter_file, "parameters/injection_rate");
std::string tmp = hdf5_tools::read_string(parameter_file, "parameters/forcing_type");
......@@ -92,6 +94,8 @@ int postprocess::copy_parameters_into(
dst->injection_rate = this->injection_rate;
dst->energy = this->energy;
dst->friction_coefficient = this->friction_coefficient;
dst->variation_strength = this->variation_strength;
dst->variation_time_scale = this->variation_time_scale;
strncpy(dst->forcing_type, this->forcing_type, 128);
return EXIT_SUCCESS;
}
......
......@@ -53,6 +53,8 @@ class postprocess: public code_base
double fk1;
double energy;
double injection_rate;
double variation_strength;
double variation_time_scale;
int fmode;
char forcing_type[512];
double nu;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment