Ignore:
Timestamp:
01/31/19 12:12:52 (5 years ago)
Author:
yushan
Message:

branch merged with trunk @1645. arch file (ep&mpi) added for ADA

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_trunk_omp/src/transformation/axis_algorithm_reduce_domain.cpp

    r1601 r1646  
    2525                                                                   std::map<int, int>& elementPositionInGridDst2AxisPosition, 
    2626                                                                   std::map<int, int>& elementPositionInGridDst2DomainPosition) 
     27TRY 
    2728{ 
    2829  std::vector<CAxis*> axisListDestP = gridDst->getAxis(); 
     
    3536  return (new CAxisAlgorithmReduceDomain(axisListDestP[axisDstIndex], domainListSrcP[domainSrcIndex], reduceDomain)); 
    3637} 
     38CATCH 
    3739 
    3840bool CAxisAlgorithmReduceDomain::registerTrans() 
     41TRY 
    3942{ 
    4043  CGridTransformationFactory<CAxis>::registerTransformation(TRANS_REDUCE_DOMAIN_TO_AXIS, create); 
    4144} 
     45CATCH 
    4246 
    4347 
    4448CAxisAlgorithmReduceDomain::CAxisAlgorithmReduceDomain(CAxis* axisDestination, CDomain* domainSource, CReduceDomainToAxis* algo) 
    4549 : CAxisAlgorithmTransformation(axisDestination, domainSource), reduction_(0) 
     50TRY 
    4651{ 
    4752  algo->checkValid(axisDestination, domainSource); 
     
    7782  local = algo->local ; 
    7883} 
     84CATCH 
    7985 
    8086void CAxisAlgorithmReduceDomain::apply(const std::vector<std::pair<int,double> >& localIndex, 
     
    8389                                       std::vector<bool>& flagInitial,                      
    8490                                       bool ignoreMissingValue, bool firstPass) 
     91TRY 
    8592{ 
    8693  reduction_->apply(localIndex, dataInput, dataOut, flagInitial, ignoreMissingValue, firstPass); 
    8794} 
     95CATCH 
    8896 
    8997void CAxisAlgorithmReduceDomain::updateData(CArray<double,1>& dataOut) 
     98TRY 
    9099{ 
    91100  reduction_->updateData(dataOut); 
    92101} 
     102CATCH 
    93103 
    94104CAxisAlgorithmReduceDomain::~CAxisAlgorithmReduceDomain() 
     105TRY 
    95106{ 
    96107  if (0 != reduction_) delete reduction_; 
    97108} 
     109CATCH 
    98110 
    99111void CAxisAlgorithmReduceDomain::computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs) 
     112TRY 
    100113{ 
    101114  this->transformationMapping_.resize(1); 
     
    178191  {} 
    179192} 
     193CATCH 
    180194 
    181195} 
Note: See TracChangeset for help on using the changeset viewer.