[petsc-dev] de-global variablelizing PETSc
Jed Brown
jedbrown at mcs.anl.gov
Sun Nov 10 16:01:14 CST 2013
Dmitry Karpeyev <karpeev at mcs.anl.gov> writes:
> What would happen to VecCreate(PETSC_COMM_WORLD,&v)?
VecCreate(petsclib, PetscCommWorld(petsclib), &v);
> Would v now be a collection of threadwise Vecs?
Independent vecs in each thread that calls the function (this is in no
way collective between threads, and you can "hand off" the lib and vec
contexts between threads).
> How would they sync?
The point is that they would be separate, even with separate logging and
debugging. This may not be solving the right problem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20131110/bb7b959c/attachment.sig>
More information about the petsc-dev
mailing list