Ignore:
Timestamp:
01/02/13 18:50:00 (12 years ago)
Author:
smasson
Message:

bugfix for agrf, obc and xios

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/OPA_SRC/IOM/iom.F90

    r46 r65  
    8989      TYPE(xios_time) :: dtime    = xios_time(0, 0, 0, 0, 0, 0) 
    9090      CHARACTER(len=19) :: cldate  
    91       !!---------------------------------------------------------------------- 
    92  
    93       CALL xios_context_initialize("nemo", mpi_comm_opa) 
     91      CHARACTER(len=10) :: clname 
     92      !!---------------------------------------------------------------------- 
     93       
     94      clname = "nemo" 
     95      IF( TRIM(Agrif_CFixed()) /= '0' )   clname = TRIM(Agrif_CFixed())//"_"//TRIM(clname) 
     96      CALL xios_context_initialize(TRIM(clname), mpi_comm_opa) 
    9497      CALL iom_swap 
    9598 
    9699      ! calendar parameters 
    97100      SELECT CASE ( nleapy )        ! Choose calendar for IOIPSL 
    98       CASE ( 1)   ;   CALL xios_set_context_attr("nemo", calendar_type= "Gregorian") 
    99       CASE ( 0)   ;   CALL xios_set_context_attr("nemo", calendar_type= "NoLeap") 
    100       CASE (30)   ;   CALL xios_set_context_attr("nemo", calendar_type= "D360") 
     101      CASE ( 1)   ;   CALL xios_set_context_attr(TRIM(clname), calendar_type= "Gregorian") 
     102      CASE ( 0)   ;   CALL xios_set_context_attr(TRIM(clname), calendar_type= "NoLeap") 
     103      CASE (30)   ;   CALL xios_set_context_attr(TRIM(clname), calendar_type= "D360") 
    101104      END SELECT 
    102105      WRITE(cldate,"(i4.4,'-',i2.2,'-',i2.2,' 00:00:00')") nyear,nmonth,nday  
    103       CALL xios_set_context_attr("nemo", start_date=cldate ) 
     106      CALL xios_set_context_attr(TRIM(clname), start_date=cldate ) 
    104107 
    105108      ! horizontal grid definition 
     
    341344      INTEGER ::   i_s, i_e   ! temporary integer 
    342345      CHARACTER(LEN=100)    ::   clinfo    ! info character 
    343       INTEGER :: inb_period_initial, inb_period_final, inb_period_sec, inb_period_max, inb_period 
    344346      !--------------------------------------------------------------------- 
    345347      ! 
     
    351353         i_s = 1 
    352354         i_e = jpmax_files 
    353 #if defined key_iomput 
    354          CALL xios_context_finalize() 
    355 #endif 
    356355      ENDIF 
    357356 
Note: See TracChangeset for help on using the changeset viewer.