Ignore:
Timestamp:
Oct 30, 2023, 5:37:00 PM (7 months ago)
Author:
Laurent Fairhead
Message:

Merge of ACC branch with 4740 revision from trunk

Location:
LMDZ6/branches/Portage_acc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Portage_acc

  • LMDZ6/branches/Portage_acc/libf/dyn3dmem/leapfrog_loc.F

    r4446 r4743  
    4242       USE temps_mod, ONLY: itaufin,jD_ref,jH_ref,day_ini,
    4343     &                        day_ref,start_time,dt
    44 #ifdef CPP_XIOS
    45        USE xios, ONLY: xios_update_calendar
    46 #endif
     44       USE mod_xios_dyn3dmem, ONLY : dyn3d_ctx_handle
     45       USE lmdz_xios, ONLY: xios_update_calendar,
     46     &                      xios_set_current_context,
     47     &                      using_xios
    4748       
    4849      IMPLICIT NONE
     
    15191520
    15201521#ifdef INCA
    1521          if (ANY(type_trac == ['inca','inco'])) CALL finalize_inca
     1522         IF (ANY(type_trac == ['inca','inco'])) THEN
     1523            CALL finalize_inca
     1524!     switching back to LMDZDYN context
     1525!$OMP MASTER
     1526            IF (ok_dyn_xios) THEN
     1527               CALL xios_set_current_context(dyn3d_ctx_handle)
     1528            ENDIF
     1529!$OMP END MASTER
     1530         ENDIF
    15221531#endif
    15231532#ifdef REPROBUS
     
    15681577
    15691578#ifdef INCA
    1570               if (ANY(type_trac == ['inca','inco'])) CALL finalize_inca
     1579              IF (ANY(type_trac == ['inca','inco'])) THEN
     1580                 CALL finalize_inca
     1581!     switching back to LMDZDYN context
     1582!$OMP MASTER
     1583                 IF (ok_dyn_xios) THEN
     1584                    CALL xios_set_current_context(dyn3d_ctx_handle)
     1585                 ENDIF
     1586!$OMP END MASTER
     1587              ENDIF
    15711588#endif
    15721589#ifdef REPROBUS
     
    16401657#endif
    16411658             
    1642 #ifdef CPP_XIOS
    16431659              IF (ok_dyn_xios) THEN
    16441660c$OMP MASTER
     
    16491665     &                 ucov,teta,pk,phi,q,masse,ps,phis)
    16501666              ENDIF
    1651 #endif
    16521667             
    16531668          endif                 ! of if (leapf.or.(.not.leapf.and.(.not.forward)))
     
    17351750
    17361751#ifdef INCA
    1737               if (ANY(type_trac == ['inca','inco'])) CALL finalize_inca
     1752                 IF (ANY(type_trac == ['inca','inco'])) THEN
     1753                    CALL finalize_inca
     1754!     switching back to LMDZDYN context
     1755!$OMP MASTER
     1756                    IF (ok_dyn_xios) THEN
     1757                       CALL xios_set_current_context(dyn3d_ctx_handle)
     1758                    ENDIF
     1759!$OMP END MASTER
     1760                 ENDIF
     1761
    17381762#endif
    17391763#ifdef REPROBUS
     
    18011825#endif
    18021826
    1803 #ifdef CPP_XIOS
    18041827              IF (ok_dyn_xios) THEN
    18051828c$OMP MASTER
     
    18101833     &                 ucov,teta,pk,phi,q,masse,ps,phis)
    18111834              ENDIF
    1812 #endif
    18131835             
    18141836           ENDIF                ! of IF(MOD(itau,iecri).EQ.0)
     
    18421864
    18431865#ifdef INCA
    1844       if (ANY(type_trac == ['inca','inco'])) CALL finalize_inca
     1866      IF (ANY(type_trac == ['inca','inco'])) THEN
     1867         CALL finalize_inca
     1868!     switching back to LMDZDYN context
     1869!$OMP MASTER
     1870         IF (ok_dyn_xios) THEN
     1871            CALL xios_set_current_context(dyn3d_ctx_handle)
     1872         ENDIF
     1873!$OMP END MASTER
     1874      ENDIF
     1875
    18451876#endif
    18461877#ifdef REPROBUS
Note: See TracChangeset for help on using the changeset viewer.