Ignore:
Timestamp:
01/08/18 16:46:46 (4 years ago)
Author:
oabramkina
Message:

Taking into account a possibility of having a hole on the client side (NEMO-like grid).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/XIOS_DEV_CMIP6/src/node/domain.cpp

    r1364 r1390  
    19021902                                       itSrve = writtenGlobalIndex.end(), itSrv; 
    19031903 
     1904//      for (itSrv = itSrvb; itSrv != itSrve; ++itSrv) 
     1905//      { 
     1906//        indGlo = *itSrv; 
     1907//        if (ite != globalLocalIndexMap_.find(indGlo)) 
     1908//        { 
     1909//          ++nbWritten; 
     1910//        } 
     1911//      } 
     1912 
     1913//      localIndexToWriteOnServer.resize(nbWritten); 
     1914      localIndexToWriteOnServer.resize(writtenGlobalIndex.numElements()); 
     1915 
     1916      nbWritten = 0; 
    19041917      for (itSrv = itSrvb; itSrv != itSrve; ++itSrv) 
    19051918      { 
    19061919        indGlo = *itSrv; 
    19071920        if (ite != globalLocalIndexMap_.find(indGlo)) 
    1908         {           
    1909           ++nbWritten; 
    1910         }                  
    1911       } 
    1912  
    1913       localIndexToWriteOnServer.resize(nbWritten); 
    1914  
    1915       nbWritten = 0; 
    1916       for (itSrv = itSrvb; itSrv != itSrve; ++itSrv) 
    1917       { 
    1918         indGlo = *itSrv; 
    1919         if (ite != globalLocalIndexMap_.find(indGlo)) 
    19201921        { 
    19211922          localIndexToWriteOnServer(nbWritten) = globalLocalIndexMap_[indGlo]; 
    19221923          ++nbWritten; 
    1923         }                  
     1924        } 
     1925        else 
     1926        { 
     1927          localIndexToWriteOnServer(nbWritten) = 0; 
     1928          ++nbWritten; 
     1929        } 
    19241930      } 
    19251931       
Note: See TracChangeset for help on using the changeset viewer.