Ignore:
Timestamp:
03/09/17 18:13:51 (7 years ago)
Author:
yushan
Message:

Clean Up

Location:
XIOS/dev/branch_yushan/src/test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_yushan/src/test/test_client.f90

    r1067 r1069  
    4242  CALL xios_initialize(id,return_comm=comm) 
    4343   
    44   print*, "test_client xios_initialize OK" 
    45  
    4644  CALL MPI_COMM_RANK(comm,rank,ierr) 
    47   print*, "test_client MPI_COMM_RANK OK", rank 
    4845  CALL MPI_COMM_SIZE(comm,size,ierr) 
    49   print*, "test_client MPI_COMM_SIZE OK", size 
    5046   
    5147 
     
    7975 
    8076  CALL xios_get_handle("test",ctx_hdl) 
    81   print*, "Client xios_get_handle OK" 
    8277  CALL xios_set_current_context(ctx_hdl) 
    83   print*, "Client xios_set_current_handle OK"   
    84    
    85    
    8678   
    8779   
    8880  CALL xios_get_calendar_type(calendar_type) 
    89   PRINT *, "calendar_type = ", calendar_type 
    9081 
    9182  CALL xios_set_axis_attr("axis_A",n_glo=llm ,value=lval) ; 
     
    10596  dtime%second = 3600 
    10697  CALL xios_set_timestep(dtime) 
    107   print*, "Client xios_set_timestep OK"   
    10898 
    10999  ! The calendar is created as soon as the calendar type is defined. This way 
     
    144134 
    145135  call MPI_Barrier(comm, ierr) 
    146   PRINT*,"MPI_Barrier OK " 
    147136 
    148137  !DO ts=1,24*10 
    149138  DO ts=1,6 
    150139    CALL xios_update_calendar(ts) 
    151     print*, "xios_update_calendar OK, ts = ", ts 
    152140    CALL xios_send_field("field_A",field_A) 
    153     print*, "xios_send_field OK, ts = ", ts 
    154141    CALL wait_us(5000) 
    155142  ENDDO 
     
    157144 
    158145  CALL xios_context_finalize() 
    159   print*, "xios_context_finalize OK"   
    160146 
    161147  DEALLOCATE(lon, lat, field_A, lonvalue) 
     
    164150 
    165151  CALL xios_finalize() 
     152  print *, "Client : xios_finalize " 
    166153 
    167154   else 
    168155 
    169156   CALL xios_init_server 
     157   print *, "Server : xios_finalize " 
    170158   
    171159   endif 
  • XIOS/dev/branch_yushan/src/test/test_complete.f90

    r1067 r1069  
    3434  CALL MPI_INIT(ierr) 
    3535 
     36  CALL MPI_COMM_RANK(MPI_COMM_WORLD,rank,ierr)   
     37 
     38   
     39 
    3640  CALL init_wait 
     41 
     42  if (rank <2) then 
    3743 
    3844!!! XIOS Initialization (get the local communicator) 
     
    8086 
    8187  CALL xios_context_initialize("atmosphere",comm) 
    82   print*, "init context atmosphere comm = ", comm 
     88!   print*, "init context atmosphere comm = ", comm 
    8389 
    8490  CALL xios_get_handle("atmosphere",ctx_hdl) 
     
    137143  CALL xios_close_context_definition() 
    138144 
    139   print *, "xios_close_context_definition(atmosphere)" 
     145!   print *, "xios_close_context_definition(atmosphere)" 
    140146 
    141147!!! Test des valeurs des champs/fichiers 
     
    174180 
    175181  CALL xios_context_initialize("surface",comm) 
    176   print*, "init context surface comm = ", comm 
     182!   print*, "init context surface comm = ", comm 
    177183 
    178184  CALL xios_get_handle("surface",ctx_hdl) 
     
    221227  CALL xios_close_context_definition() 
    222228 
    223  print *, "xios_close_context_definition(surface)"  
     229! print *, "xios_close_context_definition(surface)"  
    224230 
    225231 
     
    260266    ENDDO 
    261267 
    262     print *, "end temporal loop" 
     268!     print *, "end temporal loop" 
    263269 
    264270!#################################################################################### 
     
    276282    CALL xios_context_finalize() 
    277283 
    278     print *, "xios_context_finalize(surface)"  
     284!     print *, "xios_context_finalize(surface)"  
    279285 
    280286     CALL xios_get_handle("atmosphere",ctx_hdl) 
     
    284290     CALL xios_context_finalize() 
    285291 
    286     print *, "xios_context_finalize(atmosphere)" 
     292!     print *, "xios_context_finalize(atmosphere)" 
    287293 
    288294    DEALLOCATE(lon, lat, field_A_atm, lonvalue) 
     
    295301    CALL xios_finalize() 
    296302 
    297     print *, "xios_finalize" 
     303     print *, "Client : xios_finalize " 
     304 
     305  else  
     306    CALL xios_init_server 
     307 
     308    print *, "Server : xios_finalize " 
     309  endif 
    298310 
    299311    CALL MPI_FINALIZE(ierr) 
Note: See TracChangeset for help on using the changeset viewer.