Ignore:
Timestamp:
01/23/19 10:31:44 (5 years ago)
Author:
yushan
Message:

dev on ADA. add flag switch _usingEP/_usingMPI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_openmp/src/node/domain.hpp

    r1545 r1642  
    1717#include "transformation_enum.hpp" 
    1818#include "server_distribution_description.hpp" 
    19 #include "mpi_std.hpp" 
    2019#include "mesh.hpp" 
    2120 
     
    5049         { 
    5150           EVENT_ID_INDEX, EVENT_ID_LON, EVENT_ID_LAT,  
    52            EVENT_ID_AREA, EVENT_ID_MASK, 
     51           EVENT_ID_AREA, 
    5352           EVENT_ID_DATA_INDEX, EVENT_ID_SERVER_ATTRIBUT 
    5453         } ; 
     
    143142         CArray<double, 1> areavalue; 
    144143 
    145          CArray<size_t,1> localIndexToWriteOnServer;          
     144         CArray<int,1> localIndexToWriteOnServer; 
    146145 
    147146         CArray<bool, 1> domainMask; // mask_1d, mask_2d -> domainMask 
     
    152151         bool hasLonLat; 
    153152         bool hasPole ; 
     153         bool hasLatInReadFile_ ; // specify if latitude is defined on read file, so it can be read later when grid distribution will be defined 
     154         bool hasBoundsLatInReadFile_ ; // specify if latitude boundarues are defined on read file, so it can be read later when grid distribution will be defined 
     155         bool hasLonInReadFile_ ; // specify if longitude is defined on read file, so it can be read later when grid distribution will be defined 
     156         bool hasBoundsLonInReadFile_ ; // specify if longitude boundaries are defined on read file, so it can be read later when grid distribution will be defined 
    154157 
    155158         void computeLocalMask(void) ; 
     
    166169         void checkArea(void); 
    167170         void checkLonLat(); 
    168          void checkZoom(void); 
    169171 
    170172         void setTransformations(const TransMapTypes&);          
     
    173175         void sendIndex(); 
    174176         void sendDistributionAttributes(); 
    175          void sendMask(); 
    176177         void sendArea(); 
    177178         void sendLonLat();          
     
    184185         static void recvDistributionAttributes(CEventServer& event); 
    185186         static void recvIndex(CEventServer& event); 
    186          static void recvIndexZoom(CEventServer& event); 
    187          static void recvMask(CEventServer& event);          
    188187         static void recvLon(CEventServer& event); 
    189188         static void recvLat(CEventServer& event); 
     
    192191         void recvDistributionAttributes(CBufferIn& buffer);                   
    193192         void recvIndex(std::map<int, CBufferIn*>& rankBuffers);          
    194          void recvMask(std::map<int, CBufferIn*>& rankBuffers); 
    195193         void recvLon(std::map<int, CBufferIn*>& rankBuffers); 
    196194         void recvLat(std::map<int, CBufferIn*>& rankBuffers); 
     
    201199         void computeConnectedClients();     
    202200 
    203        private: 
     201       private:          
    204202 
    205203/** Clients that have to send a domain. There can be multiple clients in case of secondary server, otherwise only one client. */ 
     
    207205         std::set<CContextClient*> clientsSet; 
    208206 
    209          bool doZoomByIndex_; 
    210207         bool isChecked, computedWrittenIndex_; 
    211208         std::set<StdString> relFiles, relFilesCompressed; 
     
    234231       private: 
    235232         static bool initializeTransformationMap(std::map<StdString, ETranformationType>& m); 
    236          static bool initializeTransformationMap(); 
    237          static std::map<StdString, ETranformationType> *transformationMapList_ptr; 
    238          #pragma omp threadprivate(transformationMapList_ptr) 
     233         static std::map<StdString, ETranformationType> transformationMapList_; 
    239234         static bool _dummyTransformationMapList; 
    240          #pragma omp threadprivate(_dummyTransformationMapList) 
    241235 
    242236         DECLARE_REF_FUNC(Domain,domain) 
Note: See TracChangeset for help on using the changeset viewer.