Ignore:
Timestamp:
08/25/15 16:52:44 (6 years ago)
Author:
rlacroix
Message:

Fix mask for domains after r664.

Using 2D mask caused an incorrect error message to be triggered and 1D mask was ignored.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/node/domain.cpp

    r671 r675  
    237237        for (int j = 0; j < nj; ++j) 
    238238          for (int i = 0; i < ni; ++i) mask_1d(i+j*ni) = mask_2d(i,j); 
    239       } 
    240       else 
     239        mask_2d.free(); 
     240      } 
     241      else if (mask_1d.isEmpty()) 
    241242      { 
    242243        mask_1d.resize(i_index.numElements()); 
Note: See TracChangeset for help on using the changeset viewer.