Skip to content
Snippets Groups Projects
Commit a5d46fca authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Assemble a 2D function

parent 5937c5b7
No related branches found
No related tags found
No related merge requests found
......@@ -171,6 +171,22 @@ int main() {
neumannBoundaryAssembler, b,
true); // resize the output vector and zero all of its entries
}
{ // constant 2D function
std::vector<SmallVector> b;
SmallVector SampleVector;
SampleVector[0] = 1;
SampleVector[1] = 2;
ConstantFunction<SmallVector, SmallVector> fNeumann(SampleVector);
NeumannBoundaryAssembler<GridType, SmallVector>
neumannBoundaryAssembler(fNeumann);
BoundaryFunctionalAssembler<P1Basis> boundaryFunctionalAssembler(
p1Basis, neumannBoundary);
boundaryFunctionalAssembler.assemble(
neumannBoundaryAssembler, b,
true); // resize the output vector and zero all of its entries
}
}
{ // experiment with convex problems and the like
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment