resetpts

 

Reset node values. If iflag is parent (default) the parent child flags are reset. All child points are eliminated and the connectivity list is corrected to reference only the parent points. If iflag is itp the itp1 array is reset to indicate whether each node is in the interior (0), on an interior interface (2), on a reflected boundary (10), or on a reflected interface boundry (12) . Resetting itp would be used if nodes were removed (such as with rmmat) leaving new boundaries

Formats

resetpts / iflag

resetpts / cell_color / integer_node_color

resetpts / cell_color / [arg1 arg2 arg3]

resetpts Parameters

Parameters

Type/Value

Description/Default

iflag

integer

 

cell_color

 

 

integer_node_color

imt

 

arg1, arg2, arg3

integers

For the case where there are no arguments or three arguments after cell_color the result is:
Loop through all itetclr values 1 to maxclr, and reset node imt to element colors, itetclr. Istart, istride, iend can be used to loop subset of element colors(itetclr).

Note

This option loops through each node of each element and if the node color (imt) is equal to the user specified value (integer_node_color) then it is changed to the element color (itetclr). This will introduce a bias since the nodes are modified in the order of the element numbering. To give some control over the bias the user can specify a negative value for integer_node_color. In that case, the element loop goes from largest to smallest element number.

Examples

resetpts

resetpts / parent

resetpts / itp

resetpts / cell_color / 1

 

resetpts / cell_color

loop through colors from itetclr_min to itetclr_max

 

resetpts / cell_color / 1, 0, 0

loop through colors from itetclr_min to itetclr_max

 

resetpts / cell_color / 1, 3, 1

loop through colors from itetclr=1 to itetclr=3

 

resetpts / cell_color / 3, 1, -1

loop through colors from itetclr=3 to itetclr=1