Logo  PFC

zone.link.index

Syntax

indexnext = zone.link.index(z,index)

Get the index of the next zone in the list of all zones connected to a gridpoint. This returns the next zone in the list of zones connected to the gripoint at index of this zone. Use the four intrinsics gp.link.zone, gp.link.index, zone.link.zone, and zone.link.index to iterate through every zone connected to a gridpoint.

Returns:

indexnext - the index that the gridpoint has in the next zone in the list of all zones connected to that gridpoint

Arguments:

z - a pointer to a zone

index - the index of the gridpoint in zone z

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
⇄
  • PFC 6.0 documentation »
  • FLAC3D »
  • FLAC3D Model Objects »
  • Zone »
  • FISH Functions »


⇐ zone.join | zone.link.zone ⇒
Was this helpful? ... PFC © 2019, Itasca Updated: Apr 26, 2019