Hi Jaekwang,

The error message is pointing you to the fact that when you call run() a 
second time you end up trying to rebuild the triangulation on top of the 
one that you have the first time run() was called. There are a few ways 
that you can work around this. Here are two suggestions:

1. Create a new instance of the laplace_problem each time you change the 
boundary value

  {

   bvalue = 1;

   Step4<2> laplace_problem_2d;

   laplace_problem_2d.run ();
  }

  {  

   bvalue = 2;
  Step4<2> laplace_problem_2d;

   laplace_problem_2d.run ();

 }


2. Separate the run() and make_grid() calls.

  {

   Step4<2> laplace_problem_2d;
  laplace_problem_2d.make_grid ();

 
   bvalue = 1;
   laplace_problem_2d.run ();//Remove make_grid() from run()

     

   bvalue = 2;

   laplace_problem_2d.run ();

 

 }

You could of change your boundary value in other way, such as in a for loop 
or using a MultipleParameterLoop 
<https://www.dealii.org/8.4.1/doxygen/deal.II/classMultipleParameterLoop.html>
.

I hope this helps you.

Regards,
Jean-Paul

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to