Dmitry Karpeyev <[email protected]> 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.

Attachment: pgpBoaeBmrU3Q.pgp
Description: PGP signature

Reply via email to