[petsc-users] Error "Attempting to use an MPI routine before initializing MPICH" after compiling PETSc with Intel MPI and GCC

Roland Richter roland.richter at ntnu.no
Mon Oct 11 05:11:02 CDT 2021


Hei,

the attached test case works fine when compiled with Intel MPI and g++,
thereby confirming that the compiler should work in general. But all
examples provided by PETSc fail with the compiler mentioned above. Thus,
I don't think that that line is related to those issues.

Regards,

Roland Richter

Am 11.10.21 um 12:08 schrieb Stefano Zampini:
> Try removing line 15
>
> boost_procs = boost::thread::physical_concurrency();
>
> Usually these errors are caused by  destructors called when objects go out of scope
>
>> On Oct 11, 2021, at 12:23 PM, Roland Richter <roland.richter at ntnu.no> wrote:
>>
>> <main.cpp>


More information about the petsc-users mailing list