Skip to content

Commit

Permalink
Added dimension type to the class
Browse files Browse the repository at this point in the history
  • Loading branch information
lsawade committed Dec 2, 2024
1 parent bab2bd0 commit 3bd0340
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion include/mesh/control_nodes/control_nodes.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ namespace mesh {
template <specfem::dimension::type DimensionType> struct control_nodes;

template <> struct control_nodes<specfem::dimension::type::dim2> {
using ViewType = Kokkos::View<type_real **, Kokkos::HostSpace>;

// Use 'specfem::dimension::type::dim2' explicitly here
constexpr static auto dimension = specfem::dimension::type::dim2;

using ViewType = Kokkos::View<type_real **, Kokkos::HostSpace>;
int ngnod; ///< Number of control nodes
int nspec; ///< Number of spectral elements
Kokkos::View<int **, Kokkos::HostSpace> knods; ///< Control node indices
Expand Down

0 comments on commit 3bd0340

Please sign in to comment.