Skip to content

Commit

Permalink
testing with adaptivity
Browse files Browse the repository at this point in the history
  • Loading branch information
zjwegert committed Sep 17, 2024
1 parent ead8ca2 commit a491154
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ using Gridap

using GridapEmbedded
using GridapEmbedded.LevelSetCutters
using Gridap.Geometry, Gridap.FESpaces, Gridap.CellData, Gridap.ODEs
using Gridap.Geometry, Gridap.FESpaces, Gridap.CellData, Gridap.ODEs, Gridap.Adaptivity
import Gridap.Geometry: get_node_coordinates, collect1d

include("unfitted_evolution.jl")
Expand All @@ -15,9 +15,12 @@ n = 101

_model = CartesianDiscreteModel((0,1,0,1),(n,n))
cd = Gridap.Geometry.get_cartesian_descriptor(_model)
base_model = UnstructuredDiscreteModel(_model)
ref_model = refine(base_model, refinement_method = "barycentric")
model = ref_model.model
# model = simplexify(_model)
h = maximum(cd.sizes)

model = simplexify(_model)
Ω = Triangulation(model)
= Measure(Ω,2*order)
reffe_scalar = ReferenceFE(lagrangian,Float64,order)
Expand Down

0 comments on commit a491154

Please sign in to comment.