Skip to content
Snippets Groups Projects
Commit 7cef2174 authored by Lisa Julia Nebel's avatar Lisa Julia Nebel
Browse files

Only print Neumann-Values once, print out number of surface shell vertices

parent 1869f961
No related branches found
No related tags found
1 merge request!32Minor improvements
......@@ -256,8 +256,10 @@ int main (int argc, char *argv[]) try
auto neumannBoundary = std::make_shared<BoundaryPatch<GridView>>(gridView, neumannVertices);
BoundaryPatch<GridView> surfaceShellBoundary(gridView, surfaceShellVertices);
if (mpiHelper.rank()==0)
if (mpiHelper.rank()==0) {
std::cout << "Neumann boundary has " << neumannBoundary->numFaces() << " faces\n";
std::cout << "Shell boundary has " << surfaceShellBoundary.numFaces() << " faces\n";
}
BitSetVector<1> dirichletNodes(feBasis.size(), false);
......@@ -360,8 +362,7 @@ int main (int argc, char *argv[]) try
#if DUNE_VERSION_LT(DUNE_ELASTICITY, 2, 8)
std::shared_ptr<NeumannFunction> neumannFunction;
neumannFunction = std::make_shared<NeumannFunction>(parameterSet.get<FieldVector<double,dim> >("neumannValues"),
homotopyParameter);
neumannFunction = std::make_shared<NeumannFunction>(neumannValues, homotopyParameter);
#else
// A constant vector-valued function, for simple Neumann boundary values
std::shared_ptr<std::function<Dune::FieldVector<double,dim>(Dune::FieldVector<double,dim>)>> neumannFunctionPtr;
......
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