Feel++  0.91.4
Namespaces | Macros
gmsh.cpp File Reference
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <sstream>
#include <iterator>
#include <boost/preprocessor/punctuation/paren.hpp>
#include <boost/preprocessor/punctuation/comma.hpp>
#include <boost/regex.hpp>
#include <boost/archive/binary_iarchive.hpp>
#include <boost/archive/binary_oarchive.hpp>
#include <boost/concept_check.hpp>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/algorithm/string.hpp>
#include <feel/feelcore/feel.hpp>
#include <feel/feelcore/application.hpp>
#include <feel/feelmesh/hypercube.hpp>
#include <feel/feelfilters/gmsh.hpp>
#include <feel/feelfilters/gmshsimplexdomain.hpp>
#include <feel/feelfilters/gmshhypercubedomain.hpp>
#include <feel/feelfilters/gmshellipsoiddomain.hpp>

Namespaces

namespace  Feel
 

Macros

#define DIMS   BOOST_PP_TUPLE_TO_LIST(3,(1,2,3))
 
#define ORDERS   BOOST_PP_TUPLE_TO_LIST(5,(1,2,3,4,5))
 
#define SHAPES1
 
#define SHAPES2
 
#define FACTORY1NAME(LDIM, LORDER, LSHAPE)   BOOST_PP_STRINGIZE(BOOST_PP_ARRAY_ELEM(0,LSHAPE) BOOST_PP_LPAREN() LDIM BOOST_PP_COMMA() LORDER BOOST_PP_RPAREN())
 
#define FACTORY1(LDIM, LORDER, LSHAPE)
 
#define FACTORY1_OP(_, GDO)   FACTORY1 GDO
 
#define FACTORY2NAME(LDIM, LORDER, LSHAPE)   BOOST_PP_STRINGIZE(BOOST_PP_ARRAY_ELEM(0,LSHAPE) BOOST_PP_LPAREN() LDIM BOOST_PP_COMMA() LORDER BOOST_PP_COMMA() BOOST_PP_ARRAY_ELEM(2,LSHAPE) BOOST_PP_RPAREN())
 
#define FACTORY2(LDIM, LORDER, LSHAPE)
 
#define FACTORY2_OP(_, GDO)   FACTORY2 GDO
 

Detailed Description

Author
Christophe Prud'homme chris.nosp@m.toph.nosp@m.e.pru.nosp@m.dhom.nosp@m.me@uj.nosp@m.f-gr.nosp@m.enobl.nosp@m.e.fr
Date
2005-02-10

Macro Definition Documentation

#define FACTORY1 (   LDIM,
  LORDER,
  LSHAPE 
)
Value:
const bool BOOST_PP_CAT( BOOST_PP_CAT( BOOST_PP_CAT( mesh, LDIM ), LORDER), BOOST_PP_ARRAY_ELEM(1,LSHAPE)) = \
Gmsh::Factory::type::instance().registerProduct( boost::to_lower_copy(boost::algorithm::erase_all_copy( std::string( FACTORY1NAME(LDIM, LORDER, LSHAPE ) ), " " ) ), \
*new detail::BOOST_PP_CAT(BOOST_PP_ARRAY_ELEM(1,LSHAPE),Domain)(LDIM,LORDER) );
#define FACTORY2 (   LDIM,
  LORDER,
  LSHAPE 
)
Value:
const bool BOOST_PP_CAT( BOOST_PP_CAT( BOOST_PP_CAT( BOOST_PP_CAT( mesh, LDIM ), LORDER), BOOST_PP_ARRAY_ELEM(1,LSHAPE)), BOOST_PP_ARRAY_ELEM(2,LSHAPE)) = \
Gmsh::Factory::type::instance().registerProduct( boost::to_lower_copy( boost::algorithm::erase_all_copy( std::string( FACTORY2NAME(LDIM, LORDER, LSHAPE ) ), " " ) ), \
*new detail::BOOST_PP_CAT(BOOST_PP_ARRAY_ELEM(1,LSHAPE),Domain)(LDIM,LORDER,LDIM,boost::to_lower_copy(std::string(BOOST_PP_STRINGIZE(BOOST_PP_ARRAY_ELEM(2,LSHAPE)))) ));
#define SHAPES1
Value:
BOOST_PP_TUPLE_TO_LIST(3, ((2,(simplex, Simplex)) , \
(2,(ellipsoid, Ellipsoid)) , \
(2,(hypercube, Hypercube)) ))
#define SHAPES2
Value:
BOOST_PP_TUPLE_TO_LIST(2, ((3,(hypercube, Hypercube, Simplex)), \
(3,(hypercube, Hypercube, Hypercube)) ) )