36#ifdef NEKTAR_USING_PETSC
57 std::string localName =
"";
58 for (
int i = 0; i < narg; ++i)
60 if (!std::strcmp(arg[i],
"--cwipi"))
62 localName = arg[i + 1];
68 cwipi_init(MPI_COMM_WORLD, localName.c_str(), &localComm);
74#ifdef NEKTAR_USING_PETSC
76 PetscInitializeNoArguments();
78 m_type =
"Parallel MPI with CWIPI";
static CommSharedPtr create(int narg, char *arg[])
Creates an instance of this class.
static std::string className
Name of class.
virtual void v_Finalise()
CommCwipi(int narg, char *arg[])
int m_size
Number of processes.
std::string m_type
Type of communication.
virtual void v_Finalise() override
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
CommFactory & GetCommFactory()
The above copyright notice and this permission notice shall be included.