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

Array referencing issue in cesm1_0_3_R71 convect_shallow.F90

mspritch@uw_edu

New Member
Hi,

I checked out cesm1_0_3_R71 and the (strict) pathscale compilers on the Cray I am working on caught a real valued variable being used to reference an array index inside the convect_shallow_tend subroutine (inside physics/cam/convect_shallow.F90)

Line 356: real(r8), pointer, dimension(:) :: cnt
Line 749: pcnt(i) = state%pmid(i,cnt(i))

Then again maybe I don't understand how pointers work...

-Mike.
 

mspritch@uw_edu

New Member
In case anyone else out there runs into a similar issue at compile time, don't use the unsupported pathscale compilers to build CESM on a Cray. Switching to the supported PGI compilers avoided the compiler error that pointed to this bit of code.

Anyways, if anyone reads this who knows something about pointers and fortran if you can tell me why/how it makes sense to access array indices with a real valued pointer, I'm still curious...

Thanks,

-Mike.
 
Top