[petsc-users] DMDA halo exchange
Dominic Meiser
dmeiser at txcorp.com
Tue Mar 31 10:12:35 CDT 2015
Hi,
I have a DMDA for a structured grid in a 3D FDTD calculation. What is
the most efficient way to update the ghost regions after each time step?
Currently I update a global vector and then I scatter to a local vector
using DMGlobalToLocalBegin/End for the next time step. I also tried
DMLocalToLocal with the same source and target vector and that appears
to be slightly faster, perhaps due to better cache usage in the copy of
the owned region. Ideally I would like to update just the ghost cells
from the owned regions. Is there a good way to do that? Something
similar to VecGhostUpdateBegin/End?
Thanks,
Dominic
--
Dominic Meiser
Tech-X Corporation
5621 Arapahoe Avenue
Boulder, CO 80303
USA
Telephone: 303-996-2036
Fax: 303-448-7756
www.txcorp.com
More information about the petsc-users
mailing list