root/src/secOrd_op_identity.cpp

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. interpolate

   1 /*! \file secOrd_op_identity.cpp
   2     \author Christian Power
   3     \date 9. March 2016
   4 
   5     \brief Implementing secOrd_op_identity.h. 
   6 
   7      Revision history:
   8      --------------------------------------------------
   9 
  10           Revised by Christian Power March 2016
  11           Originally written by Christian Power
  12                (power22c@gmail.com) March 2016
  13 
  14      Idea
  15      --------------------------------------------------
  16 
  17      The actual dune stuff is in secOrd_op_identity_impl.{h,cpp}.
  18 
  19          Created by Christian Power on 16.03.2016
  20          Copyright (c) 2016 Christian Power.  All rights reserved.
  21      
  22 */
  23 
  24 #include "secOrd_op_identity.h"
  25 #include "secOrd_op_identity_impl.h"
  26 
  27 // ----------------------------------------------------------------------
  28 // Implementation of Identity::Data
  29 
  30 using namespace std;
  31 using Esfem::SecOrd_op::Identity;
  32 using Esfem::Impl::Identity_impl;
  33 
  34 struct Identity::Data{
  35   Identity_impl identity_impl {};
  36 };
  37 
  38 // ----------------------------------------------------------------------
  39 // Implementation of Identity
  40 
  41 Identity::Identity()
  42   : d_ptr {make_unique<Data>()}
  43 {}
  44 
  45 Identity::~Identity() = default;
  46 
  47 void Identity::interpolate(Grid::Vec_FEfun& vfef) const{
  48   using FE_function = Grid::Vec_FEfun::Dune_FEfun;
  49   Dune::LagrangeInterpolation<FE_function>::
  50     interpolateFunction(d_ptr -> identity_impl, vfef);
  51 }

/* [<][>][^][v][top][bottom][index][help] */