pointer variable

Status
Not open for further replies.
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
Staff member
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
Staff member
Sorry, that's the part of the code (clumps and chunks) that I don't understand either...

Sam
 

slevis

Moderator
Staff member
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
 
Status
Not open for further replies.
Back
Top