36 #ifdef NEKTAR_USING_PETSC
47 namespace LibUtilities
58 std::string localName =
"";
59 for (
int i = 0; i < narg; ++i)
61 if (!std::strcmp(arg[i],
"--cwipi"))
63 localName = arg[i + 1];
69 cwipi_init(MPI_COMM_WORLD, localName.c_str(), &localComm);
75 #ifdef NEKTAR_USING_PETSC
77 PetscInitializeNoArguments();
79 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.