4 #ifndef la_bddcml_wrapper_h
5 #define la_bddcml_wrapper_h
7 #include <boost/numeric/ublas/matrix.hpp>
8 #include <boost/numeric/ublas/vector.hpp>
20 #include <bddcml_interface_c.h>
26 namespace ublas = boost::numeric::ublas;
30 template<
typename DOFHOLDER,
typename MAPTYPE >
33 unsigned globalIndex = np -> giveId( );
35 typename MAPTYPE::iterator pos = map.find( globalIndex );
37 "Cannot remap node index %d to local indices. \n ", globalIndex );
38 int localIndexInt = pos -> second;
91 const unsigned numDofsSub,
100 void loadRawMesh(
const int nDim,
const int numNodes,
const int numDofs,
109 const int meshDim = 0 );
140 void fixDOF(
const unsigned index,
const double scalar = 1. );
155 int verboseLevel = 0,
162 bool use_adaptive =
false
201 { std::fill(
sol_.begin( ),
sol_.end( ), 0. );
220 template<
typename VEC1,
typename VEC2>
221 void giveSolution(
const VEC1 & dofIndices, VEC2 & result )
const;
286 #include "bddcml_wrapper.ipp"