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.
 
Back
Top