Skip to content

Commit a133c3d

Browse files
committed
Deprecate to-be-deprecated FEInterface methods
We're already beginning a big shakeup for user code so we might as well pull the bandaid off quickly.
1 parent 4786f18 commit a133c3d

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

src/fe/fe_interface.C

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,7 @@ Point FEInterface::map(unsigned int dim,
669669
const Elem * elem,
670670
const Point & p)
671671
{
672+
libmesh_deprecated();
672673
#ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS
673674
if (is_InfFE_elem(elem->type()))
674675
return ifem_map(dim, fe_t, elem, p);
@@ -687,6 +688,7 @@ Point FEInterface::inverse_map (const unsigned int dim,
687688
const Real tolerance,
688689
const bool secure)
689690
{
691+
libmesh_deprecated();
690692
#ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS
691693

692694
if (is_InfFE_elem(elem->type()))
@@ -708,6 +710,8 @@ void FEInterface::inverse_map (const unsigned int dim,
708710
const Real tolerance,
709711
const bool secure)
710712
{
713+
libmesh_deprecated();
714+
711715
const std::size_t n_pts = physical_points.size();
712716

713717
// Resize the vector

src/fe/fe_interface_inf_fe.C

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ unsigned int FEInterface::ifem_n_shape_functions(const unsigned int dim,
4040
const FEType & fe_t,
4141
const ElemType t)
4242
{
43-
// TODO:
44-
// libmesh_deprecated();
43+
libmesh_deprecated();
4544

4645
switch (dim)
4746
{
@@ -165,8 +164,7 @@ unsigned int FEInterface::ifem_n_dofs_at_node(const unsigned int dim,
165164
const ElemType t,
166165
const unsigned int n)
167166
{
168-
// TODO:
169-
// libmesh_deprecated();
167+
libmesh_deprecated();
170168

171169
switch (dim)
172170
{
@@ -230,8 +228,7 @@ unsigned int FEInterface::ifem_n_dofs_per_elem(const unsigned int dim,
230228
const FEType & fe_t,
231229
const ElemType t)
232230
{
233-
// TODO:
234-
// libmesh_deprecated();
231+
libmesh_deprecated();
235232

236233
switch (dim)
237234
{
@@ -740,8 +737,7 @@ Real FEInterface::ifem_shape(const unsigned int dim,
740737
const unsigned int i,
741738
const Point & p)
742739
{
743-
// TODO:
744-
// libmesh_deprecated();
740+
libmesh_deprecated();
745741

746742
inf_fe_switch(shape(fe_t, t, i, p));
747743
}
@@ -755,8 +751,7 @@ Real FEInterface::ifem_shape(const unsigned int dim,
755751
const unsigned int i,
756752
const Point & p)
757753
{
758-
// TODO:
759-
// libmesh_deprecated();
754+
libmesh_deprecated();
760755

761756
inf_fe_switch( shape(fe_t, elem, i, p));
762757
}
@@ -779,22 +774,21 @@ Real FEInterface::ifem_shape_deriv (const unsigned int dim,
779774
const unsigned int j,
780775
const Point & p)
781776
{
782-
// TODO:
783-
// libmesh_deprecated();
777+
libmesh_deprecated();
784778

785779
inf_fe_switch(shape_deriv(fe_t, elem, i, j, p));
786780
}
787781

788782

783+
789784
Real FEInterface::ifem_shape_deriv(const unsigned int dim,
790785
const FEType & fe_t,
791786
const ElemType t,
792787
const unsigned int i,
793788
const unsigned int j,
794789
const Point & p)
795790
{
796-
// TODO:
797-
// libmesh_deprecated();
791+
libmesh_deprecated();
798792

799793
inf_fe_switch(shape_deriv(fe_t, t, i, j, p));
800794
}

0 commit comments

Comments
 (0)