Skip to content
Snippets Groups Projects
Commit 8067fd82 authored by Jö Fahlke's avatar Jö Fahlke
Browse files

constraints: import interface function from PDELAb

parent 11ae605e
No related branches found
No related tags found
No related merge requests found
#ifndef PACXX_PROJECTSEMINAR_2019_SRC_CONSTRAINTS_HH
#define PACXX_PROJECTSEMINAR_2019_SRC_CONSTRAINTS_HH
namespace PPS {
template<typename P, typename GFS, typename CG>
void constraints(const P& p, const GFS& gfs, CG& cg,
const bool verbose = false)
{
// clear global constraints
cg.clear();
Dune::PDELab::ConstraintsAssemblerHelper<P, GFS, CG, Dune::PDELab::IsGridFunction<P>::value>::assemble(p,gfs,cg,verbose);
}
}
#endif // PACXX_PROJECTSEMINAR_2019_SRC_CONSTRAINTS_HH
......@@ -47,6 +47,7 @@
#endif
//== }
#include"problem.hh"
#include "constraints.hh"
#include "gridoperator.hh"
#include "interpolate.hh"
#include "linearsolver.hh"
......@@ -92,7 +93,7 @@ void driver (const GV& gv, Dune::ParameterTree& ptree)
typedef typename GFS::template
ConstraintsContainer<RF>::Type CC;
CC cc;
Dune::PDELab::constraints(b,gfs,cc); // assemble constraints
PPS::constraints(b,gfs,cc); // assemble constraints
std::cout << "constrained dofs=" << cc.size() << " of "
<< gfs.globalSize() << std::endl;
std::vector<std::size_t> cc_plain;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment