Ignore:
Timestamp:
06/22/15 13:36:37 (9 years ago)
Author:
mhnguyen
Message:

Final tests of zoom and inverse on axis

+) Modify test_client and test_complete to work with new grid definition
+) Correct some bugs causing memory leak
+) Clean abundant code
+) Add more comments to new files

Test
+) On Curie
+) test_client and test_complete pass with correct results

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/field.cpp

    r623 r624  
    1313#include "context_server.hpp" 
    1414#include <set> 
    15 #include "axis_filter.hpp" 
    16 #include "invert_algorithm.hpp" 
    1715 
    1816namespace xios{ 
     
    2927      , foperation(), hasInstantData(false), hasExpression(false) 
    3028      , active(false) , hasOutputFile(false),hasFieldOut(false), slotUpdateDate(NULL) 
    31       , processed(false), domAxisIds_("", ""), areAllReferenceSolved(false), areAllExpressionBuilt(false), filter(0) 
     29      , processed(false), domAxisIds_("", ""), areAllReferenceSolved(false), areAllExpressionBuilt(false) 
    3230      , isReadDataRequestPending(false) 
    33       , filterSources_(), algorithms_() 
     31      , filterSources_() 
    3432      { setVirtualVariableGroup(); } 
    3533 
     
    4341      , foperation(), hasInstantData(false), hasExpression(false) 
    4442      , active(false), hasOutputFile(false), hasFieldOut(false), slotUpdateDate(NULL) 
    45       , processed(false), domAxisIds_("", ""), areAllReferenceSolved(false), areAllExpressionBuilt(false), filter(0) 
     43      , processed(false), domAxisIds_("", ""), areAllReferenceSolved(false), areAllExpressionBuilt(false) 
    4644      , isReadDataRequestPending(false) 
    47       , filterSources_(), algorithms_() 
     45      , filterSources_() 
    4846   { setVirtualVariableGroup(); } 
    4947 
     
    5553      if (hasExpression) delete expression; 
    5654      if (slotUpdateDate != NULL) delete slotUpdateDate; 
    57       if (0 != filter) delete filter; 
    5855 
    5956   } 
     
    177174            int rank=(*it).first ; 
    178175            CArray<int,1>& index = *(it->second) ; 
    179                        std::cout << "rank " << index << std::endl; 
    180                        std::cout << "data " << data << std::endl; 
    181176            CArray<double,1> data_tmp(index.numElements()) ; 
    182177            for(int n=0;n<data_tmp.numElements();n++) data_tmp(n)=data(index(n)) ; 
     
    784779           fieldRef->addReference(this); 
    785780           fieldRef->solveGridDomainAxisRef(false); 
    786 //           fieldRef->solveCheckMaskIndex(false); 
    787781           break; 
    788782         } 
     
    798792         fieldRef->addReference(this); 
    799793         fieldRef->solveGridDomainAxisRef(false); 
    800 //         fieldRef->solveCheckMaskIndex(false); 
    801794       } 
    802795 
     
    826819          { 
    827820             const std::map<int, CArray<int,1>* >& localIndexToSend = (*itFilterSrc)->grid->getTransformations()->getLocalIndexToSendFromGridSource(); 
    828              const std::map<int, std::vector<CArray<int,1>* > > localIndexToReceive = (*itFilterSrc)->grid->getTransformations()->getLocalIndexToReceiveOnGridDest(); 
     821             const std::map<int, std::vector<CArray<int,1>* > >& localIndexToReceive = (*itFilterSrc)->grid->getTransformations()->getLocalIndexToReceiveOnGridDest(); 
    829822 
    830823             sendAndReceiveTransformedData(localIndexToSend, dataToSend, 
     
    857850       CArray<int,1>* localIndex_p = itSend->second; 
    858851       int countSize = localIndex_p->numElements(); 
    859        std::cout << "Data Source " <<  dataSrc <<  std::endl; 
    860852       for (int idx = 0; idx < countSize; ++idx) 
    861853       { 
     
    888880         } 
    889881       } 
    890        std::cout << "Data Destination " <<  dataDest <<  std::endl; 
    891882     } 
    892883 
Note: See TracChangeset for help on using the changeset viewer.