1 /*! \file secOrd_op_identity.h 2 \brief Providing an identity function for vector valued finite element functions 3 4 Revision history 5 -------------------------------------------------- 6 7 Revised by Christian Power Mai 2016 8 Originally written by Christian Power 9 (power22c@gmail.com) March 2016 10 11 Idea 12 -------------------------------------------------- 13 14 This class provides a way to save the current grid in a vector valued finite 15 element function. With a different function you can save the nodal values into 16 a file with the dune grid format. 17 18 \author Christian Power 19 \date 23. Mai 2016 20 \copyright Copyright (c) 2016 Christian Power. All rights reserved. 21 */ 22 23 #ifndef SECORD_OP_IDENTITY_H 24 #define SECORD_OP_IDENTITY_H 25 26 #include <memory> 27 #include "esfem_fwd.h" 28 29 namespace Esfem{ 30 namespace SecOrd_op{ 31 //! Interface for the identity function. 32 class Identity{ 33 public: 34 //! Set up 35 Identity(); 36 //! Required by pointer to implementation technique. 37 ~Identity(); 38 39 void interpolate(Grid::Vec_FEfun&) const; 40 /*!< \brief The nodal values of the finite element functions 41 will be the nodal values itself. 42 */ 43 private: 44 struct Data; 45 //! Pointer to implementation 46 std::unique_ptr<Data> d_ptr; 47 }; 48 } 49 } 50 51 #endif // SECORD_OP_IDENTITY_H