tem_refining_module Module

Module that allows the refinement of a given tree to create a mesh with a different resolution.

IMPORTANT NOTE: This is a module, that does not employ mesh adaptivity strategies, instead, complete meshes are created anew! Smarter, more efficient mesh adaptivity procedures are being implemented, and should replace the functionality of this module eventually.



Subroutines

public subroutine tem_refine_global_subtree(orig_mesh, orig_bcs, subtree, ndims, new_mesh, new_bcs, restrict_to_sub)

Refine all elements defined in subtree by one level in the original mesh, and create a new mesh.

Read more…

Arguments

Type IntentOptional Attributes Name
type(treelmesh_type), intent(in) :: orig_mesh

The original mesh to be refined.

type(tem_BC_prop_type), intent(in) :: orig_bcs

Boundary conditions for the original mesh.

type(tem_subTree_type), intent(in) :: subtree

(Process local) positions of elements to refine.

integer, intent(in) :: ndims

Number of dimensions for the refinement

Read more…
type(treelmesh_type), intent(out) :: new_mesh

Newly created refined mesh.

type(tem_BC_prop_type), intent(out) :: new_bcs

Boundary conditions for the new mesh.

logical, intent(in), optional :: restrict_to_sub

Flag to indicate, wether only refined elements should be put into the new mesh.