Back to index

salome-kernel  6.5.0
Functions
TestMPIComponentEngine.cxx File Reference
#include <mpi.h>
#include "utilities.h"
#include "TestMPIComponentEngine.hxx"

Go to the source code of this file.

Functions

PortableServer::ObjectId * TestMPIComponentEngine_factory (CORBA::ORB_ptr orb, PortableServer::POA_ptr poa, PortableServer::ObjectId *contId, const char *instanceName, const char *interfaceName)

Function Documentation

PortableServer::ObjectId* TestMPIComponentEngine_factory ( CORBA::ORB_ptr  orb,
PortableServer::POA_ptr  poa,
PortableServer::ObjectId *  contId,
const char *  instanceName,
const char *  interfaceName 
)

Definition at line 74 of file TestMPIComponentEngine.cxx.

  {
    int numproc;
    bool regist;
    TestMPIComponentEngine * myTestMPIComponent;

    MESSAGE("[" << numproc << "] PortableServer::ObjectId * TestMPIComponentEngine_factory()");
    SCRUTE(interfaceName);
    MPI_Comm_rank( MPI_COMM_WORLD, &numproc );
    if(numproc==0)
      regist = true;
    else
      regist = false;

    myTestMPIComponent 
      = new TestMPIComponentEngine(orb, poa, contId, instanceName, interfaceName,regist);
    return myTestMPIComponent->getId() ;
  }