Ignore:
Timestamp:
03/28/23 16:42:11 (15 months ago)
Author:
ymipsl
Message:

First guess in supression of attached mode replaced by online reader and write filters

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS3/dev/XIOS_ATTACHED/src/transformation/domain_algorithm/domain_algorithm_extract.cpp

    r2340 r2482  
    7676   domainDestination->bounds_lon_2d.reset(); 
    7777   domainDestination->bounds_lat_2d.reset(); 
    78    domainDestination->area.reset(); 
     78   domainDestination->area_1d.reset(); 
     79   domainDestination->area_2d.reset(); 
    7980   domainDestination->radius.reset(); 
    8081    
     
    175176    } 
    176177  } 
    177   if (domainSrc_->hasArea) domainDest_->area.resize(niDest,njDest); 
    178  
     178  if (domainSrc_->hasArea)  
     179  { 
     180    if (!domainSrc_->area_2d.isEmpty()) domainDest_->area_2d.resize(niDest,njDest); 
     181    else if (!domainSrc_->area_1d.isEmpty()) domainDest_->area_1d.resize(niDest*njDest); 
     182  } 
    179183  // Set attributes required to define domainDestination->localElement_ and associated views, full and workflow) 
    180184  CArray<size_t,1> sourceGlobalIdx = domainSource->getLocalElement()->getGlobalIndex(); 
     
    241245 
    242246      // area 
    243       if (!domainSrc_->area.isEmpty()) 
    244       { 
    245         domainDest_->area(iIdxDestLocal,jIdxDestLocal) = domainSrc_->area(iIdxSrcLocal,jIdxSrcLocal); 
    246       } 
     247      if (!domainSrc_->area_2d.isEmpty()) domainDest_->area_2d(iIdxDestLocal,jIdxDestLocal) = domainSrc_->area_2d(iIdxSrcLocal,jIdxSrcLocal); 
     248      else if (!domainSrc_->area_1d.isEmpty())  domainDest_->area_1d(countDest) = domainSrc_->area_1d(countSrc); 
    247249 
    248250      // bounds 
Note: See TracChangeset for help on using the changeset viewer.