diff --git a/include/medium/dim2/acoustic/isotropic/properties_container.hpp b/include/medium/dim2/acoustic/isotropic/properties_container.hpp index ee9381fe..6a788138 100644 --- a/include/medium/dim2/acoustic/isotropic/properties_container.hpp +++ b/include/medium/dim2/acoustic/isotropic/properties_container.hpp @@ -13,11 +13,11 @@ struct properties_container { - using Base = + using base_type = impl::impl_properties_container; - using Base::Base; + using base_type::base_type; constexpr static int _counter = __COUNTER__; DEFINE_CONTAINER(rho_inverse) diff --git a/include/medium/dim2/elastic/anisotropic/properties_container.hpp b/include/medium/dim2/elastic/anisotropic/properties_container.hpp index b1307985..b78debd9 100644 --- a/include/medium/dim2/elastic/anisotropic/properties_container.hpp +++ b/include/medium/dim2/elastic/anisotropic/properties_container.hpp @@ -13,10 +13,10 @@ struct properties_container { - using Base = impl::impl_properties_container< + using base_type = impl::impl_properties_container< specfem::element::medium_tag::elastic, specfem::element::property_tag::anisotropic, 10>; - using Base::Base; + using base_type::base_type; constexpr static int _counter = __COUNTER__; DEFINE_CONTAINER(c11) diff --git a/include/medium/dim2/elastic/isotropic/properties_container.hpp b/include/medium/dim2/elastic/isotropic/properties_container.hpp index 1a4e8bdc..998d8877 100644 --- a/include/medium/dim2/elastic/isotropic/properties_container.hpp +++ b/include/medium/dim2/elastic/isotropic/properties_container.hpp @@ -13,11 +13,11 @@ struct properties_container { - using Base = + using base_type = impl::impl_properties_container; - using Base::Base; + using base_type::base_type; constexpr static int _counter = __COUNTER__; DEFINE_CONTAINER(lambdaplus2mu) diff --git a/include/medium/properties_container.hpp b/include/medium/properties_container.hpp index 89ec9bb9..9a762252 100644 --- a/include/medium/properties_container.hpp +++ b/include/medium/properties_container.hpp @@ -6,11 +6,11 @@ constexpr static int i_##prop = __COUNTER__ - _counter - 1; \ KOKKOS_INLINE_FUNCTION type_real &prop(const int &ispec, const int &iz, \ const int &ix) const { \ - return Base::data(ispec, iz, ix, i_##prop); \ + return base_type::data(ispec, iz, ix, i_##prop); \ } \ KOKKOS_INLINE_FUNCTION type_real &h_##prop(const int &ispec, const int &iz, \ const int &ix) const { \ - return Base::h_data(ispec, iz, ix, i_##prop); \ + return base_type::h_data(ispec, iz, ix, i_##prop); \ } namespace specfem { diff --git a/include/point/properties.hpp b/include/point/properties.hpp index dfa3c901..34befd8b 100644 --- a/include/point/properties.hpp +++ b/include/point/properties.hpp @@ -6,10 +6,10 @@ #define DEFINE_PROP(prop) \ constexpr static int i_##prop = __COUNTER__ - _counter - 1; \ KOKKOS_INLINE_FUNCTION constexpr value_type prop() const { \ - return Base::data[i_##prop]; \ + return base_type::data[i_##prop]; \ } \ KOKKOS_INLINE_FUNCTION constexpr void prop(value_type &val) { \ - Base::data[i_##prop] = val; \ + base_type::data[i_##prop] = val; \ } namespace specfem { @@ -109,8 +109,8 @@ struct properties; - using Base::Base; + using base_type = impl::impl_properties<3, UseSIMD>; + using base_type::base_type; DEFINE_PROP(lambdaplus2mu) ///< Lame's parameter @f$ \lambda + 2\mu @f$ DEFINE_PROP(mu) ///< shear modulus @f$ \mu @f$ @@ -151,8 +151,8 @@ struct properties; - using Base::Base; + using base_type = impl::impl_properties<10, UseSIMD>; + using base_type::base_type; /** * @name Elastic constants @@ -204,8 +204,8 @@ struct properties; - using Base::Base; + using base_type = impl::impl_properties<2, UseSIMD>; + using base_type::base_type; DEFINE_PROP(rho_inverse) ///< @f$ \frac{1}{\rho} @f$ DEFINE_PROP(kappa) ///< Bulk modulus @f$ \kappa @f$ diff --git a/include/policies/chunk.hpp b/include/policies/chunk.hpp index 018b99a6..a112f5f5 100644 --- a/include/policies/chunk.hpp +++ b/include/policies/chunk.hpp @@ -63,14 +63,14 @@ struct chunk_index_type { template struct mapped_chunk_index_type : public chunk_index_type { - using Base = chunk_index_type; + using base_type = chunk_index_type; int imap; ///< Index of the mapped element KOKKOS_INLINE_FUNCTION mapped_chunk_index_type(const int ielement, const specfem::point::index index, const int imap) - : Base(ielement, index), imap(imap) {} + : base_type(ielement, index), imap(imap) {} }; } // namespace impl @@ -252,20 +252,20 @@ class mapped_chunk; template class mapped_chunk : public chunk { - using Base = chunk; + using base_type = chunk; using mapped_index_type = - typename impl::mapped_chunk_index_type; ///< Index + typename impl::mapped_chunk_index_type; ///< Index public: KOKKOS_INLINE_FUNCTION mapped_chunk(const ViewType &indices, const ViewType &mapping, const int ngllz, const int ngllx) - : Base(indices, ngllz, ngllx), mapping(mapping) {} + : base_type(indices, ngllz, ngllx), mapping(mapping) {} KOKKOS_INLINE_FUNCTION mapped_index_type operator()(const int i) const { - const auto base_index = Base::operator()(i); + const auto base_index = base_type::operator()(i); return mapped_index_type(base_index.ielement, base_index.index, mapping(base_index.ielement)); } @@ -405,8 +405,8 @@ struct element_chunk template struct mapped_element_chunk : public element_chunk { using simd = typename ParallelConfig::simd; - using Base = element_chunk; - using IndexViewType = typename Base::IndexViewType; + using base_type = element_chunk; + using IndexViewType = typename base_type::IndexViewType; using mapped_iterator_type = specfem::iterator::mapped_chunk { mapped_element_chunk(const IndexViewType &view, const IndexViewType &mapping, int ngllz, int ngllx) - : Base(view, ngllz, ngllx), mapping(mapping) {} + : base_type(view, ngllz, ngllx), mapping(mapping) {} KOKKOS_INLINE_FUNCTION mapped_iterator_type mapped_league_iterator(const int start_index) const { const int start = start_index; - const int end = - (start + Base::chunk_size * Base::simd_size > Base::elements.extent(0)) - ? Base::elements.extent(0) - : start + Base::chunk_size * Base::simd_size; + const int end = (start + base_type::chunk_size * base_type::simd_size > + base_type::elements.extent(0)) + ? base_type::elements.extent(0) + : start + base_type::chunk_size * base_type::simd_size; const auto elem_indices = - Kokkos::subview(Base::elements, Kokkos::make_pair(start, end)); + Kokkos::subview(base_type::elements, Kokkos::make_pair(start, end)); const auto map_indices = Kokkos::subview(mapping, Kokkos::make_pair(start, end)); - return mapped_iterator_type(elem_indices, map_indices, Base::ngllz, - Base::ngllx); + return mapped_iterator_type(elem_indices, map_indices, base_type::ngllz, + base_type::ngllx); } protected: