Moved serial mode to target mcelecron_serial.
Implemented parallelization with mpi.
This commit is contained in:
@@ -70,15 +70,15 @@ void Stacked_Container<T_Map>::rec_calcMap(const dim1Map &subMap, std::deque<dou
|
||||
Points.pop_back();
|
||||
Points.pop_back();
|
||||
|
||||
dim1Map::const_iterator preItr;
|
||||
for (dim1Map::const_iterator curItr = (++subMap.cbegin()); curItr!=subMap.cend(); curItr++) {
|
||||
preItr = curItr;
|
||||
--preItr;
|
||||
width = curItr->first - preItr->first;
|
||||
heigth = curItr->second/tot;
|
||||
dim1Map::const_iterator preitr;
|
||||
for (dim1Map::const_iterator curitr = (++subMap.cbegin()); curitr!=subMap.cend(); curitr++) {
|
||||
preitr = curitr;
|
||||
--preitr;
|
||||
width = curitr->first - preitr->first;
|
||||
heigth = curitr->second/tot;
|
||||
curVal += width*heigth;
|
||||
Points.push_back(curVal);
|
||||
Points.push_back(curItr->first);
|
||||
Points.push_back(curitr->first);
|
||||
Base_Container<T_Map>::addPoint(Points);
|
||||
Points.pop_back();
|
||||
Points.pop_back();
|
||||
@@ -88,9 +88,9 @@ void Stacked_Container<T_Map>::rec_calcMap(const dim1Map &subMap, std::deque<dou
|
||||
template <class T_Map>
|
||||
template <typename T>
|
||||
void Stacked_Container<T_Map>::rec_calcMap(const T &subMap, std::deque<double> Points) {
|
||||
for (typename T::const_iterator Itr = subMap.cbegin(); Itr!= subMap.cend(); Itr++) {
|
||||
Points.push_back(Itr->first);
|
||||
rec_calcMap(Itr->second, Points);
|
||||
for (typename T::const_iterator itr = subMap.cbegin(); itr!= subMap.cend(); itr++) {
|
||||
Points.push_back(itr->first);
|
||||
rec_calcMap(itr->second, Points);
|
||||
Points.pop_back();
|
||||
}
|
||||
}
|
||||
@@ -103,12 +103,12 @@ double Stacked_Container<T_Map>::calc_tot(const dim1Map &subMap) {
|
||||
width = subMap.begin()->first - lowerEdge;
|
||||
heigth = subMap.begin()->second;
|
||||
tot += width*heigth;
|
||||
dim1Map::const_iterator preItr;
|
||||
for (dim1Map::const_iterator curItr = (++subMap.cbegin()); curItr!=subMap.cend(); curItr++) {
|
||||
preItr = curItr;
|
||||
--preItr;
|
||||
width = curItr->first - preItr->first;
|
||||
heigth = curItr->second;
|
||||
dim1Map::const_iterator preitr;
|
||||
for (dim1Map::const_iterator curitr = (++subMap.cbegin()); curitr!=subMap.cend(); curitr++) {
|
||||
preitr = curitr;
|
||||
--preitr;
|
||||
width = curitr->first - preitr->first;
|
||||
heigth = curitr->second;
|
||||
tot += width*heigth;
|
||||
}
|
||||
return tot;
|
||||
|
||||
Reference in New Issue
Block a user