Commit 5ea4237a authored by Chris Cantwell's avatar Chris Cantwell
Browse files

Added PetscInitialize back in GlobalLinSysPETSc for OSX

parent 05bf61a5
......@@ -55,6 +55,11 @@ namespace Nektar
const boost::shared_ptr<AssemblyMap> &pLocToGloMap)
: GlobalLinSys(pKey, pExp, pLocToGloMap)
{
// Check PETSc is initialized
// For some reason, this is needed on OS X as logging is not
// initialized properly in the call within CommMpi.
PetscInitializeNoArguments();
// Create matrix
MatCreate(PETSC_COMM_WORLD, &m_matrix);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment