Ignore:
Timestamp:
03/10/15 10:49:02 (9 years ago)
Author:
mhnguyen
Message:

Implementing a grid formed by only one axis or group of axis

+) Add several new attributes to axis. From now on, each axis can be distributed on client side
+) Modify mask of grid to make it more flexible to different dimension
+) Fix some bugs relating to calculation of local data index on client
+) Clean some redundant codes

Test
+) On Curie, only test_new_features.f90
+) Test cases:

  • Grid composed of: 1 domain and 1 axis, 3 axis, 1 axis
  • Mode: Attached and connected
  • No of client-server: 6-2(Connected), 2 (Attached)

+) All tests passed and results are correct

File:
1 edited

Legend:

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

    r561 r567  
    212212 
    213213      allDomainEmpty=true ; 
     214 
    214215      set<CDomain*> setDomain ; 
    215216 
     
    218219      { 
    219220         CField* field = *it; 
    220          allDomainEmpty&=field->grid->domain->isEmpty() ; 
    221          setDomain.insert(field->grid->domain) ; 
     221//         allDomainEmpty&=field->grid->domain->isEmpty() ; 
     222         allDomainEmpty&=(!field->grid->doGridHaveDataToWrite()); 
     223         std::vector<CDomain*> vecDomain = field->grid->getDomains(); 
     224         for (int i = 0; i < vecDomain.size(); ++i) 
     225            setDomain.insert(vecDomain[i]); 
     226//            setDomain.insert(field->grid->domain) ; 
    222227      } 
    223228      nbDomain=setDomain.size() ; 
     
    320325 
    321326        bool append = !this->append.isEmpty() && this->append.getValue(); 
    322          
     327 
    323328         bool useClassicFormat = !format.isEmpty() && format == format_attr::netcdf4_classic; 
    324329 
Note: See TracChangeset for help on using the changeset viewer.