Changeset 1114 for XIOS/trunk/src


Ignore:
Timestamp:
05/03/17 15:07:53 (7 years ago)
Author:
ymipsl
Message:

Add conservative remapping option for quantity, ie, the integrated value over a cell area.

YM

Location:
XIOS/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/config/interpolate_domain_attribute.conf

    r1014 r1114  
    22DECLARE_ATTRIBUTE(int, order) 
    33DECLARE_ATTRIBUTE(bool, renormalize) 
     4DECLARE_ATTRIBUTE(bool, quantity) 
    45 
    56/* Write interpolation weights into file */ 
  • XIOS/trunk/src/transformation/domain_algorithm_interpolate.cpp

    r1046 r1114  
    100100  int orderInterp = interpDomain_->order.getValue(); 
    101101  bool renormalize ; 
     102  bool quantity ; 
    102103 
    103104  if (interpDomain_->renormalize.isEmpty()) renormalize=true; 
    104105  else renormalize = interpDomain_->renormalize; 
     106 
     107  if (interpDomain_->quantity.isEmpty()) quantity=false; 
     108  else quantity = interpDomain_->quantity; 
    105109 
    106110  const double poleValue = 90.0; 
     
    342346  mapper.setTargetMesh(boundsLonDestUnmasked.dataFirst(), boundsLatDestUnmasked.dataFirst(), nVertexDest, nDstLocalUnmasked, &dstPole[0], globalDstUnmasked); 
    343347 
    344   std::vector<double> timings = mapper.computeWeights(orderInterp,renormalize); 
     348  std::vector<double> timings = mapper.computeWeights(orderInterp,renormalize,quantity); 
    345349 
    346350  std::map<int,std::vector<std::pair<int,double> > > interpMapValue; 
Note: See TracChangeset for help on using the changeset viewer.