Ignore:
Timestamp:
Jul 10, 2023, 1:40:39 AM (11 months ago)
Author:
yann meurdesoif
Message:

Suppress usage of preprocessing key CPP_XIOS.
Wrapper file is used to suppress XIOS symbol when xios is not linked and not used (-io ioipsl)
The CPP_XIOS key is replaced in model by "using_xios" boolean variable to switch between IOIPSL or XIOS output.

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/dyn3dmem/parallel_lmdz.F90

    r4600 r4619  
    384384    subroutine Finalize_parallel
    385385    USE lmdz_mpi
    386 #ifdef CPP_XIOS
    387386    ! ug Pour les sorties XIOS
    388         USE wxios
    389 #endif
     387        USE wxios
     388
    390389#ifdef CPP_COUPLE
    391390! Use of Oasis-MCT coupler
     
    416415
    417416      if (type_ocean == 'couple') then
    418 #ifdef CPP_XIOS
    419     !Fermeture propre de XIOS
    420       CALL wxios_close()
    421 #else
     417        IF (using_xios) THEN
     418          !Fermeture propre de XIOS
     419          CALL wxios_close()
     420        ELSE
    422421#ifdef CPP_COUPLE
    423          call prism_terminate_proto(ierr)
    424          IF (ierr .ne. PRISM_Ok) THEN
    425             call abort_gcm('Finalize_parallel',' Probleme dans prism_terminate_proto ',1)
    426          endif
     422           call prism_terminate_proto(ierr)
     423           IF (ierr .ne. PRISM_Ok) THEN
     424              call abort_gcm('Finalize_parallel',' Probleme dans prism_terminate_proto ',1)
     425           endif
    427426#endif
    428 #endif
     427        ENDIF
    429428      else
    430 #ifdef CPP_XIOS
    431     !Fermeture propre de XIOS
    432       CALL wxios_close()
    433 #endif
    434       IF (using_mpi) call MPI_FINALIZE(ierr)
     429        IF (using_xios) THEN
     430          !Fermeture propre de XIOS
     431          CALL wxios_close()
     432        ENDIF
     433        IF (using_mpi) call MPI_FINALIZE(ierr)
    435434      end if
    436435     
Note: See TracChangeset for help on using the changeset viewer.