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