Skip to content

Conversation

@wil2810
Copy link

@wil2810 wil2810 commented Jul 7, 2016

No description provided.

interface); \
ParameterAcceptor::initialize(prm_file, pde_name+"_used.prm"); \
stokes.run ();
// End macros
Copy link
Author

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?

Copy link
Contributor

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();

@asartori86 asartori86 changed the title heart problem now with stokes [WIP] heart problem now with stokes Jul 8, 2016
"piDoMUS", \
interface); \
ParameterAcceptor::initialize(prm_file, pde_name+"_used.prm"); \
pidomus.lamdas.output_step = [&] (???) \
Copy link
Author

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?

Copy link
Contributor

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);
};

Copy link
Author

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);
                                ^

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see PR wil2810#1

assemble_system ();
solve ();

external_tria.copy_triangulation(triangulation);
Copy link
Author

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants