dune-grid
2.2.0
|
00001 #ifndef DUNE_GEOGRID_IDENTITY_HH 00002 #define DUNE_GEOGRID_IDENTITY_HH 00003 00004 #include <dune/grid/geometrygrid/coordfunction.hh> 00005 00006 namespace Dune 00007 { 00008 00009 template< class ctype, unsigned int dim > 00010 class IdenticalCoordFunction 00011 : public AnalyticalCoordFunction 00012 < ctype, dim, dim, IdenticalCoordFunction< ctype, dim > > 00013 { 00014 typedef IdenticalCoordFunction< ctype, dim > This; 00015 typedef AnalyticalCoordFunction< ctype, dim, dim, This > Base; 00016 00017 public: 00018 typedef typename Base :: DomainVector DomainVector; 00019 typedef typename Base :: RangeVector RangeVector; 00020 00021 void evaluate ( const DomainVector &x, RangeVector &y ) const 00022 { 00023 y = x; 00024 } 00025 }; 00026 00027 } 00028 00029 #endif