<div dir="ltr"><div>Dear all,</div><div><br></div><div>I am aware that the strategy chosen by PETSc is to rely exclusively on a MPI paradigm with therefore functions, methods and routines that are not necessarily thread-safe in order not to impede the performance too much.</div><div>I had however one interrogation : what happens if, say, the user passes functions containing OpenMP pragma to wrappers like TSSetRHSFunction, or even writes a new TSAdapt containing OpenMP pragma ?</div><div>If the threads are started before the TSSolve, would we benefit from some performance increase from the pragmas in the user functions, or would it lead to instability because the PETSc functions calling the user functions are anyways not built for OpenMP and it would fail ?</div><div><br></div><div>Thank you for your insight,<br></div><div><br></div><div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><div><div><div><div>Thibault</div></div></div></div></div></div></div></div></div></div></div></div></div>