Ignore:
Timestamp:
08/24/15 14:53:13 (9 years ago)
Author:
mhnguyen
Message:

Correcting minor bugs on processing domain transformation

+) Correct domain index calculation in domain transformation
+) Offset index of weight file to make test_remap work correctly

Test
+) On Curie
+) Test_remap pass and result is correct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/trunk/src/transformation/domain_algorithm_transformation.cpp

    r657 r663  
    7373    ++idx; 
    7474  } 
    75   int iIndex = domainDestGlobalIndex % domainDestGlobalDim[1]; 
     75  int iIndex = domainDestGlobalIndex % domainDestGlobalDim[0]; 
    7676  int jIndex = domainDestGlobalIndex / domainDestGlobalDim[0]; 
    7777 
     
    188188                                                       int& iIndex, int& jIndex) 
    189189{ 
    190    iIndex = index % njGlob; 
     190   iIndex = index % niGlob; 
    191191   jIndex = index / niGlob; 
    192192} 
Note: See TracChangeset for help on using the changeset viewer.