Ignore:
Timestamp:
06/15/17 19:32:13 (7 years ago)
Author:
yushan
Message:

save dev. need to unify the file type when using EP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan_merged/extern/remap/src/node.cpp

    r1155 r1172  
    472472        q->child.resize(MAX_NODE_SZ/2 + 1); 
    473473        assert(thIs->child.size() == MAX_NODE_SZ+1); 
    474         thIs->tree->ref = thIs->closest(thIs->child, FARTHEST); // farthest from centre 
     474        if(thIs->closest(thIs->child, FARTHEST) == 0)  
     475          thIs->tree->ref = thIs->closest(thIs->child, FARTHEST); // farthest from centre 
     476           
     477        thIs->tree->ref = thIs->closest(thIs->child, FARTHEST); // farthest from centre 
     478         
     479           
    475480        std::sort(thIs->child.begin(), thIs->child.end(), compareDist); 
    476481        for (int i = 0; i < MAX_NODE_SZ+1; i++) 
Note: See TracChangeset for help on using the changeset viewer.