Loading...
Searching...
No Matches
SpecialFacetFunction.h
// Copyright (C) 2010 Marie E. Rognes
//
// This file is part of DOLFIN.
//
// DOLFIN is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// DOLFIN is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with DOLFIN. If not, see <http://www.gnu.org/licenses/>.
//
// First added: 2010-10-13
// Last changed: 2011-07-04
#ifndef __SPECIAL_FACET_FUNCTION_H
#define __SPECIAL_FACET_FUNCTION_H
#include <vector>
#include <dolfin/function/Expression.h>
namespace ufc
{
class cell;
}
namespace dolfin
{
template <typename T> class Array;
class Function;
class SpecialFacetFunction : public Expression
{
public:
explicit SpecialFacetFunction(std::vector<Function>& f_e);
SpecialFacetFunction(std::vector<Function>& f_e, std::size_t dim);
SpecialFacetFunction(std::vector<Function>& f_e,
std::vector<std::size_t> value_shape);
void eval(Array<double>& values, const Array<double>& x,
const ufc::cell& cell) const;
Function& operator[] (std::size_t i) const;
private:
std::vector<Function>& _f_e;
};
}
#endif
dolfin::Array
Definition Array.h:42
dolfin::Expression::value_shape
virtual std::vector< std::size_t > value_shape() const override
Definition Expression.cpp:119
dolfin::Expression::Expression
Expression()
Create scalar expression.
Definition Expression.cpp:32
dolfin::Function
Definition Function.h:66
dolfin::SpecialFacetFunction::operator[]
Function & operator[](std::size_t i) const
Definition SpecialFacetFunction.cpp:49
dolfin::SpecialFacetFunction::SpecialFacetFunction
SpecialFacetFunction(std::vector< Function > &f_e)
Definition SpecialFacetFunction.cpp:43
dolfin::SpecialFacetFunction::eval
void eval(Array< double > &values, const Array< double > &x, const ufc::cell &cell) const
Definition SpecialFacetFunction.cpp:55
dolfin
Definition adapt.h:30