Selecting integration methodsΒΆ

The description of an integration method on a whole mesh is done thanks to the structure getfem::mesh_im, defined in the file getfem/getfem_mesh_im.h. Basically, this structure describes the integration method on each element of the mesh. One can instantiate a getfem::mesh_im object as follows:

getfem::mesh_im mim(mymesh);

where mymesh is an already existing mesh. The structure will be linked to this mesh and will react when modifications will be done on it (for example when the mesh is refined, the integration method will be also refined).

It is possible to specify element by element the integration method, so that element of mixed types can be treated, even if the dimensions are different.

To select a particular integration method on a given element, one can use:

mim.set_integration_method