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
vf.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: 2005-01-17
7 
8  Copyright (C) 2005,2006 EPFL
9  Copyright (C) 2006-2011 Université Joseph Fourier (Grenoble I)
10 
11  This library is free software; you can redistribute it and/or
12  modify it under the terms of the GNU Lesser General Public
13  License as published by the Free Software Foundation; either
14  version 3.0 of the License, or (at your option) any later version.
15 
16  This library is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  Lesser General Public License for more details.
20 
21  You should have received a copy of the GNU Lesser General Public
22  License along with this library; if not, write to the Free Software
23  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24 */
30 #ifndef __VF_H
31 #define __VF_H 1
32 
33 //#include <boost/numeric/bindings/traits/traits.hpp>
34 //#include <boost/numeric/bindings/traits/ublas_vector.hpp>
35 //#include <boost/numeric/bindings/traits/ublas_matrix.hpp>
36 //#include <boost/numeric/bindings/blas/blas.hpp>
37 
38 #include <boost/fusion/tuple.hpp>
39 #include <boost/fusion/sequence.hpp>
40 #include <boost/fusion/algorithm.hpp>
41 
45 #define AUTO( a, b ) __typeof__( b ) a = (b);
46 
47 namespace Feel
48 {
49 //namespace blas = boost::numeric::bindings::blas;
50 //namespace traits = boost::numeric::bindings::traits;
51 namespace fusion = boost::fusion;
52 
53 
54 namespace vf
55 {
56 namespace detail
57 {
58 
60 template<int Index> struct gmc
61 {
62  static const int value = Index;
63  typedef mpl::void_ reference_element_type;
64 } ;
65 
66 template<typename Geo_t>
67 struct ExtractGm
68 {
69  typedef typename mpl::if_<fusion::result_of::has_key<Geo_t,vf::detail::gmc<0> >,mpl::identity<vf::detail::gmc<0> >,mpl::identity<vf::detail::gmc<1> > >::type::type key_type;
70  typedef typename fusion::result_of::value_at_key<Geo_t,key_type>::type::element_type* gmc_ptrtype;
71  typedef typename fusion::result_of::value_at_key<Geo_t,key_type>::type::element_type gmc_type;
72 
73  static gmc_ptrtype get( Geo_t const& geom )
74  {
75  return fusion::at_key<key_type>( geom ).get();
76  }
77  static Geo_t clone( Geo_t const& geom )
78  {
79  Geo_t geom2( geom );
80  fusion::at_key<key_type>( geom2 ) = fusion::at_key<key_type>( geom )->clone();
81  return geom2;
82  }
83 };
85 }
86 }
87 }
88 #include <feel/feelcore/feel.hpp>
89 #include <feel/feelvf/expr.hpp>
90 
92 
94 //#include <feel/feelvf/operators2.hpp>
95 //#include <feel/feelvf/operators3.hpp>
97 #include <feel/feelvf/stdmathfunctors.hpp>
98 #include <feel/feelvf/trace.hpp>
99 #include <feel/feelvf/det.hpp>
100 #include <feel/feelvf/symm.hpp>
101 #include <feel/feelvf/products.hpp>
102 #include <feel/feelvf/norm.hpp>
103 #include <feel/feelvf/ones.hpp>
104 #include <feel/feelvf/inv.hpp>
105 #include <feel/feelvf/twovalued.hpp>
106 //#include <feel/feelvf/eye.hpp>
107 #include <feel/feelvf/val.hpp>
108 #include <feel/feelvf/function.hpp>
109 #include <feel/feelvf/matvec.hpp>
110 //#include <feel/feelvf/integral.hpp>
111 
112 #include <feel/feelvf/form.hpp>
113 #include <feel/feelvf/integrator.hpp>
114 //#include <feel/feelvf/integratordirac.hpp>
116 #include <feel/feelvf/evaluator.hpp>
117 
118 
119 
120 #include <feel/feelvf/ginac.hpp>
121 
122 #include <boost/preprocessor/comparison/equal.hpp>
123 
124 namespace Feel
125 {
126 using namespace vf;
127 }
129 
130 #endif /* __VF_H */

Generated on Fri Oct 25 2013 14:24:27 for Feel++ by doxygen 1.8.4