Changeset 2087


Ignore:
Timestamp:
03/10/21 18:36:00 (11 months ago)
Author:
ymipsl
Message:

bug fix in remapper
YM

Location:
XIOS/branchs/xios-2.5/extern/remap/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • XIOS/branchs/xios-2.5/extern/remap/src/mapper.hpp

    r1158 r2087  
    2727       void getTargetValue(double* val) ; 
    2828 
    29        double buildSSTree(vector<Node>& srcMsh, vector<Node>& trgMsh) 
     29       void buildSSTree(vector<Node>& srcMsh, vector<Node>& trgMsh) 
    3030       { 
    3131         sstree.build(srcMsh, trgMsh); 
  • XIOS/branchs/xios-2.5/extern/remap/src/node.cpp

    r923 r2087  
    146146void Node::remove(const NodePtr node) 
    147147{ 
    148         if (&node == NULL) return; 
     148        if (node == NULL) return; 
    149149        double w = double(node->leafCount) / this->leafCount; 
    150150        Coord newCentre = proj(this->centre - node->centre * w); 
  • XIOS/branchs/xios-2.5/extern/remap/src/triple.hpp

    r1158 r2087  
    3939                v += rhs.v; 
    4040                w += rhs.w; 
     41                return *this ; 
    4142        } 
    4243 
Note: See TracChangeset for help on using the changeset viewer.