Skip to content

Commit 5521778

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 58d9ced commit 5521778

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
@@ -913,6 +913,7 @@ Point FEInterface::map(unsigned int dim,
913913
const Elem * elem,
914914
const Point & p)
915915
{
916+
libmesh_deprecated();
916917
#ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS
917918
if (is_InfFE_elem(elem->type()))
918919
return ifem_map(dim, fe_t, elem, p);
@@ -931,6 +932,7 @@ Point FEInterface::inverse_map (const unsigned int dim,
931932
const Real tolerance,
932933
const bool secure)
933934
{
935+
libmesh_deprecated();
934936
#ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS
935937

936938
if (is_InfFE_elem(elem->type()))
@@ -952,6 +954,8 @@ void FEInterface::inverse_map (const unsigned int dim,
952954
const Real tolerance,
953955
const bool secure)
954956
{
957+
libmesh_deprecated();
958+
955959
const std::size_t n_pts = physical_points.size();
956960

957961
// 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)