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

changing sfc albedo in SurfaceAlbedoMod.F90

Dear Sam,

According to your advice, I checked in the program SurfaceAlbedoMod.F90 and I found examples that make use of the correspondence between p and gridcell (g).

do p = lbp, ubp
g = pgridcell(p)
coszen_pft(p) = coszen_gcell(g)
end do

The dimension of my albedo change is 8192 (lon=128Xlat=64) gridcells but when I use the above mentioned conversion, I will get NaNS values in place of real values.

do p =lbp, ubp
g1 = pgridcell(p) ! g1 varies from 1 to 8192
alpha_pft(p)=alpha(g1)
end do

Any clue regarding the error?

Thanks

Debasish
 

slevis

Moderator
Staff member
Given that alpha and alpha_pft are new variables that you added to the code, I suspect that you have not initialized or assigned values to alpha.

My purpose as liaison is to help you get started in your work with the clm, not to help you with your debugging. So you will have to proceed on your own from here.

Sam
 
Top