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/scalar_algorithm_reduce_scalar.cpp

    r1601 r1646  
    2222                                                                     std::map<int, int>& elementPositionInGridDst2AxisPosition, 
    2323                                                                     std::map<int, int>& elementPositionInGridDst2DomainPosition) 
     24TRY 
    2425{ 
    2526  std::vector<CScalar*> scalarListDestP = gridDst->getScalars(); 
     
    3233  return (new CScalarAlgorithmReduceScalar(scalarListDestP[scalarDstIndex], scalarListSrcP[scalarSrcIndex], reduceScalar)); 
    3334} 
     35CATCH 
    3436 
    3537bool CScalarAlgorithmReduceScalar::registerTrans() 
     38TRY 
    3639{ 
    3740  CGridTransformationFactory<CScalar>::registerTransformation(TRANS_REDUCE_SCALAR_TO_SCALAR, create); 
    3841} 
     42CATCH 
    3943 
    4044CScalarAlgorithmReduceScalar::CScalarAlgorithmReduceScalar(CScalar* scalarDestination, CScalar* scalarSource, CReduceScalarToScalar* algo) 
    4145 : CScalarAlgorithmTransformation(scalarDestination, scalarSource), 
    4246   reduction_(0) 
     47TRY 
    4348{ 
    4449  eliminateRedondantSrc_= false ; 
     
    8489  reduction_ = CReductionAlgorithm::createOperation(CReductionAlgorithm::ReductionOperations_ptr->at(op)); 
    8590} 
     91CATCH 
    8692 
    8793void CScalarAlgorithmReduceScalar::apply(const std::vector<std::pair<int,double> >& localIndex, const double* dataInput, CArray<double,1>& dataOut, 
    8894                                         std::vector<bool>& flagInitial, bool ignoreMissingValue, bool firstPass) 
     95TRY 
    8996{ 
    9097  reduction_->apply(localIndex, dataInput, dataOut, flagInitial, ignoreMissingValue, firstPass); 
    9198} 
     99CATCH 
    92100 
    93101void CScalarAlgorithmReduceScalar::updateData(CArray<double,1>& dataOut) 
     102TRY 
    94103{ 
    95104  reduction_->updateData(dataOut); 
    96105} 
     106CATCH 
    97107 
    98108CScalarAlgorithmReduceScalar::~CScalarAlgorithmReduceScalar() 
     109TRY 
    99110{ 
    100111  if (0 != reduction_) delete reduction_; 
    101112} 
     113CATCH 
    102114 
    103115void CScalarAlgorithmReduceScalar::computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs) 
     116TRY 
    104117{ 
    105118  this->transformationMapping_.resize(1); 
     
    113126 
    114127} 
     128CATCH 
    115129 
    116130} 
Note: See TracChangeset for help on using the changeset viewer.