Skip to content

Commit

Permalink
Intrepid2: remove Experimental namespace and fix warnings (#12676)
Browse files Browse the repository at this point in the history
* Intrepid2: fix compiler warnings (no return statement, and defined but not used)

* Intrepid2: finally remove Experimental namespace for projections
  • Loading branch information
mperego authored Jan 18, 2024
1 parent 6796c6b commit 02c0a94
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,7 @@ namespace Intrepid2 {
virtual
const char*
getName() const override {
if constexpr (serendipity)
return "Intrepid2_HGRAD_HEX_I2_FEM";
else
return "Intrepid2_HGRAD_HEX_C2_FEM";
return serendipity ? "Intrepid2_HGRAD_HEX_I2_FEM" : "Intrepid2_HGRAD_HEX_C2_FEM";
}

/** \brief returns the basis associated to a subCell.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,7 @@ namespace Intrepid2 {
virtual
const char*
getName() const override {
if constexpr (serendipity)
return "Intrepid2_HGRAD_QUAD_I2_FEM";
else
return "Intrepid2_HGRAD_QUAD_C2_FEM";
return serendipity ? "Intrepid2_HGRAD_QUAD_I2_FEM" : "Intrepid2_HGRAD_QUAD_C2_FEM";
}

/** \brief returns the basis associated to a subCell.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,7 @@ namespace Intrepid2 {
virtual
const char*
getName() const override {
if constexpr (serendipity)
return "Intrepid2_HGRAD_WEDGE_I2_FEM";
else
return "Intrepid2_HGRAD_WEDGE_C2_FEM";
return serendipity ? "Intrepid2_HGRAD_WEDGE_I2_FEM" : "Intrepid2_HGRAD_WEDGE_C2_FEM";
}

/** \brief returns the basis associated to a subCell.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,7 @@ class LagrangianTools {
);
};

// temporary fix to allow applications keep using the Experimental namespace. It will be removed soon.
namespace Experimental {
template<typename DeviceType>
class LagrangianInterpolation: public Intrepid2::LagrangianInterpolation<DeviceType>{};
}

}
} // Intrepid2 namespace

// include templated function definitions
#include "Intrepid2_LagrangianInterpolationDef.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -526,12 +526,6 @@ class ProjectionStruct {
ordinal_type maxNumTargetDerivEvalPoints;
};

//Temporary fix, to allow application keep using the Experimental namespace. It will be removed soon.
namespace Experimental {
template<typename DeviceType, typename ValueType>
class ProjectionStruct: public Intrepid2::ProjectionStruct<DeviceType, ValueType>{};
}

} // Intrepid2 namespace
#include "Intrepid2_ProjectionStructDef.hpp"
#endif
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -802,12 +802,6 @@ class ProjectionTools {

};

//Temporary fix to allow application keep using the Experimental namespace. It will be removed soon.
namespace Experimental {
template<typename DeviceType>
class ProjectionTools: public Intrepid2::ProjectionTools<DeviceType>{};
}

} //Intrepid2


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -943,10 +943,6 @@ namespace Intrepid2 {
using FT23FF = FunctorArrayTools::F_matvecProduct<Output,Left,Right,2,3, false, false>;
using FT22FF = FunctorArrayTools::F_matvecProduct<Output,Left,Right,2,2, false, false>;

typedef Kokkos::DynRankView<outputValueType, outputProperties...> OutputViewType;
typedef const Kokkos::DynRankView<leftInputValueType, leftInputProperties...> leftInputViewType;
typedef const Kokkos::DynRankView<rightInputValueType,rightInputProperties...> rightInputViewType;

const ordinal_type l = leftInput.rank();
const ordinal_type r = rightInput.rank();

Expand Down

0 comments on commit 02c0a94

Please sign in to comment.