Changeset 1067 for XIOS/dev/branch_yushan/src/test
- Timestamp:
- 03/08/17 16:55:00 (7 years ago)
- Location:
- XIOS/dev/branch_yushan/src/test
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/branch_yushan/src/test/test_client.f90
r1057 r1067 36 36 CALL MPI_INIT(ierr) 37 37 CALL init_wait 38 39 CALL MPI_COMM_RANK(MPI_COMM_WORLD,rank,ierr) 40 if(rank < 2) then 38 41 39 42 CALL xios_initialize(id,return_comm=comm) … … 162 165 CALL xios_finalize() 163 166 167 else 168 169 CALL xios_init_server 170 171 endif 172 173 164 174 CALL MPI_FINALIZE(ierr) 165 175 -
XIOS/dev/branch_yushan/src/test/test_complete.f90
r1058 r1067 10 10 11 11 CHARACTER(len=*),PARAMETER :: id="client" 12 INTEGER :: comm 12 INTEGER :: comm, comm2 13 13 TYPE(xios_duration) :: dtime 14 14 TYPE(xios_context) :: ctx_hdl … … 48 48 !########################################################################### 49 49 50 !!! Initialisation des coordonn ées globales et locales pour la grille réguliÚre50 !!! Initialisation des coordonnes globales et locales pour la grille rgulire 51 51 52 52 DO j=1,nj_glo … … 80 80 81 81 CALL xios_context_initialize("atmosphere",comm) 82 print*, "init context atmosphere comm = ", comm 83 82 84 CALL xios_get_handle("atmosphere",ctx_hdl) 83 85 CALL xios_set_current_context(ctx_hdl) … … 103 105 CALL xios_set_fieldgroup_attr("field_definition",enabled=.TRUE.) 104 106 105 !!! Cr éation d un nouveau champ107 !!! Cration d un nouveau champ 106 108 107 109 CALL xios_get_handle("field_definition",fieldgroup_hdl) … … 123 125 CALL xios_set_timestep(timestep=dtime) 124 126 125 !!! Recupration des valeurs des longitudes et de taille des domaines locaux (pour test de fonctionnalit é)127 !!! Recupration des valeurs des longitudes et de taille des domaines locaux (pour test de fonctionnalit) 126 128 127 129 ni=0 ; lonvalue(:,:)=0 … … 162 164 !########################################################################### 163 165 164 !!! Initialisation des coordonn ées globales et locales pour la grille indexee (1 point sur 2)166 !!! Initialisation des coordonnes globales et locales pour la grille indexee (1 point sur 2) 165 167 166 168 nb_pt=ni*nj/2 … … 172 174 173 175 CALL xios_context_initialize("surface",comm) 176 print*, "init context surface comm = ", comm 177 174 178 CALL xios_get_handle("surface",ctx_hdl) 175 179 CALL xios_set_current_context(ctx_hdl) … … 185 189 CALL xios_set_domain_attr("domain_srf",lonvalue_2D=lon,latvalue_2D=lat) 186 190 187 !!! Cr éation d un nouveau champ191 !!! Cration d un nouveau champ 188 192 189 193 CALL xios_get_handle("field_definition",fieldgroup_hdl) … … 205 209 CALL xios_set_timestep(timestep=dtime) 206 210 207 !!! Recupration des valeurs des longitudes et de taille des domaines locaux (pour test de fonctionnalit é)211 !!! Recupration des valeurs des longitudes et de taille des domaines locaux (pour test de fonctionnalit) 208 212 209 213 ni=0 ; lonvalue(:,:)=0 … … 217 221 CALL xios_close_context_definition() 218 222 219 223 print *, "xios_close_context_definition(surface)" 220 224 221 225 … … 224 228 !#################################################################################### 225 229 226 !DO ts=1,24*10227 DO ts=1,24230 DO ts=1,24*10 231 !DO ts=1,24 228 232 229 233 CALL xios_get_handle("atmosphere",ctx_hdl) … … 264 268 !!! Fin des contextes 265 269 266 print *, "start : xios_context_finalize(surface)"270 !print *, "start : xios_context_finalize(surface)" 267 271 268 272 CALL xios_get_handle("surface",ctx_hdl) 269 print *, "xios_get_handleOK"273 !print *, "xios_get_handle (surface) OK" 270 274 CALL xios_set_current_context(ctx_hdl) 271 print *, "xios_set_current_contextOK"275 !print *, "xios_set_current_context (surface) OK" 272 276 CALL xios_context_finalize() 273 277 274 278 print *, "xios_context_finalize(surface)" 275 279 276 CALL xios_get_handle("atmosphere",ctx_hdl) 277 CALL xios_set_current_context(ctx_hdl) 278 CALL xios_context_finalize() 280 CALL xios_get_handle("atmosphere",ctx_hdl) 281 ! !print *, "xios_get_handle (atmosphere) OK" 282 CALL xios_set_current_context(ctx_hdl) 283 ! !print *, "xios_set_current_context (atmosphere) OK" 284 CALL xios_context_finalize() 279 285 280 286 print *, "xios_context_finalize(atmosphere)" 281 287 282 288 DEALLOCATE(lon, lat, field_A_atm, lonvalue) 283 DEALLOCATE(kindex, field_A_srf)289 ! DEALLOCATE(kindex, field_A_srf) 284 290 285 291 !!! Fin de XIOS
Note: See TracChangeset
for help on using the changeset viewer.