Ignore:
Timestamp:
05/11/17 18:25:20 (7 years ago)
Author:
mhnguyen
Message:

Updating two-level server.
Each client now can play the role of server: It can forward data to other clients or write data like a server.
Each client must combine all data received from other client(s) before forward them or write them on files

+) Correct some bugs of exchange data_index in domain and axis
+) Reorder some functions in context.cpp to make sure that all necessary attributes are available before computing index
+) Add the mapping index for client to write data.

Test
+) On Curie
+) test_client and test_complete
+) Mode:

  • Only one level: Correct
  • Two levels: Work if using ddt (bug)

+) Only zoom is tested but other transformations should work
+) No reading test

Location:
XIOS/dev/dev_olga/src/transformation
Files:
2 edited

Legend:

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

    r933 r1129  
    6060void CAxisAlgorithmZoom::computeIndexSourceMapping_(const std::vector<CArray<double,1>* >& dataAuxInputs) 
    6161{ 
     62  // We use all index of source and destination to calculate the mapping index of zoom. 
     63  // The server who receives the "zoomed" fields will decide whether it will forward these fields or write "real zoomed" fields into file 
     64  // That means servers need to change to cover this problem. 
    6265  StdSize niSource = axisSrc_->n.getValue(); 
    6366  StdSize ibeginSource = axisSrc_->begin.getValue(); 
     
    6669  StdSize ibegin = std::max(ibeginSource, zoomBegin_); 
    6770  StdSize iend = std::min(iendSource, zoomEnd_); 
     71  // StdSize ibegin = ibeginSource; 
     72  // StdSize iend = iendSource; 
    6873  StdSize ni = iend + 1 - ibegin; 
    6974  if (iend < ibegin) ni = 0; 
     
    8287 
    8388  updateZoom(); 
    84   updateAxisDestinationMask(); 
     89  // updateAxisDestinationMask(); 
    8590} 
    8691 
  • XIOS/dev/dev_olga/src/transformation/domain_algorithm_zoom.cpp

    r933 r1129  
    113113 
    114114  updateZoom(); 
    115   updateDomainDestinationMask(); 
     115  // updateDomainDestinationMask(); 
    116116} 
    117117 
Note: See TracChangeset for help on using the changeset viewer.