- Timestamp:
- 02/11/15 16:23:16 (10 years ago)
- Location:
- XIOS/trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/inputs/COMPLETE/context_atmosphere.xml
r549 r554 1 1 <!-- Context atm --> 2 2 3 3 <context id="atmopshere"> 4 4 … … 6 6 <field id="field_A_atm" name="field_A_atm" operation="average" freq_op="1ts" domain_ref="domain_atm" axis_ref="axis_atm" /> 7 7 </field_definition> 8 9 8 9 10 10 <file_definition type="multiple_file" par_access="collective" output_freq="6h" sync_freq="6h" output_level="10" enabled=".TRUE."> 11 <file id="output_atmosphere" name="output_atmosphere"> 11 <file id="output_atmosphere" name="output_atmosphere"> 12 12 <field field_ref="field_A_atm" /> 13 13 </file> 14 <file id="output_atmosphere_zoom" name="output_atmosphere_zoom"> 14 <file id="output_atmosphere_zoom" name="output_atmosphere_zoom"> 15 15 <field field_ref="field_A_atm" name="field_A_atm_zoom" domain_ref="domain_atm_zoom" /> 16 16 </file> 17 17 </file_definition> 18 18 19 19 <axis_definition> 20 <axis id="axis_atm" zoom_size="2" zoom_end=" 3" />20 <axis id="axis_atm" zoom_size="2" zoom_end="2" /> 21 21 </axis_definition> 22 22 23 23 <domain_definition> 24 24 <domain id="domain_atm" /> 25 25 <domain id="domain_atm_zoom" /> 26 </domain_definition> 27 28 <grid_definition /> 29 26 </domain_definition> 27 28 <grid_definition /> 29 30 30 </context> -
XIOS/trunk/inputs/iodef.xml
r549 r554 1 1 <?xml version="1.0"?> 2 <simulation> 2 <simulation> 3 3 4 4 <context id="test"> … … 9 9 <field id="field_A" operation="average" freq_op="3600s" domain_ref="domain_A" axis_ref="axis_A" /> 10 10 </field_definition> 11 12 11 12 13 13 <file_definition type="multiple_file" par_access="collective" output_freq="6h" output_level="10" enabled=".TRUE."> 14 <file id="output" name="output"> 14 <file id="output" name="output"> 15 15 <field field_ref="field_A" /> 16 16 </file> 17 17 </file_definition> 18 19 18 19 20 20 <axis_definition> 21 <axis id="axis_A" zoom_size="2" zoom_end=" 3" />21 <axis id="axis_A" zoom_size="2" zoom_end="2" /> 22 22 </axis_definition> 23 23 24 24 <domain_definition> 25 25 <domain id="domain_A" /> 26 </domain_definition> 27 28 <grid_definition /> 29 26 </domain_definition> 27 28 <grid_definition /> 29 30 30 </context> 31 31 32 32 <context id="toto" > 33 33 </context> 34 34 35 35 <context id="titi"> 36 36 </context> 37 37 38 38 <context id="tata"> 39 39 </context> … … 43 43 <variable_group id="buffer"> 44 44 <variable id="optimal_buffer_size" type="string">performance</variable> 45 <variable id="buffer_factor_size" type="double">1.0</variable> 45 <variable id="buffer_factor_size" type="double">1.0</variable> 46 46 </variable_group> 47 47 -
XIOS/trunk/src/client_server_mapping.cpp
r553 r554 20 20 } 21 21 22 void CClientServerMapping::computeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient, 23 const std::vector<CArray<size_t,1>* >& globalIndexServer) 24 { 25 defaultComputeServerIndexMapping(globalIndexOnClient, globalIndexServer); 26 } 27 22 28 /*! 23 29 Compute index of data which are sent to server and index global on server side … … 25 31 \param [in] globalIndexServer global index of server(s) 26 32 */ 27 void CClientServerMapping:: computeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient,28 const std::vector<CArray<size_t,1>* >& globalIndexServer)33 void CClientServerMapping::defaultComputeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient, 34 const std::vector<CArray<size_t,1>* >& globalIndexServer) 29 35 { 30 36 int nServer = globalIndexServer.size(); -
XIOS/trunk/src/client_server_mapping.hpp
r553 r554 30 30 virtual ~CClientServerMapping(); 31 31 32 void computeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient, 33 const std::vector<CArray<size_t,1>* >& globalIndexOnServer); 32 virtual void computeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient, 33 const std::vector<CArray<size_t,1>* >& globalIndexOnServer); 34 34 35 std::map<int,int> computeConnectedClients(int nbServer, int nbClient, 35 36 MPI_Comm& clientIntraComm, … … 38 39 const std::map<int, std::vector<size_t> >& getGlobalIndexOnServer() const; 39 40 const std::map<int, std::vector<int> >& getLocalIndexSendToServer() const; 41 40 42 protected: 43 void defaultComputeServerIndexMapping(const CArray<size_t,1>& globalIndexOnClient, 44 const std::vector<CArray<size_t,1>* >& globalIndexOnServer); 41 45 42 46 private: -
XIOS/trunk/src/node/distribution_client.hpp
r553 r554 36 36 virtual ~CDistributionClient(); 37 37 38 const CArray<int,1>& getLocalDataIndexOnClient() const;38 virtual const CArray<int,1>& getLocalDataIndexOnClient() const; 39 39 std::vector<int> getNGlob() { return nGlob_; } 40 40 -
XIOS/trunk/src/node/distribution_server.hpp
r553 r554 30 30 virtual ~CDistributionServer(); 31 31 32 CArray<size_t,1> computeLocalIndex(const CArray<size_t,1>& globalIndex);33 v oid computeLocalIndex(CArray<size_t,1>& globalIndex);32 virtual CArray<size_t,1> computeLocalIndex(const CArray<size_t,1>& globalIndex); 33 virtual void computeLocalIndex(CArray<size_t,1>& globalIndex); 34 34 35 35 protected: -
XIOS/trunk/src/server_distribution_description.hpp
r553 r554 42 42 std::vector<std::vector<int> > getServerDimensionSizes() const; 43 43 const std::vector<CArray<size_t,1>* >& getGlobalIndex() const; 44 44 45 protected: 45 46 void computeBandDistribution(int nServer); -
XIOS/trunk/src/test/test_client.f90
r550 r554 52 52 ENDDO 53 53 ENDDO 54 ni=ni_glo ; ibegin= 154 ni=ni_glo ; ibegin=0 55 55 56 jbegin= 156 jbegin=0 57 57 DO n=0,size-1 58 58 nj=nj_glo/size … … 65 65 66 66 ALLOCATE(lon(ni,nj),lat(ni,nj),field_A(0:ni+1,-1:nj+2,llm),lonvalue(ni*nj)) 67 lon(:,:)=lon_glo(ibegin :iend,jbegin:jend)68 lat(:,:)=lat_glo(ibegin :iend,jbegin:jend)69 field_A(1:ni,1:nj,:)=field_A_glo(ibegin :iend,jbegin:jend,:)67 lon(:,:)=lon_glo(ibegin+1:iend+1,jbegin+1:jend+1) 68 lat(:,:)=lat_glo(ibegin+1:iend+1,jbegin+1:jend+1) 69 field_A(1:ni,1:nj,:)=field_A_glo(ibegin+1:iend+1,jbegin+1:jend+1,:) 70 70 71 71 CALL xios_context_initialize("test",comm) -
XIOS/trunk/src/test/test_complete.f90
r549 r554 59 59 ENDDO 60 60 ENDDO 61 ni=ni_glo ; ibegin= 162 63 jbegin= 161 ni=ni_glo ; ibegin=0 62 63 jbegin=0 64 64 DO n=0,size_loc-1 65 65 nj=nj_glo/size_loc … … 72 72 73 73 ALLOCATE(lon(ni,nj),lat(ni,nj),field_A_atm(0:ni+1,-1:nj+2,llm),lonvalue(ni*nj)) 74 lon(:,:)=lon_glo(ibegin :iend,jbegin:jend)75 lat(:,:)=lat_glo(ibegin :iend,jbegin:jend)76 field_A_atm(1:ni,1:nj,:)=field_A_glo(ibegin :iend,jbegin:jend,:)74 lon(:,:)=lon_glo(ibegin+1:iend+1,jbegin+1:jend+1) 75 lat(:,:)=lat_glo(ibegin+1:iend+1,jbegin+1:jend+1) 76 field_A_atm(1:ni,1:nj,:)=field_A_glo(ibegin+1:iend+1,jbegin+1:jend+1,:) 77 77 78 78 … … 165 165 kindex(i)=2*i-1 166 166 ENDDO 167 field_A_srf(1:nb_pt,:)=RESHAPE(field_A_glo(ibegin :iend:2,jbegin:jend,:),(/ nb_pt,llm /))167 field_A_srf(1:nb_pt,:)=RESHAPE(field_A_glo(ibegin+1:iend+1:2,jbegin+1:jend+1,:),(/ nb_pt,llm /)) 168 168 169 169 CALL xios_context_initialize("surface",comm)
Note: See TracChangeset
for help on using the changeset viewer.