Ignore:
Timestamp:
06/19/17 16:00:48 (7 years ago)
Author:
mhnguyen
Message:

Fixing bug: Overlapped domains behave incorrectly

+) If local domains are overlapping on client, the re-constructed domain on server must take care of this overlapped region

Test
+) On Curie
+) test_client, test_complete work
+) Need to test with models

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/dev_olga/src/transformation/generic_algorithm_transformation.cpp

    r1158 r1173  
    4545      { 
    4646        dataOut(localIndex[idx].first) += *(dataInput + idx) * localIndex[idx].second; 
    47       } 
    48     } 
    49  
    50     // for (int idx = 0; idx < nbLocalIndex; ++idx) 
    51     // { 
    52     //   if (!flagInitial[localIndex[idx].first]) 
    53     //     dataOut(localIndex[idx].first) = defaultValue; 
    54     // } 
     47        flagInitial[localIndex[idx].first] = true; // Reset flag to indicate not all data source are nan 
     48      } 
     49    } 
     50 
     51    for (int idx = 0; idx < nbLocalIndex; ++idx) 
     52    { 
     53      if (!flagInitial[localIndex[idx].first]) 
     54        dataOut(localIndex[idx].first) = defaultValue; 
     55    } 
    5556  } 
    5657  else 
Note: See TracChangeset for help on using the changeset viewer.