Commit 9c8a9a5c authored by Thomas Witkowski's avatar Thomas Witkowski
Browse files

Fixed bug in heat demo.

parent 1880b10d
...@@ -206,9 +206,7 @@ int main(int argc, char** argv) ...@@ -206,9 +206,7 @@ int main(int argc, char** argv)
G *boundaryFct = new G; G *boundaryFct = new G;
boundaryFct->setTimePtr(heat.getTime()); boundaryFct->setTimePtr(heat.getTime());
heat.setExactSolution(boundaryFct); heat.setExactSolution(boundaryFct);
DOFVector<double> G_dof(heatSpace.getFeSpace(), "G"); heatSpace.addDirichletBC(1, 0, 0, boundaryFct);
G_dof.interpol(boundaryFct);
heatSpace.addDirichletBC(1, 0, 0, &G_dof);
// ===== start adaption loop ===== // ===== start adaption loop =====
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment