New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 3732 for branches/2012/dev_MERGE_2012/NEMOGCM/NEMO – NEMO

Ignore:
Timestamp:
2012-12-12T16:45:03+01:00 (11 years ago)
Author:
smasson
Message:

dev_MERGE_2012: update to use xios and agrif

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2012/dev_MERGE_2012/NEMOGCM/NEMO/OPA_SRC/IOM/iom.F90

    r3695 r3732  
    8989      TYPE(xios_time)   :: dtime    = xios_time(0, 0, 0, 0, 0, 0) 
    9090      CHARACTER(len=19) :: cldate  
     91      CHARACTER(len=10) :: clname 
    9192      INTEGER           ::   ji 
    9293      !!---------------------------------------------------------------------- 
    9394 
    94       CALL xios_context_initialize("nemo", mpi_comm_opa) 
     95      clname = "nemo" 
     96      IF( TRIM(Agrif_CFixed()) /= '0' )   clname = TRIM(Agrif_CFixed())//"_"//TRIM(clname) 
     97      CALL xios_context_initialize(TRIM(clname), mpi_comm_opa) 
    9598      CALL iom_swap 
    9699 
    97100      ! calendar parameters 
    98101      SELECT CASE ( nleapy )        ! Choose calendar for IOIPSL 
    99       CASE ( 1)   ;   CALL xios_set_context_attr("nemo", calendar_type= "Gregorian") 
    100       CASE ( 0)   ;   CALL xios_set_context_attr("nemo", calendar_type= "NoLeap") 
    101       CASE (30)   ;   CALL xios_set_context_attr("nemo", calendar_type= "D360") 
     102      CASE ( 1)   ;   CALL xios_set_context_attr(TRIM(clname), calendar_type= "Gregorian") 
     103      CASE ( 0)   ;   CALL xios_set_context_attr(TRIM(clname), calendar_type= "NoLeap") 
     104      CASE (30)   ;   CALL xios_set_context_attr(TRIM(clname), calendar_type= "D360") 
    102105      END SELECT 
    103106      WRITE(cldate,"(i4.4,'-',i2.2,'-',i2.2,' 00:00:00')") nyear,nmonth,nday  
    104       CALL xios_set_context_attr("nemo", start_date=cldate ) 
     107      CALL xios_set_context_attr(TRIM(clname), start_date=cldate ) 
    105108 
    106109      ! horizontal grid definition 
Note: See TracChangeset for help on using the changeset viewer.