[petsc-dev] PETSC_COMM_WORLD not a PETSc communicator

Pierre Jolivet pierre at joliv.et
Thu Aug 12 11:05:23 CDT 2021


Hello,
Is there a specific reason why PETSC_COMM_WORLD is not a PETSc communicator, i.e., has no Petsc_Counter_keyval attached?
ierr = PetscOmpCtrlCreate(PETSC_COMM_WORLD,nthreads,&ctrl);CHKERRQ(ierr);
yields
[0]PETSC ERROR: Bad MPI communicator supplied must be a PETSc communicator
[0]PETSC ERROR: #1 PetscShmCommGet() at src/sys/utils/mpishm.c:60
[0]PETSC ERROR: #2 PetscOmpCtrlCreate() at src/sys/utils/mpishm.c:340

Thanks,
Pierre


More information about the petsc-dev mailing list