Changeset 4247


Ignore:
Timestamp:
Sep 15, 2022, 9:54:51 AM (20 months 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.

Location:
LMDZ6/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/bld.cfg

    r4087 r4247  
    100100bld::excl_dep        use::ifile_attr
    101101bld::excl_dep        use::ixml_tree
     102# The following for INCA used with CPL
     103bld::excl_dep        use::incaoasis
    102104
    103105# Don't generate interface files
  • 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
  • LMDZ6/trunk/makelmdz_fcm

    r4195 r4247  
    4545isotrac=false
    4646force_compile=false
     47cplocninca=false
    4748
    4849arch_defined="FALSE"
     
    101102          true        : (obsolete; for backward compatibility) use ORCHIDEE tag 1.9-1.9.6
    102103[-chimie INCA/false]       : with INCA chemistry model or without (default: false)
     104[-cplocninca ]        : allow transfer of species from PISCES to INCA (default: false)
    103105[-cosp true/false]    : compile with/without cosp package (default: false)
    104106[-cosp2 true/false]    : compile with/without cosp2 package (default: false)
     
    179181          chimie="$2" ; shift ; shift ;;
    180182
     183     "-cplocninca")
     184          cplocninca=TRUE ; shift ;;
     185
    181186      "-isotopes")
    182187          isotopes="$2" ; shift ; shift ;;
     
    529534fi
    530535
     536if [[ "$cplocninca" == "TRUE" ]]
     537then
     538    CPP_KEY="${CPP_KEY} CPP_CPLOCNINCA"
     539fi
    531540
    532541
Note: See TracChangeset for help on using the changeset viewer.