Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

enable COSP in CESM1.2.2

Hi,I am trying to enable COSP package using CAM5 (CAM4) physics in CESM 1.2.2. I am using F_AMIP_CAM5 compset for these runs. In order to enable COSP I have followed the following steps on National Computational Infrastructure (NCI)’s Raijin computer:1. Edit "CAM_CONFIG_OPTS" in env_build.xml to be "-phys cam5 -cosp" (/"-phys cam4 -cosp")2. Add COSP related fields to user_nl_cam file as
&cospsimulator_nl
docosp=.true.
cosp_amwg=.true./When I try to build the case I get the following error: error #6633: The type of the actual argument differs from the type of the dummy argument.
           flag_xyfill=.true., mdimnames=(/'cosp_tau','cosp_prs'/), fill_value=R_UNDEF)
 

I don't know how to solve this error. Can anyone please help? 
 

eaton

CSEG and Liaisons
Based on the error message my guess is that the COSP library is not being
build with the compiler flags that enable autopromotion of type real to
type real*8.  If you look in cosp_constants.F90 you'll find that R_UNDEF is
defined as type real, while the dummy argument to addfld (in
cam_history.F90) is defined as type real*8.  The build of the cosp library
is controlled by the rule in scripts/ccsm_utils/Machines/Makefile for
$(COSP_LIBDIR)/libcosp.a.  You will find that this rule passes the macro
$(FC_AUTO_R8) to the cosp Makefile which should be located in
$(COSP_LIBDIR).  That macro contains the compiler options for autopromotion from real
to real*8.  These compiler options depend on the compiler you are using.
Examine the ouputs from building the cosp library and make sure the options
are correct for the compiler that you're using.  The options that the CESM
build uses for FC_AUTO_R8 come from the file
scripts/ccsm_utils/Machines/config_compilers.xml.
 
Top