https://gitlab.opengeosys.org/ogs/ogs.git
Raw File
Tip revision: 5a3fd5e0c9571c958a840c9d17e042bf93c81627 authored by Wenqing Wang on 19 February 2021, 11:16:10 UTC
[UnitTest/MPL] Added a test for SoilThermalConductivitySomerton<3>
Tip revision: 5a3fd5e
EdgeReturn.h
/**
 * \file
 * \copyright
 * Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
 *            Distributed under a Modified BSD License.
 *              See accompanying file LICENSE.txt or
 *              http://www.opengeosys.org/project/license
 *
 */

#pragma once

namespace MeshLib
{

class Element;

/// Returns always null pointer
class NoEdgeReturn
{
public:
    /// Returns i-th edge of the given element
    static const Element* getEdge(const Element* /*e*/, unsigned /*i*/)
    {
        return nullptr;
    }
};

/// Returns linear order edge
class LinearEdgeReturn
{
public:
    /// Returns i-th edge of the given element
    static const Element* getEdge(const Element* e, unsigned i);
};

/// Returns quadratic order edge
class QuadraticEdgeReturn
{
public:
    /// Returns i-th edge of the given element
    static const Element* getEdge(const Element* e, unsigned i);
};

}  // namespace MeshLib
back to top