Changeset 2395


Ignore:
Timestamp:
08/31/22 09:36:50 (22 months ago)
Author:
jderouillat
Message:

Add a nvertex_name attribute for Domain

Location:
XIOS3/trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/trunk/src/config/domain_attribute.conf

    r1930 r2395  
    5252 
    5353DECLARE_ATTRIBUTE(int, nvertex) 
     54DECLARE_ATTRIBUTE(StdString, nvertex_name, false) 
    5455DECLARE_ARRAY(double, 2, bounds_lon_1d, false) 
    5556DECLARE_ARRAY(double, 2, bounds_lat_1d, false) 
  • XIOS3/trunk/src/io/nc4_data_output.cpp

    r2394 r2395  
    855855         StdString dimXid = cellName+appendDomid; 
    856856         StdString dimVertId; 
    857          if (!domain->dim_j_name.isEmpty()) dimVertId=domain->dim_j_name; 
    858          else dimVertId = StdString("nvertex").append(appendDomid); 
     857         if (domain->nvertex_name.isEmpty()) dimVertId = "nvertex"; 
     858         else dimVertId = domain->nvertex_name; 
    859859 
    860860         string lonid,latid,bounds_lonid,bounds_latid ; 
  • XIOS3/trunk/src/node/domain.cpp

    r2390 r2395  
    18271827       { 
    18281828         this->dim_i_name = writtenDomain->dim_i_name; 
    1829          this->dim_j_name = writtenDomain->dim_j_name; 
     1829         this->nvertex_name = writtenDomain->nvertex_name; 
    18301830       } 
    18311831     } 
     
    18381838       { 
    18391839         this->dim_i_name = "cell_"+this->getId(); 
    1840          this->dim_j_name = "nvertex_"+this->getId(); 
     1840         this->nvertex_name = "nvertex_"+this->getId(); 
    18411841       } 
    18421842     } 
Note: See TracChangeset for help on using the changeset viewer.