Changeset 1879 for XIOS


Ignore:
Timestamp:
05/15/20 09:50:29 (4 years ago)
Author:
ymipsl
Message:

XIOS coupling Branch

  • fix problem for domain when receiving latitude
  • area attribute is filled when received from other context

YM

File:
1 edited

Legend:

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

    r1878 r1879  
    27262726        } 
    27272727      } 
    2728     } 
    2729     else if (type == type_attr::unstructured || type == type_attr::gaussian) 
    2730     { 
    2731       lonvalue_1d.resize(nbLonInd); 
    2732       lonvalue_1d = lonvalue ; 
    2733       if (hasBounds) 
    2734       { 
    2735         bounds_lon_1d.resize(nvertex, nbLonInd) ; 
    2736         bounds_lon_1d = bounds_lonvalue ; 
     2728      else if (type == type_attr::unstructured || type == type_attr::gaussian) 
     2729      { 
     2730        lonvalue_1d.resize(nbLonInd); 
     2731        lonvalue_1d = lonvalue ; 
     2732        if (hasBounds) 
     2733        { 
     2734          bounds_lon_1d.resize(nvertex, nbLonInd) ; 
     2735          bounds_lon_1d = bounds_lonvalue ; 
     2736        } 
    27372737      } 
    27382738    } 
     
    29402940      } 
    29412941       
     2942      // fill the area attribute 
     2943      area.resize(ni,nj); 
     2944      for (int j = 0; j < nj; ++j) 
     2945      { 
     2946        for (int i = 0; i < ni; ++i) 
     2947        { 
     2948          int k = j * ni + i; 
     2949          area(i,j) = areavalue(k) ; 
     2950        } 
     2951      } 
    29422952    } 
    29432953  } 
Note: See TracChangeset for help on using the changeset viewer.