Moved serial mode to target mcelecron_serial.

Implemented parallelization with mpi.
This commit is contained in:
Christian
2019-07-18 14:02:19 +02:00
parent fd131afdd3
commit 578d673b65
35 changed files with 916 additions and 469 deletions
+6 -1
View File
@@ -161,6 +161,11 @@ inline std::string get_time_string() {
inline std::string get_homebase() {
std::string homebase = get_enviroment_variable("HOMEBASE");
if (homebase == "") {
std::stringstream ss;
ss<<"HOMEBASE not defined!\n.";
throw MyException (ss.str());
}
homebase = make_path(homebase);
return homebase;
}
@@ -177,7 +182,7 @@ inline std::string remove_cat (std::string cat_string) {
}
}
inline std::string get_parameter_filename() {
inline std::string get_parameter_filenamepath() {
std::string parameter_file_path = getenv("parpath");
std::string parameter_file_name = remove_cat(getenv("parfile"));
return parameter_file_path + "/" + parameter_file_name;