<div dir="ltr">Hi,<br><br>when using the snes/ex12 example <a href="https://bitbucket.org/petsc/petsc/src/f5476a2b443e0eedb22d31cb1b2d85b9b918f73f/src/snes/examples/tutorials/ex12.c?at=master">https://bitbucket.org/petsc/petsc/src/f5476a2b443e0eedb22d31cb1b2d85b9b918f73f/src/snes/examples/tutorials/ex12.c?at=master</a><br>with<br><br>-variable_coefficient field  -petscfe_type opencl -mat_petscfe_type opencl<br><br>and<br><br>-dm_vec_type  viennacl -dm_mat_type seqaijviennacl -mat_type seqaijviennacl<br><br>will PetscFEIntegrateResidual_OpenCL transfer the residual vector directly to the<br>viennacl datastructures on the GPU for the solve ?  <br>is the output residual of PetscFEIntegrateResidual_OpenCL a vector on the CPU ? <br><br><br>thanks,<br>David<br><br><br><br></div>