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

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
 
Top