Moved serial mode to target mcelecron_serial.
Implemented parallelization with mpi.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user