Ignore:
Timestamp:
Sep 15, 2022, 9:54:51 AM (2 years ago)
Author:
tlurton
Message:

Add-ons in oasis.F90, bld.cfg and makelmdz_fcm to support coupling of species between PISCES and INCA in the IPSLESM/CO2AER configuration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/oasis.F90

    r3815 r4247  
    2424  USE mod_prism_get_proto
    2525  USE mod_prism_put_proto
     26#endif
     27#ifdef CPP_CPLOCNINCA
     28  USE incaoasis, ONLY : inforcv
    2629#endif
    2730#endif
     
    7982  INTEGER, PARAMETER :: maxrecv    = 9  ! Maximum number of fields to receive
    8083 
     84#ifdef CPP_CPLOCNINCA
     85  INTEGER, PARAMETER :: idr_ocedms = 1
     86  INTEGER, PARAMETER :: maxrcv = 1
     87#endif
    8188
    8289  TYPE, PUBLIC ::   FLD_CPL            ! Type for coupling field information
     
    247254       inforecv(idr_oceco2)%action = .TRUE. ; inforecv(idr_oceco2)%name = 'SICO2FLX'
    248255   ENDIF
     256#ifdef CPP_CPLOCNINCA
     257       inforcv(idr_ocedms)%action = .TRUE. ; inforcv(idr_ocedms)%name = 'SIDMSFLX'
     258#endif
    249259
    250260!************************************************************************************
     
    331341       ENDIF
    332342    END DO
    333    
     343
     344! Now, if also coupling CPL with INCA, initialize here fields to be exchanged.
     345#ifdef CPP_CPLOCNINCA
     346    DO jf=1,maxrcv
     347       IF (inforcv(jf)%action) THEN
     348          CALL prism_def_var_proto(inforcv(jf)%nid, inforcv(jf)%name, il_part_id, &
     349               il_var_nodims, PRISM_In, il_var_actual_shape, il_var_type, &
     350               ierror)
     351          IF (ierror .NE. PRISM_Ok) THEN
     352             WRITE(lunout,*) 'inicma : Problem with prism_def_var_proto for field : ',&
     353                  inforcv(jf)%name
     354             abort_message=' Problem in call to prism_def_var_proto for fields to receive'
     355             CALL abort_physic(modname,abort_message,1)
     356          ENDIF
     357       ENDIF
     358    END DO
     359#endif
     360 
    334361!************************************************************************************
    335362! Atmospheric Fields to send
Note: See TracChangeset for help on using the changeset viewer.