Assigning local pointers in code

aberg

New Member
Could someone explain how local pointers are assigned in the CLM code?

Examples:
efisop => clm3%g%gve%efisop
ivt => clm3%g%l%c%p%itype

I'm testing out reading in a new variable in iniTimeConst.F90 and now I want to use that variable in some other code, but I don't understand how to refer to the variable, and I saw that the above is how local pointers are assigned.
 

slevis

Moderator
Staff member
Using the existing code as a template for writing new code is a valid way of programming. For more info, I recommend checking out a Fortran90 (or newer) book or taking a Fortran class to learn about pointers.

...Unless someone else in the forum would like to introduce you to pointers.

Sam
 
Back
Top