next up previous contents
Next: Display Methods on HMesh2d Up: HMesh2d Previous: HMesh2d

Memory Methods on HMesh2d

   

(HMESH2D *)GRAPE(HMesh2d, "new-instance")(name)

CLASS *HMesh2d char *name

This method creates a new instance of class HMesh2d with name name and allocates the necessary memory. The function pointers first_element and next_element are set to default procedures.

   

(MESH2D *)GRAPE(hmesh, "softcopy")(copy)

HMESH2D *hmesh,*copy

Copies the instance hmesh by calling the method on the superclass Mesh2d and fills additional structure-pointers in copy. copy is returned.

   

(HMESH2D *)GRAPE(hmesh, "add-function")(f_hdata)

HMESH2D *hmesh
F_HDATA2D *f_hdata

Adds the function given by f_hdata by copying and inserting it as first entry in the linked list given by hmeshtex2html_wrap_inline3530f_data. Finally the function-selector is updated.

   

(HMESH2D *)GRAPE(hmesh, "remove-function")(name)

HMESH2D *hmesh
char *name

This method frees the first entry of the linked list hmeshtex2html_wrap_inline3530f_data which corresponds to the given string name. The function-selector is updated afterwards.

   

(HMESH2D *)GRAPE(hmesh, "get-object")(obj,t)

HMESH2D *hmesh,*obj
double t

This method returns the instance hmesh at time t. This happens by softcopying hmesh and its function-selector to the pointer obj, setting obj's time to t and returning obj. If obj already is filled, its level_of_interest and threshold are kept. (To be precise: hmesh's parameters are set to these values.)

   

(HMESH2D *)GRAPE(hmesh, "hmesh-interactive-send")()

HMESH2D *hmesh

This method sets up the project uif-hm2, see 5.4.

   

(HMESH2D *)GRAPE(hmesh, "calc-lenstimators")(lens)

HMESH2D *hmesh
HMESH2D_LENS *lens

This method calculates lens-estimators for all nodes of the hmesh up to the leaf-level and returning them in lenstex2html_wrap_inline3530lens_data. The calculation of the estimators is based on the distance of parent-nodes to child-nodes. These estimators are saturated by a blow-up procedure assuring that estimators of nodes of an element are bigger than all nodes of the elements's children. It is necessary that elements have access to their global vertex-indices in vindex. If this is not the case all estimators are set to zero.


next up previous contents
Next: Display Methods on HMesh2d Up: HMesh2d Previous: HMesh2d

SFB 256 Universität Bonn and IAM Universität Freiburg

Copyright © by the Sonderforschungsbereich 256 at the Institut für Angewandte Mathematik, Universität Bonn.