To have OpenMP available from the PETSc make system you need to have 
--with-openmp with the .PETSc /configure options


> On Oct 25, 2023, at 11:09 AM, Qiyue Lu <[email protected]> wrote:
> 
> Hello,
> I have an in-house code enabled OpenMP and it works. Now I am trying to 
> incorporate PETSc as the linear solver and build together using the building 
> rules in $PETSC_HOME/lib/petsc/conf/rules. However, I found the OpenMP part 
> doesn't work anymore. 
> Should I re-configure the petsc installation with --with-openmp=1 option? I 
> wonder are the building rules affected by this missing option?
> 
> Thanks,
> Qiyue Lu

Reply via email to