Rajat,

1. After the p:d:triangulation is created and 
> triangulation.global_refine(2) is used, the locally owned cells on each 
> mesh will divide in 2^dim elements each but does that also mean that the 
> ghost cells or artificial cells on each processor also gets  refined ?
>
All ghost cells look the same as on the owning processor while this is not 
true for artificial cells. When the mesh is refined a new partitioning 
between processors is used. Therefore, ghost cells and artificial are not 
really refined but set accordingly after the mesh is refined.
 

> 2. To move the ghost cells on the domain as well, is it just sufficient to 
>> replace the* if condition* above  with
>
> if (cell->is_locally_owned())  => if (cell->is_ghost())   ?
> and the displacement is a ghosted vector.
>
You don't need to do this yourself. If you are using a 
parallel::distributed Triangulation and move vertices that are in someone's 
ghost layer, you should call 
Triangulation::communicate_locally_moved_vertices [1] to have a consistent 
mesh. You need to be careful if you want to refine the mesh
after you have moved vertices as noted in the documentary of that function.

Best,
Daniel

[1] 
https://www.dealii.org/8.4.1/doxygen/deal.II/classparallel_1_1distributed_1_1Triangulation.html#a247598f1323a9f847832e60d6c840469
 

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to