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

[Cleanup] Rename: dirichletCondition -> velocityDirichletCondition

parent 4f5dea16
No related branches found
No related tags found
No related merge requests found
...@@ -248,7 +248,8 @@ int main(int argc, char *argv[]) { ...@@ -248,7 +248,8 @@ int main(int argc, char *argv[]) {
using FunctionType = Dune::VirtualFunction<double, double>; using FunctionType = Dune::VirtualFunction<double, double>;
SharedPointerMap<std::string, FunctionType> functions; SharedPointerMap<std::string, FunctionType> functions;
initPython(functions); initPython(functions);
auto const &velocityDirichletFunction = functions.get("dirichletCondition"); auto const &velocityDirichletFunction =
functions.get("velocityDirichletCondition");
auto const &neumannFunction = functions.get("neumannCondition"); auto const &neumannFunction = functions.get("neumannCondition");
// Set up normal stress, mass matrix, and gravity functional // Set up normal stress, mass matrix, and gravity functional
......
...@@ -2,11 +2,11 @@ class neumannCondition: ...@@ -2,11 +2,11 @@ class neumannCondition:
def __call__(self, x): def __call__(self, x):
return 0 return 0
class dirichletCondition: class velocityDirichletCondition:
def __call__(self, x): def __call__(self, x):
return 2e-4 return 2e-4
Functions = { Functions = {
'neumannCondition' : neumannCondition(), 'neumannCondition' : neumannCondition(),
'dirichletCondition' : dirichletCondition() 'velocityDirichletCondition' : velocityDirichletCondition()
} }
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