Changeset 567 for XIOS/trunk/src/node/distribution_server.cpp
- Timestamp:
- 03/10/15 10:49:02 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/distribution_server.cpp
r553 r567 19 19 const std::vector<int>& nZoomSize, const std::vector<int>& nGlobal) 20 20 : CDistribution(rank, nGlobal.size()), nGlobal_(nGlobal), nZoomSize_(nZoomSize), nZoomBegin_(nZoomBegin) 21 { 22 createGlobalIndex(); 23 } 24 25 CDistributionServer::CDistributionServer(int rank, const std::vector<int>& nZoomBegin, 26 const std::vector<int>& nZoomSize, 27 const std::vector<int>& nZoomBeginGlobal, 28 const std::vector<int>& nGlobal) 29 : CDistribution(rank, nGlobal.size()), nGlobal_(nGlobal), nZoomBeginGlobal_(nZoomBeginGlobal), 30 nZoomSize_(nZoomSize), nZoomBegin_(nZoomBegin) 21 31 { 22 32 createGlobalIndex(); … … 89 99 for (int i = 0; i < ssize; ++i) 90 100 { 91 it = std::lower_bound(it, itEnd, globalIndex(i)); 101 it = std::find(itBegin, itEnd, globalIndex(i)); 102 // it = std::lower_bound(it, itEnd, globalIndex(i)); 92 103 if (itEnd != it) 93 104 { … … 114 125 for (int i = 0; i < ssize; ++i) 115 126 { 116 it = std::lower_bound(it, itEnd, globalIndex(i)); 127 it = std::find(itBegin, itEnd, globalIndex(i)); 128 // it = std::lower_bound(it, itEnd, globalIndex(i)); 117 129 if (itEnd != it) 118 130 { … … 125 137 } 126 138 139 140 std::vector<int> CDistributionServer::getZoomBeginGlobal() const 141 { 142 return nZoomBeginGlobal_; 143 } 144 145 std::vector<int> CDistributionServer::getZoomBeginServer() const 146 { 147 return nZoomBegin_; 148 } 149 150 std::vector<int> CDistributionServer::getZoomSizeServer() const 151 { 152 return nZoomSize_; 153 } 127 154 } // namespace xios
Note: See TracChangeset
for help on using the changeset viewer.