Commit f25d9790 authored by Stenger, Florian's avatar Stenger, Florian
Browse files

typo in generator methods

parent c0ba03c3
Pipeline #4559 passed with stage
in 8 minutes and 21 seconds
......@@ -56,7 +56,7 @@ class CurvedSurfaceGrid;
/// \brief Generator for CurvedSurfaceGrid from a grid-functions
template <class HostGrid, class GF, int ORDER = -1,
std::enable_if_t<Concept::isGridFunction<GF, HostGrid>(), int> = 0>
auto curedSurfaceGrid (HostGrid& hostGrid, GF&& gridFunction)
auto curvedSurfaceGrid (HostGrid& hostGrid, GF&& gridFunction)
{
static_assert(std::is_same<HostGrid, GridOf_t<std::decay_t<GF>>>::value, "GridFunction must be defined on the HostGrid");
return CurvedSurfaceGrid<std::decay_t<GF>,ORDER>{hostGrid, std::forward<GF>(gridFunction)};
......@@ -65,7 +65,7 @@ auto curedSurfaceGrid (HostGrid& hostGrid, GF&& gridFunction)
/// \brief Generator for CurvedSurfaceGrid from a callable
template <class HostGrid, class F, int ORDER = -1,
std::enable_if_t<not Concept::isGridFunction<F, HostGrid>(), int> = 0>
auto curedSurfaceGrid (HostGrid& hostGrid, F&& callable)
auto curvedSurfaceGrid (HostGrid& hostGrid, F&& callable)
{
using GlobalCoordinate = typename GridEntitySet<HostGrid,0>::GlobalCoordinate;
static_assert(Concept::isCallable<F, GlobalCoordinate>(), "Function must be callable");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment