Skip to content

Commit

Permalink
Replace FE_DGP with custom class avoiding assert (#134)
Browse files Browse the repository at this point in the history
* Add support for simplex meshes

* Add new class MappingBox, implementing bbox mapping on general (hex or tet) cells

* Replace FE_DGQ with custom FE_DGQ avoiding an assert

* Update example

* Use different name for new class

* Minor fixes
  • Loading branch information
fdrmrc authored Sep 29, 2024
1 parent c7859af commit 274b677
Show file tree
Hide file tree
Showing 6 changed files with 786 additions and 11 deletions.
6 changes: 3 additions & 3 deletions examples/poisson.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
// -----------------------------------------------------------------------------


#include <deal.II/fe/fe_dgp.h>
#include <deal.II/fe/mapping_fe.h>

#include <deal.II/grid/grid_generator.h>
Expand All @@ -27,6 +26,7 @@
#include <deal.II/numerics/data_out.h>

#include <agglomeration_handler.h>
#include <fe_agglodgp.h>
#include <poly_utils.h>

#include <algorithm>
Expand Down Expand Up @@ -409,8 +409,8 @@ class Poisson

Triangulation<dim> tria;
#ifdef HEX
MappingQ1<dim> mapping;
FE_DGQ<dim> dg_fe;
MappingQ1<dim> mapping;
FE_AggloDGP<dim> dg_fe;
#else
MappingFE<dim> mapping;
FE_SimplexDGP<dim> dg_fe;
Expand Down
Loading

0 comments on commit 274b677

Please sign in to comment.