- Timestamp:
- 08/25/15 10:50:20 (9 years ago)
- Location:
- XIOS/trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/node/domain.cpp
r668 r671 842 842 std::vector<int> permutIndex(indexSize); 843 843 XIOSAlgorithms::fillInIndex(indexSize, permutIndex); 844 XIOSAlgorithms::sortWithIndex<size_t >(it->second, permutIndex);844 XIOSAlgorithms::sortWithIndex<size_t, CVectorStorage>(it->second, permutIndex); 845 845 BinarySearch binSearch(it->second); 846 846 int nb = globalIndexDomainZoom.numElements(); -
XIOS/trunk/src/node/grid.cpp
r668 r671 374 374 std::vector<int> permutIndex(indexSize); 375 375 XIOSAlgorithms::fillInIndex(indexSize, permutIndex); 376 XIOSAlgorithms::sortWithIndex<size_t >(itGlobalMap->second, permutIndex);376 XIOSAlgorithms::sortWithIndex<size_t, CVectorStorage>(itGlobalMap->second, permutIndex); 377 377 BinarySearch binSearch(itGlobalMap->second); 378 378 for (int i = 0; i < nbGlobalIndex; ++i) … … 617 617 std::vector<int> permutIndex(indexSize); 618 618 XIOSAlgorithms::fillInIndex(indexSize, permutIndex); 619 XIOSAlgorithms::sortWithIndex<size_t >(itGlobalMap->second, permutIndex);619 XIOSAlgorithms::sortWithIndex<size_t, CVectorStorage>(itGlobalMap->second, permutIndex); 620 620 BinarySearch binSearch(itGlobalMap->second); 621 621 -
XIOS/trunk/src/transformation/grid_transformation.cpp
r668 r671 472 472 typedef XIOSBinarySearchWithIndex<size_t> BinarySearch; 473 473 XIOSAlgorithms::fillInIndex(globalIndexOfCurrentGridSource_.size(), permutIndex); 474 XIOSAlgorithms::sortWithIndex<size_t >(globalIndexOfCurrentGridSource_, permutIndex);474 XIOSAlgorithms::sortWithIndex<size_t, CVectorStorage>(globalIndexOfCurrentGridSource_, permutIndex); 475 475 BinarySearch searchCurrentSrc(globalIndexOfCurrentGridSource_); 476 476 std::vector<int>::iterator itbIndex = permutIndex.begin(), itIndex, … … 603 603 // Find out local index on grid destination (received) 604 604 XIOSAlgorithms::fillInIndex(globalIndexOnClientDest.size(), permutIndex); 605 XIOSAlgorithms::sortWithIndex<size_t >(globalIndexOnClientDest, permutIndex);605 XIOSAlgorithms::sortWithIndex<size_t, CVectorStorage>(globalIndexOnClientDest, permutIndex); 606 606 itbIndex = permutIndex.begin(); 607 607 iteIndex = permutIndex.end(); … … 633 633 std::map<int,std::vector<size_t> >::const_iterator itbMap, itMap, iteMap; 634 634 XIOSAlgorithms::fillInIndex(globalIndexOnClientSrc.size(), permutIndex); 635 XIOSAlgorithms::sortWithIndex<size_t >(globalIndexOnClientSrc, permutIndex);635 XIOSAlgorithms::sortWithIndex<size_t, CVectorStorage>(globalIndexOnClientSrc, permutIndex); 636 636 itbIndex = permutIndex.begin(); 637 637 iteIndex = permutIndex.end(); -
XIOS/trunk/src/utils.hpp
r668 r671 307 307 { 308 308 public: 309 template<typename T, template <class> class StoragePolicy = CVectorStorage>309 template<typename T, template <class> class StoragePolicy> 310 310 static void sortWithIndex(const typename StoragePolicy<T>::StorageType& values, std::vector<int>& rv) 311 311 {
Note: See TracChangeset
for help on using the changeset viewer.