-
Notifications
You must be signed in to change notification settings - Fork 14
[WIP] heart problem now with stokes #211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
main/heart_stokes.cc
Outdated
| interface); \ | ||
| ParameterAcceptor::initialize(prm_file, pde_name+"_used.prm"); \ | ||
| stokes.run (); | ||
| // End macros |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where do I put the pidomus.lamdas.output_step = [&] (....)?
right here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
before you call stokes.run();
main/heart_stokes.cc
Outdated
| "piDoMUS", \ | ||
| interface); \ | ||
| ParameterAcceptor::initialize(prm_file, pde_name+"_used.prm"); \ | ||
| pidomus.lamdas.output_step = [&] (???) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are the correct parameters here?
The ones in pidomus_lambdas.h line 94?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
| ElasticProblem<3> elastic_problem(timestep, dt); | ||
| elastic_problem.run(tria); | ||
| }; | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get the following compiling error, which I don't understand:
main/heart_stokes.cc:116:31: error: binding of reference to type 'Triangulation<[2 * ...]>' to a value of type 'Triangulation<[2 * ...]>' drops qualifiers
elastic_problem.run(tria);
^~~~
include/elastic_problem.h:42:33: note: passing argument to parameter 'external_tria' here
void run (Triangulation<dim> &external_tria);
^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see PR wil2810#1
fix compilation issues + indent
fix headers
| assemble_system (); | ||
| solve (); | ||
|
|
||
| external_tria.copy_triangulation(triangulation); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately this doesn't work yet. The following error occurs while running:
Number of active cells: 640 (on 3 levels)
Number of degrees of freedom: 17988(17187+801)
[0]PETSC ERROR: ------------------------------------------------------------------------
[0]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range
...
The error doesn't occur when I comment this line.
But at least it is compiling now. Thanks again for that :)
No description provided.