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
+11 -4
View File
@@ -42,7 +42,7 @@ std::string get_species_string(const species &spec) {
return res;
}
species get_species_from_string(const std::string &species_string) {
std::vector<species> get_all_spieces_vector() {
std::vector<species> all;
all.push_back(electron);
all.push_back(tritium);
@@ -50,9 +50,14 @@ species get_species_from_string(const std::string &species_string) {
all.push_back(tritium2I);
all.push_back(tritium2);
all.push_back(tritium3I);
for (std::vector<species>::iterator Itr = all.begin(); Itr!= all.end(); Itr++) {
if (get_species_string(*Itr) == species_string) {
return *Itr;
return all;
};
species get_species_from_string(const std::string &species_string) {
std::vector<species> all = get_all_spieces_vector();
for (std::vector<species>::iterator itr = all.begin(); itr!= all.end(); itr++) {
if (get_species_string(*itr) == species_string) {
return *itr;
}
}
stringstream ss;
@@ -60,6 +65,8 @@ species get_species_from_string(const std::string &species_string) {
throw MyException(ss.str());
}
double get_species_mass(const species &spec) {
double res;
switch (spec) {