Changeset 2086 for XIOS


Ignore:
Timestamp:
03/10/21 17:42:25 (3 years ago)
Author:
ymipsl
Message:

XIOS TRAINING : bug fix in remapper. YM

Location:
XIOS/xios_training/XIOS_TO_COMPILE/extern/remap/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • XIOS/xios_training/XIOS_TO_COMPILE/extern/remap/src/mapper.hpp

    r1639 r2086  
    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/xios_training/XIOS_TO_COMPILE/extern/remap/src/node.cpp

    r923 r2086  
    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/xios_training/XIOS_TO_COMPILE/extern/remap/src/triple.hpp

    r1158 r2086  
    3636        Vector& operator+=(const Vector& rhs) 
    3737        { 
    38                 u += rhs.u; 
    39                 v += rhs.v; 
    40                 w += rhs.w; 
     38           u += rhs.u; 
     39           v += rhs.v; 
     40           w += rhs.w; 
     41           return *this ; 
    4142        } 
    4243 
Note: See TracChangeset for help on using the changeset viewer.