Logo  0.95.0-final
Finite Element Embedded Library and Language in C++
Feel++ Feel++ on Github Feel++ community
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
formcontextbase.hpp
Go to the documentation of this file.
1 /* -*- mode: c++; coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; show-trailing-whitespace: t -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2 
3  This file is part of the Feel library
4 
5  Author(s): Christophe Prud'homme <christophe.prudhomme@feelpp.org>
6  Date: 2010-04-27
7 
8  Copyright (C) 2010 Université Joseph Fourier (Grenoble I)
9 
10  This library is free software; you can redistribute it and/or
11  modify it under the terms of the GNU Lesser General Public
12  License as published by the Free Software Foundation; either
13  version 2.1 of the License, or (at your option) any later version.
14 
15  This library is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  Lesser General Public License for more details.
19 
20  You should have received a copy of the GNU Lesser General Public
21  License along with this library; if not, write to the Free Software
22  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 */
29 #ifndef __FormContextBase_H
30 #define __FormContextBase_H 1
31 
32 #include<feel/feelvf/vf.hpp>
33 
34 namespace Feel
35 {
36 namespace vf
37 {
39 namespace detail
40 {
41 
46 template<typename GeomapContext, typename IM, typename GeomapExprContext>
47 class FormContextBase
48 {
49 public:
50 
54  typedef GeomapContext map_geometric_mapping_context_type;
55  typedef typename fusion::result_of::value_at_key<GeomapContext,gmc<0> >::type geometric_mapping_context_ptrtype;
56  typedef typename geometric_mapping_context_ptrtype::element_type geometric_mapping_context_type;
57  typedef typename geometric_mapping_context_type::gm_type geometric_mapping_type;
58 
59  typedef mpl::int_<fusion::result_of::template size<GeomapContext>::type::value> map_size;
60 
61  typedef typename mpl::if_<mpl::equal_to<map_size,mpl::int_<2> >, gmc<1>, gmc<0> >::type gmc1;
62 
63  typedef typename fusion::result_of::value_at_key<GeomapContext,gmc<0> >::type left_gmc_ptrtype;
64  typedef typename fusion::result_of::value_at_key<GeomapContext,gmc<0> >::type::element_type left_gmc_type;
65  typedef typename fusion::result_of::value_at_key<GeomapContext,gmc1 >::type right_gmc_ptrtype;
66  typedef typename fusion::result_of::value_at_key<GeomapContext,gmc1 >::type::element_type right_gmc_type;
67 
68  typedef fusion::map<fusion::pair<gmc<0>, left_gmc_ptrtype> > map_left_gmc_type;
69  typedef fusion::map<fusion::pair<gmc<0>, right_gmc_ptrtype> > map_right_gmc_type;
70 
71 
72  typedef GeomapExprContext map_geometric_mapping_expr_context_type;
73 
75 
76  virtual ~FormContextBase() {}
77 
78  virtual void update( map_geometric_mapping_context_type const& _gmc,
79  map_geometric_mapping_expr_context_type const& _gmcExpr ) = 0;
80 
81  virtual void update( map_geometric_mapping_context_type const& _gmc,
82  map_geometric_mapping_expr_context_type const& _gmcExpr,
83  mpl::int_<2> ) = 0;
84 
85 
86  virtual void update( map_geometric_mapping_context_type const& _gmc,
87  map_geometric_mapping_expr_context_type const& _gmcExpr,
88  IM const& im ) = 0;
89 
90  virtual void update( map_geometric_mapping_context_type const& _gmc,
91  map_geometric_mapping_expr_context_type const& _gmcExpr,
92  IM const& im, mpl::int_<2> ) = 0;
93 
94 
95  virtual void integrate() = 0;
96 
97  virtual void assemble() = 0;
98 
99  virtual void assemble( mpl::int_<2> ) = 0;
100 };
101 }
103 }
104 }
105 #endif /* __FormContextBase_H */

Generated on Sun Oct 20 2013 08:24:57 for Feel++ by doxygen 1.8.4