cg_link_write |
Create a link at the current location |
cg_is_link |
Test if a node is a link |
cg_link_read |
Get path information for a link at the current location |
C Functions | Modes |
---|---|
ier = cg_link_write (char *nodename, char *filename, char *name_in_file); |
- w m |
ier = cg_is_link (int *path_length); |
r - m |
ier = cg_link_read (char **filename, char **link_path); |
r - m |
Fortran interfaces | Modes |
---|---|
call cg_link_write_f (filename, mode, fn, ier) |
- w m |
call cg_is_link_f (path_length, ier) |
r - m |
call cg_link_read_f (filename, link_path, ier) |
r - m |
GridCoordinates
.Base/Zone 1/GridCoordinates
.Use cg_goto(_f)
to position to a location in the file prior to calling these routines.
When using cg_link_write
, the node being linked to does not have to exist when the link is created. However, when the link is used, an error will occur if the linked-to node does not exist.
Only nodes that support child nodes will support links.
It is assumed that the CGNS version for the file containing the link, as determined by the CGNSLibraryVersion_t
node, is also applicable to filename
, the file containing the linked node.
Memory is allocated by the library for the return values of the C function cg_link_read
. This memory should be freed by the user when no longer needed by calling cg_free(filename)
and cg_free(link_path)
.