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

Problem running modified CAM5 routines

Dear CESMs,I am trying to modify some CAM5 model routines (radsw.F90 and cam_comp.F90) to incorporate some satellite data. As instructed in CESM1.0.4 user manual under a section called "User-modified source code", I placed my modified routines (radsw.F90 and cam_comp.F90) in /CAM5checkn/SourceMods/src.cam/. When I try building the case (CAM5checkn) it always gives me following errors,CCSM BUILDEXE SCRIPT STARTING
- Build Libraries: mct pio csm_share
Thu Jul 18 12:38:48 PDT 2013 /oasis/tscc/scratch/dkafle/CAM5checkn/mct/mct.bldlog.130718-123845
Thu Jul 18 12:38:49 PDT 2013 /oasis/tscc/scratch/dkafle/CAM5checkn/pio/pio.bldlog.130718-123845
Thu Jul 18 12:38:50 PDT 2013 /oasis/tscc/scratch/dkafle/CAM5checkn/csm_share/csm_share.bldlog.130718-123845
Thu Jul 18 12:38:51 PDT 2013 /oasis/tscc/scratch/dkafle/CAM5checkn/run/cpl.bldlog.130718-123845
Thu Jul 18 12:38:51 PDT 2013 /oasis/tscc/scratch/dkafle/CAM5checkn/run/atm.bldlog.130718-123845
ERROR: cam.buildexe.csh failed, see /oasis/tscc/scratch/dkafle/CAM5checkn/run/atm.bldlog.130718-123845
ERROR: cat /oasis/tscc/scratch/dkafle/CAM5checkn/run/atm.bldlog.130718-123845Please also note, at the beginning, I created a newcase as below,create_newcase -case CAM5checkn -res f19_f19 -compset F_2000_CAM5 -mach generic_linux_intel -scratchroot /oasis/tscc/scratch/dkafle -din_loc_root_csmdata /home/dkafle/inputdata -max_tasks_per_node 16Also few lines from "atm.bldlog.130718-123845" files are as,Thu Jul 18 12:38:51 PDT 2013 /oasis/tscc/scratch/dkafle/CAM5checkn/run/atm.bldlog.130718-123845
/home/dkafle/cesm1_0_4/scripts/CAM5checkn/Tools/mkSrcfiles > /oasis/tscc/scratch/dkafle/CAM5checkn/atm/obj/Srcfiles
cp -f /oasis/tscc/scratch/dkafle/CAM5checkn/atm/obj/Filepath /oasis/tscc/scratch/dkafle/CAM5checkn/atm/obj/Deppath
/home/dkafle/cesm1_0_4/scripts/CAM5checkn/Tools/mkDepends Deppath Srcfiles > /oasis/tscc/scratch/dkafle/CAM5checkn/atm/obj/DependsAt the end,/home/dkafle/cesm1_0_4/scripts/CAM5checkn/SourceMods/src.cam/radsw.F90(729): error #5082: Syntax error, found '[' when expecting one of: ; BLOCK BLOCKDATA PROGRAM MODULE TYPE INTEGER REAL ...
[MAXVAL(Absp),MINVAL(Absp),MAXVAL(Sfc),MINVAL(Sfc),MAXVAL(solar),MINVAL(solar)]
-^
/home/dkafle/cesm1_0_4/scripts/CAM5checkn/SourceMods/src.cam/radsw.F90(729): error #5082: Syntax error, found END-OF-STATEMENT when expecting one of: % . = =>
[MAXVAL(Absp),MINVAL(Absp),MAXVAL(Sfc),MINVAL(Sfc),MAXVAL(solar),MINVAL(solar)]
--------------------------------------------------------------------------------^
compilation aborted for /home/dkafle/cesm1_0_4/scripts/CAM5checkn/SourceMods/src.cam/radsw.F90 (code 1)
gmake: *** [radsw.o] Error 1
gmake: *** Waiting for unfinished jobs....
/home/dkafle/cesm1_0_4/models/atm/cam/src/physics/cam/modal_aer_opt.F90(748): warning #7919: The value was too small when converting to REAL(KIND=4); the result is zero. [1.E-40]
if (wetvol(i) > 1.e-40) crefin(i) = crefin(i)/wetvol(i)Can anyone please suggest me how I correct these errors? Your help on this would be highly appreciated.Thank youDK    
 

santos

Member
It looks like your modifications to radsw have a syntax error and/or use features not supported by your version of the Intel compiler; this isn't CAM code that's causing the error, so we can't really help you much. The one thing I'll point out is that the square bracket syntax is a Fortran 2003 feature. If you have a fairly old version of ifort on your machine, you could try using the old "(//)" syntax instead. That is:(/ MAXVAL(Absp), MINVAL(Absp), MAXVAL(Sfc), MINVAL(Sfc), MAXVAL(solar), MINVAL(solar) /)
 
Top