Changeset 2006


Ignore:
Timestamp:
01/05/21 13:47:52 (9 months ago)
Author:
ymipsl
Message:

Some fix domain_algorithm_extract. Now the domain destination not need to be a reference of the source grid.
YM

Location:
XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/domain_algorithm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/domain_algorithm/domain_algorithm_extract.cpp

    r1998 r2006  
    9797  if (niDest==0) ibeginDest=0 ; 
    9898  if (njDest==0) jbeginDest=0 ; 
     99   
     100  domainDest_->type = domainSrc_ -> type ; 
     101  domainDest_->data_dim = domainSrc_->data_dim ; 
    99102  domainDest_->ni_glo.setValue(extractNi_); 
    100103  domainDest_->nj_glo.setValue(extractNj_); 
     
    113116  domainDest_->data_j_index.resize(niDest*njDest); // local position 
    114117 
    115   domainDest_->domainMask.resize(niDest*njDest); 
     118  //domainDest_->domainMask.resize(niDest*njDest); 
    116119 
    117120  if (!domainSrc_->mask_2d.isEmpty()) domainDest_->mask_2d.resize(niDest,njDest); 
     
    169172      domainDest_->data_i_index(indLocDest) = (domainSrc_->data_dim == 1) ? indLocDest : iDest;          // data_i_index contains local positions 
    170173      domainDest_->data_j_index(indLocDest) = (domainSrc_->data_dim == 1) ? 0 :jDest;                    // data_i_index contains local positions 
    171       domainDest_->domainMask(indLocDest) = domainSrc_->domainMask(indLocSrc); 
     174      //domainDest_->domainMask(indLocDest) = domainSrc_->domainMask(indLocSrc); 
    172175 
    173176      if (!domainSrc_->mask_2d.isEmpty()) 
  • XIOS/dev/dev_ym/XIOS_COUPLING/src/transformation/domain_algorithm/domain_algorithm_interpolate.cpp

    r2002 r2006  
    4848TRY 
    4949{ 
    50   cout<<"REGISTRED"<<endl ; 
    5150  return CGridTransformationFactory<CDomain>::registerTransformation(TRANS_INTERPOLATE_DOMAIN, create); 
    5251} 
Note: See TracChangeset for help on using the changeset viewer.