Ignore:
Timestamp:
11/23/21 13:12:46 (3 years ago)
Author:
ymipsl
Message:

Scalar can be now distributed on server side, avoiding incorrect result coming from redondant nature of scalar grid.
YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/node/grid.cpp

    r2236 r2264  
    14271427      else if (element.type==TYPE_SCALAR) posDistributed++ ; 
    14281428    } 
     1429    if (posDistributed==elements.size()) posDistributed=0 ; // grid composed only of scalar 
    14291430     
    14301431    vector<CLocalView*> localViews ; 
     
    14531454      { 
    14541455        CScalar* scalar = (CScalar*) elements[i].ptr ; 
    1455         scalar->computeRemoteElement(client, posDistributed==i ? EDistributionType::BANDS : EDistributionType::NONE) ; 
     1456        scalar->computeRemoteElement(client, posDistributed==i ? EDistributionType::ROOT : EDistributionType::NONE) ; 
    14561457        remoteViews.push_back(scalar->getRemoteElement(client)->getView(CElementView::FULL)) ; 
    14571458        localViews.push_back(scalar->getLocalView(CElementView::FULL)) ; 
Note: See TracChangeset for help on using the changeset viewer.