diff --git a/cmake/Compadre_Version.txt b/cmake/Compadre_Version.txt index dc1e644a1..9c6d6293b 100644 --- a/cmake/Compadre_Version.txt +++ b/cmake/Compadre_Version.txt @@ -1 +1 @@ -1.6.0 +1.6.1 diff --git a/examples/GMLS_Manifold.hpp b/examples/GMLS_Manifold.hpp index 8543741df..6e9398aa0 100644 --- a/examples/GMLS_Manifold.hpp +++ b/examples/GMLS_Manifold.hpp @@ -76,10 +76,10 @@ double sphere_harmonic54(double x, double y, double z) { KOKKOS_INLINE_FUNCTION void curl_sphere_harmonic54(double *curl, double x, double y, double z) { - const scalar_type lon = longitude(x, y, z); // theta - const scalar_type lat = acos(z); // phi - const scalar_type sigma_lon_comp = std::pow(sin(lat), 2) * (5.0* std::pow(cos(lat), 2) - 1.0) * cos(4.0 *lon); - const scalar_type sigma_lat_comp = 4*cos(lat) * std::pow(sin(lat), 3) * sin(4.0 * lon); + const Compadre::scalar_type lon = longitude(x, y, z); // theta + const Compadre::scalar_type lat = acos(z); // phi + const Compadre::scalar_type sigma_lon_comp = std::pow(sin(lat), 2) * (5.0* std::pow(cos(lat), 2) - 1.0) * cos(4.0 *lon); + const Compadre::scalar_type sigma_lat_comp = 4*cos(lat) * std::pow(sin(lat), 3) * sin(4.0 * lon); // solution oriented for inward normal, so we flip sign for outward curl[0] = -(-sin(lat)*sin(lon)*sigma_lon_comp + cos(lat)*cos(lon)*sigma_lat_comp); curl[1] = -(sin(lat)*cos(lon)*sigma_lon_comp + cos(lat)*sin(lon)*sigma_lat_comp); diff --git a/src/Compadre_Typedefs.hpp b/src/Compadre_Typedefs.hpp index b2aee0f15..26b247ac3 100644 --- a/src/Compadre_Typedefs.hpp +++ b/src/Compadre_Typedefs.hpp @@ -20,6 +20,7 @@ #include #include +namespace Compadre { /*! Data types in Compadre Toolkit: @@ -184,4 +185,6 @@ typename std::enable_if<2==T::rank,T>::type createView(std::string str, int dim_ //! compadre_kernel_assert_extreme_debug is similar to compadre_assert_debug, but is a call on the device, //! namely inside of a function marked KOKKOS_INLINE_FUNCTION +} // Compadre namespace + #endif