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