This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Create DofMap in C++

+1 vote

How do I write the C++ counterpart for creating a dofmap, which in Python is done by:

dm = V.dofmap()
asked Jul 25, 2014 by BB FEniCS Novice (710 points)

1 Answer

+3 votes
 
Best answer

It's the exact same call, i.e., once you have a FunctionSpace defined in your c++ code, you simply retrieve the dofmap via

std::shared_ptr<const GenericDofMap> dofmap = V.dofmap();
answered Jul 25, 2014 by cevito FEniCS User (5,550 points)
selected Jul 25, 2014 by BB
...