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

pointer variable

Dear CLM user,

If you want to use some pointer variable, such as watsat, how to write the code? I tried: use SoilHydrologyMod, only: watsat

But it's failed.

Thanks in advance!
-Joyce
 

slevis

Moderator
Hi,

My first recommendation is to follow how the numerous other pointer variables are used in the clm. If you still have trouble, then I suggest reading the chapter on pointers in a Fortran90 book. Hopefully that will give enough information on how to program with pointers.

Thanks,
Sam Levis
 
Dear Sam,

Thanks for your kindly reply. Actually, I had read the chapter about pointer variables in Fortran references. What got my confused is as follows: do you think the two dimensional variable (such as watsat and h20soi) are the same with the one dimensional variables (such as fluxes and albedo) for the pass methods? As I read the materials from CLM website, I know the data structure in atm side is referred to as Chunk, whereas it's grouped into clumps in CLM side.

Thanks again,
Joyce
 

slevis

Moderator
Sorry, that's the part of the code (clumps and chunks) that I don't understand either...

Sam
 

slevis

Moderator
I'm not sure whom to refer you to... You may want to post this question in a different and more relevant part of this bulletin-board.

Sam
 
Top