Re: [deal.II] Re: AMR , how to pass solution vector to refined mesh

2017-03-21 Thread Jaekwang Kim
Thank you!! Just got what've meant. and fixed my code properly Thanks ! Jaekwang Kim 2017년 3월 21일 화요일 오후 12시 55분 7초 UTC-4, Jean-Paul Pelteret 님의 말: > > Hi Jaekwang, > > No, you've misunderstood in that I was just showing that to you as an > example. You don't need to use that exact Vector

Re: [deal.II] Re: AMR , how to pass solution vector to refined mesh

2017-03-21 Thread Jean-Paul Pelteret
Hi Jaekwang, No, you've misunderstood in that I was just showing that to you as an example. You don't need to use that exact Vector class. You were nearly at the answer with what you've posted - you just need to read the compiler error more carefully to understand what its telling you is

Re: [deal.II] Re: AMR , how to pass solution vector to refined mesh

2017-03-21 Thread Jaekwang Kim
thank you for your response. I am trying to following this... but it seems that I have to use the class, * SolutionTransfer* to transfer block vector Without using MPI, isn't it possible to assess this class? like...

Re: [deal.II] Re: AMR , how to pass solution vector to refined mesh

2017-03-21 Thread Jean-Paul Pelteret
Dear Jaekwang, Step-31 demonstrates how to use the SolutionTransfer class with BlockVectors. In short, you need to specify the vector type as a template argument to the class. Here's how its done in that tutorial:

Re: [deal.II] Re: AMR , how to pass solution vector to refined mesh

2017-03-20 Thread Jaekwang Kim
Dear. Dr, Bangerth Adding up to this, I want to ask one more question. I was trying to transfer 'vector-valuled' solution (Block vector type) as I did for scalar solution (Vector type). but it seems that the command line *solution_transfer.prepare_for_coarsening_and_refinement(solution); *

Re: [deal.II] Re: AMR , how to pass solution vector to refined mesh

2017-03-20 Thread Jaekwang Kim
Thank you ! You just pointed out exact problem that my code had! I was not taking into constraints when I make new sparsity pattern! * DoFTools::make_sparsity_pattern(dof_handler,* *dsp,* *constraints,* *

Re: [deal.II] Re: AMR , how to pass solution vector to refined mesh

2017-03-20 Thread Wolfgang Bangerth
On 03/20/2017 10:58 AM, Jaekwang Kim wrote: I tried to assert assemble function as you suggested, but I didn't receive any error message. What make me more confuse me is the code is working with global refinement. Then are you building the sparsity pattern taking into account hanging node

Re: [deal.II] Re: AMR , how to pass solution vector to refined mesh

2017-03-20 Thread Jaekwang Kim
Thanks for your response. I tried to assert assemble function as you suggested, but I didn't receive any error message. What make me more confuse me is the code is working with global refinement. if I input 100% cells to be refined.. GridRefinement::refine_and_coarsen_fixed_number

Re: [deal.II] Re: AMR , how to pass solution vector to refined mesh

2017-03-19 Thread Wolfgang Bangerth
On 03/17/2017 08:03 AM, Jaekwang Kim wrote: After the first cycle, I am doing template voidnonlinear::refine_grid () { Vector estimated_error_per_cell (triangulation.n_active_cells()); KellyErrorEstimator::estimate (dof_handler, QGauss(3),

Re: [deal.II] Re: AMR , how to pass solution vector to refined mesh

2017-03-17 Thread Wolfgang Bangerth
On 03/16/2017 08:38 PM, Jaekwang Kim wrote: I think this two function do everything I needed... but when I run my code, I run into error message when I assemble system in second time. what might be the problem.? As the error message says, you are trying to write into a matrix entry that