[petsc-dev] VecScatterInitializeForGPU

Dominic Meiser dmeiser at txcorp.com
Wed Jan 22 10:49:00 CST 2014


Hi,

I'm trying to understand VecScatterInitializeForGPU in 
src/vec/vec/utils/veccusp/vscatcusp.c. I don't understand why this 
function can get away with casting the fromdata and todata in the inctx 
to VecScatter_MPI_General. Don't we need to inspect the VecScatterType 
fields of the todata and fromdata?

Cheers,
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-dev mailing list