zone.link.zone
Syntax
- zonenext = zone.link.zone(z,index)
Get the next zone in the list of all zones connected to the gridpoint attached to zone z at index index. Use the four intrinsics
gp.link.zone
,gp.link.index
,zone.link.zone
, andzone.link.index
to iterate through every zone connected to a gridpoint.Returns: zonenext - the next zone in the list of all zones connected to the gridpoint
Arguments: z - a pointer to the zone
Usage Example
The following code fragment shows how to traverse all the zones connected to a single gridpoint.
local zone = gp.link.zone(gp)
local index = gp.link.index(gp)
loop while zone # null
(Do something with that zone)
local index_copy = zone.link.index(zone,index)
zone = zone.link.zone(zone,index)
index = index_copy
end_loop
Was this helpful? ... | PFC 6.0 © 2019, Itasca | Updated: Nov 19, 2021 |