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