Changeset 1853 for XIOS/dev/dev_ym/XIOS_COUPLING/src/io
- Timestamp:
- 01/20/20 17:55:12 (4 years ago)
- Location:
- XIOS/dev/dev_ym/XIOS_COUPLING/src/io
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_ym/XIOS_COUPLING/src/io/nc4_data_input.cpp
r1639 r1853 47 47 { 48 48 CContext* context = CContext::getCurrent(); 49 CContextServer* server = context->server;50 49 51 50 CGrid* grid = field->grid; -
XIOS/dev/dev_ym/XIOS_COUPLING/src/io/nc4_data_output.cpp
r1847 r1853 71 71 72 72 CContext* context = CContext::getCurrent() ; 73 CContextServer* server=context->server ;74 73 75 74 if (domain->IsWritten(this->filename)) return; … … 146 145 string lonid,latid,bounds_lonid,bounds_latid ; 147 146 string areaId = "area" + appendDomid; 148 /*149 StdString lonid_loc = (server->intraCommSize > 1)150 ? StdString("lon").append(appendDomid).append("_local")151 : lonid;152 StdString latid_loc = (server->intraCommSize > 1)153 ? StdString("lat").append(appendDomid).append("_local")154 : latid;155 */156 147 157 148 CArray<int, 1>& indexToWrite = domain->localIndexToWriteOnServer; … … 246 237 SuperClassWriter::addDimension(dimVertId, domain->nvertex); 247 238 248 if ( server->intraCommSize> 1)239 if (context->intraCommSize_ > 1) 249 240 { 250 241 this->writeLocalAttributes(domain->ibegin, … … 261 252 domain->nj, 262 253 domain->ni_glo,domain->nj_glo, 263 server->intraCommRank,server->intraCommSize);254 context->intraCommRank_,context->intraCommSize_); 264 255 } 265 256 … … 300 291 301 292 302 // supress mask if ( server->intraCommSize> 1)293 // supress mask if (context->intraCommSize_ > 1) 303 294 // supress mask { 304 295 // supress mask SuperClassWriter::addVariable(maskid, NC_INT, dim0); … … 548 539 { 549 540 CContext* context = CContext::getCurrent() ; 550 CContextServer* server=context->server ;551 541 552 542 if (domain->IsWritten(this->filename)) return; … … 571 561 StdString domainName = domain->name; 572 562 domain->assignMesh(domainName, domain->nvertex); 573 domain->mesh->createMeshEpsilon( server->intraComm, domain->lonvalue, domain->latvalue, domain->bounds_lonvalue, domain->bounds_latvalue);563 domain->mesh->createMeshEpsilon(context->intraComm_, domain->lonvalue, domain->latvalue, domain->bounds_lonvalue, domain->bounds_latvalue); 574 564 575 565 StdString node_x = domainName + "_node_x"; … … 908 898 { 909 899 CContext* context = CContext::getCurrent() ; 910 CContextServer* server=context->server ;911 900 912 901 if (domain->IsWritten(this->filename)) return; … … 1814 1803 { 1815 1804 CContext* context = CContext::getCurrent() ; 1816 CContextServer* server=context->server ;1817 1805 1818 1806 std::vector<StdString> dims, coodinates; … … 2358 2346 { 2359 2347 CContext* context = CContext::getCurrent(); 2360 CContextServer* server = context->server;2361 2348 CGrid* grid = field->grid; 2362 2349 … … 2462 2449 } 2463 2450 2464 bool isRoot = ( server->intraCommRank== 0);2451 bool isRoot = (context->intraCommRank_ == 0); 2465 2452 2466 2453 if (!field->scale_factor.isEmpty() || !field->add_offset.isEmpty())
Note: See TracChangeset
for help on using the changeset viewer.