Skip to contents

Refine an existing mesh

Usage

fm_refine(mesh, refine = list(max.edge = 1))

Arguments

mesh

An fm_mesh_2d() object

refine

A list of refinement options passed on to fm_rcdt_2d_inla

Value

A refined fm_mesh_2d object

Author

Finn Lindgren finn.lindgren@gmail.com

Examples

fm_dof(fmexample$mesh)
#> [1] 279
fm_dof(fm_refine(fmexample$mesh, refine = list(max.edge = 1)))
#> [1] 332