Changeset 2227 for XIOS


Ignore:
Timestamp:
09/13/21 15:41:19 (3 years ago)
Author:
jderouillat
Message:

Exclude masked points from transformation definition (domain_extract)

File:
1 edited

Legend:

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

    r2226 r2227  
    210210      domainDest_->i_index(countDest) = iIdxSrc-extractIBegin_; 
    211211      domainDest_->j_index(countDest) = jIdxSrc-extractJBegin_; 
    212       transformationMapping_[extractNi_*(jIdxSrc-extractJBegin_)+iIdxSrc-extractIBegin_]=sourceGlobalIdx(countSrc); 
     212 
     213      bool concerned_by_WF(false); 
     214      for ( int i = 0 ; i<sourceWorkflowIdx.numElements() ; ++i ) 
     215      { 
     216        if (sourceWorkflowIdx(i)==countSrc) 
     217        {       
     218          concerned_by_WF = true; 
     219          break; 
     220        } 
     221      } 
     222      if (concerned_by_WF) 
     223      { 
     224        transformationMapping_[extractNi_*(jIdxSrc-extractJBegin_)+iIdxSrc-extractIBegin_]=sourceGlobalIdx(countSrc); 
     225      } 
    213226 
    214227      int iIdxDestLocal = countDest%niDest; 
Note: See TracChangeset for help on using the changeset viewer.