Skip to content
Snippets Groups Projects
Commit f25d9790 authored by Stenger, Florian's avatar Stenger, Florian
Browse files

typo in generator methods

parent c0ba03c3
Branches
No related tags found
No related merge requests found
Pipeline #4559 passed
......@@ -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");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment