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
+5 -5
View File
@@ -40,8 +40,8 @@ inline void Manager_Base<T>::add(T* add) {
template <class T>
inline bool Manager_Base<T>::exists(species this_species) {
for (typename std::vector<T*>::iterator Itr = processes.begin(); Itr!=processes.end(); Itr++) {
if ((*Itr)->get_species() == this_species) {
for (typename std::vector<T*>::iterator itr = processes.begin(); itr!=processes.end(); itr++) {
if ((*itr)->get_species() == this_species) {
return true;
}
}
@@ -50,9 +50,9 @@ inline bool Manager_Base<T>::exists(species this_species) {
template <class T>
inline T* Manager_Base<T>::find(species this_species) {
for (typename std::vector<T*>::iterator Itr = processes.begin(); Itr!=processes.end(); Itr++) {
if ((*Itr)->get_species() == this_species) {
return *Itr;
for (typename std::vector<T*>::iterator itr = processes.begin(); itr!=processes.end(); itr++) {
if ((*itr)->get_species() == this_species) {
return *itr;
}
}
std::stringstream ss;