Back to index

salome-med  6.5.0
Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Static Private Attributes
SALOME_TEST::MEDCouplingCorbaServBasicsTestClt Class Reference

#include <MEDCouplingMeshFieldFactoryComponentClt.hxx>

Inheritance diagram for SALOME_TEST::MEDCouplingCorbaServBasicsTestClt:
Inheritance graph
[legend]
Collaboration diagram for SALOME_TEST::MEDCouplingCorbaServBasicsTestClt:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void checkBaseCorbaFetching ()
void checkContentOfFetched1DMesh ()
void checkCorbaFetching2D ()
void checkContentOfFetched2DMesh ()
void checkMultiFetchingToTestMemoryManagement ()
void checkCorbaFetching3D ()
void checkContentOfFetched3DMesh ()
void checkCorbaFetching3DSurf ()
void checkContentOfFetched3DSurfMesh ()
void checkCorbaFetching0D ()
void checkCorbaFetchingM1D ()
void checkCorbaFetchingExtruded ()
void checkCorbaFetchingCMesh ()
void checkCorbaField2DNTFetching ()
void checkCorbaField2DNTMultiFetching ()
void checkCorbaField2DNTMultiFetchingMT ()
void checkCorbaFieldNode2DNTFetching ()
void checkCorbaField3DNTFetching ()
void checkCorbaField3DSurfWTFetching ()
void checkCorbaField3DSurfCOTIFetching ()
void checkCorbaField2DLTFetching ()
void checkCorbaFieldGaussPt2DWTFetching ()
void checkCorbaFieldGaussPtNE2DWTFetching ()
void checkCorbaFieldVectorOnExtrudedWT ()
void checkCorbaFieldVectorOnCMeshWT ()
void checkCorbaFieldTemplateCellOn2D ()
void checkCorbaFieldTemplateNodeOn2D ()
void checkCorbaFieldTemplateGaussPtOn2D ()
void checkCorbaFieldTemplateGaussNEOn2D ()
void checkCorbaMultiFields1 ()
void checkCorbaArrayDouble1 ()
void checkCorbaArrayDouble2 ()
void checkCorbaArrayDouble3 ()
void checkCorbaArrayInt1 ()
void checkCorbaArrayInt2 ()
void checkCorbaArrayInt3 ()
void checkCorbaFetchingCoords1 ()
void checkCorbaMultiFields2 ()
void shutdownServer ()

Static Public Attributes

static int _argc = 0
static char ** _argv = 0
static CORBA::ORB_var _orb

Private Member Functions

 CPPUNIT_TEST_SUITE (MEDCouplingCorbaServBasicsTestClt)
 CPPUNIT_TEST (checkBaseCorbaFetching)
 CPPUNIT_TEST (checkContentOfFetched1DMesh)
 CPPUNIT_TEST (checkCorbaFetching2D)
 CPPUNIT_TEST (checkContentOfFetched2DMesh)
 CPPUNIT_TEST (checkMultiFetchingToTestMemoryManagement)
 CPPUNIT_TEST (checkCorbaFetching3D)
 CPPUNIT_TEST (checkContentOfFetched3DMesh)
 CPPUNIT_TEST (checkCorbaFetching3DSurf)
 CPPUNIT_TEST (checkContentOfFetched3DSurfMesh)
 CPPUNIT_TEST (checkCorbaFetching0D)
 CPPUNIT_TEST (checkCorbaFetchingM1D)
 CPPUNIT_TEST (checkCorbaFetchingExtruded)
 CPPUNIT_TEST (checkCorbaFetchingCMesh)
 CPPUNIT_TEST (checkCorbaField2DNTFetching)
 CPPUNIT_TEST (checkCorbaField2DNTMultiFetching)
 CPPUNIT_TEST (checkCorbaField2DNTMultiFetchingMT)
 CPPUNIT_TEST (checkCorbaFieldNode2DNTFetching)
 CPPUNIT_TEST (checkCorbaField3DNTFetching)
 CPPUNIT_TEST (checkCorbaField3DSurfWTFetching)
 CPPUNIT_TEST (checkCorbaField3DSurfCOTIFetching)
 CPPUNIT_TEST (checkCorbaField2DLTFetching)
 CPPUNIT_TEST (checkCorbaFieldGaussPt2DWTFetching)
 CPPUNIT_TEST (checkCorbaFieldGaussPtNE2DWTFetching)
 CPPUNIT_TEST (checkCorbaFieldVectorOnExtrudedWT)
 CPPUNIT_TEST (checkCorbaFieldVectorOnCMeshWT)
 CPPUNIT_TEST (checkCorbaFieldTemplateCellOn2D)
 CPPUNIT_TEST (checkCorbaFieldTemplateNodeOn2D)
 CPPUNIT_TEST (checkCorbaFieldTemplateGaussPtOn2D)
 CPPUNIT_TEST (checkCorbaFieldTemplateGaussNEOn2D)
 CPPUNIT_TEST (checkCorbaMultiFields1)
 CPPUNIT_TEST (checkCorbaArrayDouble1)
 CPPUNIT_TEST (checkCorbaArrayDouble2)
 CPPUNIT_TEST (checkCorbaArrayDouble3)
 CPPUNIT_TEST (checkCorbaArrayInt1)
 CPPUNIT_TEST (checkCorbaArrayInt2)
 CPPUNIT_TEST (checkCorbaArrayInt3)
 CPPUNIT_TEST (checkCorbaFetchingCoords1)
 CPPUNIT_TEST (checkCorbaMultiFields2)
 CPPUNIT_TEST (shutdownServer)
 CPPUNIT_TEST_SUITE_END ()

Static Private Member Functions

static void * checkCorbaField2DNTMultiFetchingMTStatic (void *stack)

Static Private Attributes

static
SALOME_TEST::MEDCouplingMeshFieldFactory_ptr 
_objC
static
ParaMEDMEM::MEDCouplingUMesh
_mesh_from_distant = 0

Detailed Description

Definition at line 38 of file MEDCouplingMeshFieldFactoryComponentClt.hxx.


Member Function Documentation

Definition at line 51 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  _orb=CORBA::ORB_init(_argc,_argv);
  std::ifstream ifs(SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildFileNameForIOR().c_str());
  std::string ior;
  ifs >> ior;
  CORBA::Object_var obj=_orb->string_to_object(ior.c_str());
  _objC=SALOME_TEST::MEDCouplingMeshFieldFactory::_narrow(obj);
  CPPUNIT_ASSERT(!CORBA::is_nil(_objC));
}

Here is the call graph for this function:

Definition at line 64 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingUMeshCorbaInterface_ptr meshPtr=_objC->get1DMesh();
  _mesh_from_distant=ParaMEDMEM::MEDCouplingUMeshClient::New(meshPtr);
  meshPtr->UnRegister();
  CORBA::release(meshPtr);
  CPPUNIT_ASSERT_EQUAL(3,_mesh_from_distant->getSpaceDimension());
  CPPUNIT_ASSERT_EQUAL(1,_mesh_from_distant->getMeshDimension());
  ParaMEDMEM::MEDCouplingUMesh *meshRef=SALOME_TEST::MEDCouplingCorbaServBasicsTest::build1DMesh();
  CPPUNIT_ASSERT(_mesh_from_distant->isEqual(meshRef,1e-12));
  meshRef->decrRef();
  _mesh_from_distant->decrRef();
}

Here is the call graph for this function:

Definition at line 88 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  ParaMEDMEM::MEDCouplingUMesh *meshRef=SALOME_TEST::MEDCouplingCorbaServBasicsTest::build2DMesh();
  CPPUNIT_ASSERT(_mesh_from_distant->isEqual(meshRef,1e-12));
  meshRef->decrRef();
  _mesh_from_distant->decrRef();
}

Here is the call graph for this function:

Definition at line 121 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  ParaMEDMEM::MEDCouplingUMesh *meshRef=SALOME_TEST::MEDCouplingCorbaServBasicsTest::build3DMesh();
  CPPUNIT_ASSERT(_mesh_from_distant->isEqual(meshRef,1e-12));
  meshRef->decrRef();
  _mesh_from_distant->decrRef();
}

Here is the call graph for this function:

Definition at line 139 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

Here is the call graph for this function:

Definition at line 461 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::DataArrayDoubleCorbaInterface_ptr fieldPtr=_objC->getArrayDouble1();
  ParaMEDMEM::DataArrayDouble *fieldCpp=ParaMEDMEM::DataArrayDoubleClient::New(fieldPtr);
  fieldPtr->UnRegister();
  CORBA::release(fieldPtr);
  //
  ParaMEDMEM::DataArrayDouble *refField=SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildArrayDouble1();
  CPPUNIT_ASSERT(fieldCpp->isEqual(*refField,1.e-12));
  refField->decrRef();
  fieldCpp->decrRef();
}

Here is the call graph for this function:

Definition at line 474 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::DataArrayDoubleCorbaInterface_ptr fieldPtr=_objC->getArrayDouble2();
  ParaMEDMEM::DataArrayDouble *fieldCpp=ParaMEDMEM::DataArrayDoubleClient::New(fieldPtr);
  fieldPtr->UnRegister();
  CORBA::release(fieldPtr);
  //
  ParaMEDMEM::DataArrayDouble *refField=SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildArrayDouble2();
  CPPUNIT_ASSERT(fieldCpp->isEqual(*refField,1.e-12));
  refField->decrRef();
  fieldCpp->decrRef();
}

Here is the call graph for this function:

Definition at line 487 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::DataArrayDoubleCorbaInterface_ptr fieldPtr=_objC->getArrayDouble3();
  ParaMEDMEM::DataArrayDouble *fieldCpp=ParaMEDMEM::DataArrayDoubleClient::New(fieldPtr);
  fieldPtr->UnRegister();
  CORBA::release(fieldPtr);
  //
  ParaMEDMEM::DataArrayDouble *refField=SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildArrayDouble3();
  CPPUNIT_ASSERT(fieldCpp->isEqual(*refField,1.e-12));
  refField->decrRef();
  fieldCpp->decrRef();
}

Here is the call graph for this function:

Definition at line 500 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::DataArrayIntCorbaInterface_ptr fieldPtr=_objC->getArrayInt1();
  ParaMEDMEM::DataArrayInt *fieldCpp=ParaMEDMEM::DataArrayIntClient::New(fieldPtr);
  fieldPtr->UnRegister();
  CORBA::release(fieldPtr);
  //
  ParaMEDMEM::DataArrayInt *refField=SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildArrayInt1();
  CPPUNIT_ASSERT(fieldCpp->isEqual(*refField));
  refField->decrRef();
  fieldCpp->decrRef();
}

Here is the call graph for this function:

Definition at line 513 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::DataArrayIntCorbaInterface_ptr fieldPtr=_objC->getArrayInt2();
  ParaMEDMEM::DataArrayInt *fieldCpp=ParaMEDMEM::DataArrayIntClient::New(fieldPtr);
  fieldPtr->UnRegister();
  CORBA::release(fieldPtr);
  //
  ParaMEDMEM::DataArrayInt *refField=SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildArrayInt2();
  CPPUNIT_ASSERT(fieldCpp->isEqual(*refField));
  refField->decrRef();
  fieldCpp->decrRef();
}

Here is the call graph for this function:

Definition at line 526 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::DataArrayIntCorbaInterface_ptr fieldPtr=_objC->getArrayInt3();
  ParaMEDMEM::DataArrayInt *fieldCpp=ParaMEDMEM::DataArrayIntClient::New(fieldPtr);
  fieldPtr->UnRegister();
  CORBA::release(fieldPtr);
  //
  ParaMEDMEM::DataArrayInt *refField=SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildArrayInt3();
  CPPUNIT_ASSERT(fieldCpp->isEqual(*refField));
  refField->decrRef();
  fieldCpp->decrRef();
}

Here is the call graph for this function:

Definition at line 147 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingUMeshCorbaInterface_ptr meshPtr=_objC->get0DMesh();
  _mesh_from_distant=ParaMEDMEM::MEDCouplingUMeshClient::New(meshPtr);
  meshPtr->UnRegister();
  CORBA::release(meshPtr);
  ParaMEDMEM::MEDCouplingUMesh *meshRef=SALOME_TEST::MEDCouplingCorbaServBasicsTest::build0DMesh();
  CPPUNIT_ASSERT_EQUAL(3,_mesh_from_distant->getSpaceDimension());
  CPPUNIT_ASSERT_EQUAL(0,_mesh_from_distant->getMeshDimension());
  CPPUNIT_ASSERT(_mesh_from_distant->isEqual(meshRef,1e-12));
  meshRef->decrRef();
  _mesh_from_distant->decrRef();
}

Here is the call graph for this function:

Definition at line 78 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingUMeshCorbaInterface_ptr meshPtr=_objC->get2DMesh();
  _mesh_from_distant=ParaMEDMEM::MEDCouplingUMeshClient::New(meshPtr);
  meshPtr->UnRegister();
  CORBA::release(meshPtr);
  CPPUNIT_ASSERT_EQUAL(2,_mesh_from_distant->getSpaceDimension());
  CPPUNIT_ASSERT_EQUAL(2,_mesh_from_distant->getMeshDimension());
}

Definition at line 111 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingUMeshCorbaInterface_ptr meshPtr=_objC->get3DMesh();
  _mesh_from_distant=ParaMEDMEM::MEDCouplingUMeshClient::New(meshPtr);
  meshPtr->UnRegister();
  CORBA::release(meshPtr);
  CPPUNIT_ASSERT_EQUAL(3,_mesh_from_distant->getSpaceDimension());
  CPPUNIT_ASSERT_EQUAL(3,_mesh_from_distant->getMeshDimension());
}

Definition at line 129 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingUMeshCorbaInterface_ptr meshPtr=_objC->get3DSurfMesh();
  _mesh_from_distant=ParaMEDMEM::MEDCouplingUMeshClient::New(meshPtr);
  meshPtr->UnRegister();
  CORBA::release(meshPtr);
  CPPUNIT_ASSERT_EQUAL(3,_mesh_from_distant->getSpaceDimension());
  CPPUNIT_ASSERT_EQUAL(2,_mesh_from_distant->getMeshDimension());
}

Definition at line 189 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingCMeshCorbaInterface_ptr meshPtr=_objC->getCMesh();
  ParaMEDMEM::MEDCouplingCMesh *meshFromDistant=ParaMEDMEM::MEDCouplingCMeshClient::New(meshPtr);
  meshPtr->UnRegister();
  CORBA::release(meshPtr);
  ParaMEDMEM::MEDCouplingCMesh *meshRef=SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildCMesh();
  CPPUNIT_ASSERT(meshFromDistant->isEqual(meshRef,1e-12));
  meshRef->decrRef();
  meshFromDistant->decrRef();
}

Here is the call graph for this function:

Definition at line 539 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingUMeshCorbaInterface_ptr meshPtr=_objC->get3DSurfMesh();
  SALOME_MED::DataArrayDoubleCorbaInterface_ptr cooPtr=meshPtr->getCoords();
  meshPtr->UnRegister();
  CORBA::release(meshPtr);
  ParaMEDMEM::DataArrayDouble *cooCpp=ParaMEDMEM::DataArrayDoubleClient::New(cooPtr);
  ParaMEDMEM::MEDCouplingUMesh *meshRef=SALOME_TEST::MEDCouplingCorbaServBasicsTest::build3DSurfMesh();
  //
  CPPUNIT_ASSERT(meshRef->getCoords()->isEqual(*cooCpp,1e-12));
  //
  cooPtr->UnRegister();
  CORBA::release(cooPtr);
  cooCpp->decrRef();
  meshRef->decrRef();
}

Here is the call graph for this function:

Definition at line 174 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingExtrudedMeshCorbaInterface_ptr meshPtr=_objC->getExtrudedMesh();
  ParaMEDMEM::MEDCouplingExtrudedMesh *meshFromDistant=ParaMEDMEM::MEDCouplingExtrudedMeshClient::New(meshPtr);
  meshPtr->UnRegister();
  CORBA::release(meshPtr);
  ParaMEDMEM::MEDCouplingUMesh *meshRef2;
  ParaMEDMEM::MEDCouplingExtrudedMesh *meshRef=SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildExtrudedMesh(meshRef2);
  CPPUNIT_ASSERT(meshFromDistant->isEqual(meshRef,1e-12));
  CPPUNIT_ASSERT(meshFromDistant->getMesh2D()->isEqual(meshRef2,1e-12));
  meshRef2->decrRef();
  meshRef->decrRef();
  meshFromDistant->decrRef();
}

Here is the call graph for this function:

Definition at line 161 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingUMeshCorbaInterface_ptr meshPtr=_objC->getM1DMesh();
  _mesh_from_distant=ParaMEDMEM::MEDCouplingUMeshClient::New(meshPtr);
  meshPtr->UnRegister();
  CORBA::release(meshPtr);
  ParaMEDMEM::MEDCouplingUMesh *meshRef=SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildM1DMesh();
  CPPUNIT_ASSERT_EQUAL(-1,_mesh_from_distant->getMeshDimension());
  CPPUNIT_ASSERT(_mesh_from_distant->isEqual(meshRef,1e-12));
  meshRef->decrRef();
  _mesh_from_distant->decrRef();
}

Here is the call graph for this function:

Definition at line 318 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr fieldPtr=_objC->getFieldScalarOn2DLT();
  ParaMEDMEM::MEDCouplingFieldDouble *fieldCpp=ParaMEDMEM::MEDCouplingFieldDoubleClient::New(fieldPtr);
  fieldPtr->UnRegister();
  CORBA::release(fieldPtr);
  double res[4];
  const double pos[2]={0.3,-0.2};
  fieldCpp->getValueOn(pos,10.,res);
  CPPUNIT_ASSERT_DOUBLES_EQUAL(25.4,res[0],1e-12);
  CPPUNIT_ASSERT_DOUBLES_EQUAL(25.04,res[1],1e-12);
  CPPUNIT_ASSERT_DOUBLES_EQUAL(25.004,res[2],1e-12);
  CPPUNIT_ASSERT_DOUBLES_EQUAL(25.0004,res[3],1e-12);
  ParaMEDMEM::MEDCouplingFieldDouble *refField=SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildFieldScalarOn2DLT();
  CPPUNIT_ASSERT(fieldCpp->isEqual(refField,1.e-12,1.e-15));
  int dt,it;
  CPPUNIT_ASSERT_DOUBLES_EQUAL(6.7,fieldCpp->getStartTime(dt,it),1e-14);
  CPPUNIT_ASSERT_EQUAL(25,dt);
  CPPUNIT_ASSERT_EQUAL(26,it);
  CPPUNIT_ASSERT_DOUBLES_EQUAL(17.2,fieldCpp->getEndTime(dt,it),1e-14);
  CPPUNIT_ASSERT_EQUAL(125,dt);
  CPPUNIT_ASSERT_EQUAL(126,it);
  refField->decrRef();
  fieldCpp->decrRef();
}

Here is the call graph for this function:

Definition at line 201 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr fieldPtr=_objC->getFieldScalarOn2DNT();
  ParaMEDMEM::MEDCouplingFieldDouble *fieldCpp=ParaMEDMEM::MEDCouplingFieldDoubleClient::New(fieldPtr);
  fieldPtr->UnRegister();
  CORBA::release(fieldPtr);
  ParaMEDMEM::MEDCouplingFieldDouble *refField=SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildFieldScalarOn2DNT();
  CPPUNIT_ASSERT(fieldCpp->isEqual(refField,1.e-12,1.e-15));
  CPPUNIT_ASSERT_THROW(fieldCpp->setTime(1.23,4,5),INTERP_KERNEL::Exception);
  refField->decrRef();
  fieldCpp->decrRef();
}

Here is the call graph for this function:

Definition at line 214 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr fieldPtr=_objC->getFieldScalarOn2DNT();
  ParaMEDMEM::MEDCouplingFieldDouble *fieldCpp=ParaMEDMEM::MEDCouplingFieldDoubleClient::New(fieldPtr);
  ParaMEDMEM::MEDCouplingFieldDouble *fieldCpp2=ParaMEDMEM::MEDCouplingFieldDoubleClient::New(fieldPtr);
  fieldPtr->UnRegister();
  CORBA::release(fieldPtr);
  CPPUNIT_ASSERT(fieldCpp->isEqual(fieldCpp2,1.e-12,1.e-15));
  fieldCpp->decrRef();
  fieldCpp2->decrRef();
}

Here is the call graph for this function:

Definition at line 236 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  const int nbOfThreads=8;
  SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr fieldPtr=_objC->getFieldScalarOn2DNT();
  //doing nbOfThreads-1 Register.
  char *ior=_orb->object_to_string(fieldPtr);
  pthread_t threads[nbOfThreads];
  ParaMEDMEM::MEDCouplingFieldDouble *rets[nbOfThreads];
  for(int i=0;i<nbOfThreads;i++)
    pthread_create(&threads[i],0,checkCorbaField2DNTMultiFetchingMTStatic,ior);
  for(int i=0;i<nbOfThreads;i++)
    pthread_join(threads[i],(void **)&rets[i]);
  for(int i=0;i<nbOfThreads-1;i++)
    CPPUNIT_ASSERT(rets[i]->isEqual(rets[i+1],1.e-12,1.e-15));
  for(int i=0;i<nbOfThreads;i++)
    rets[i]->decrRef();
  fieldPtr->UnRegister();
  CORBA::release(fieldPtr);
  CORBA::string_free(ior);
}

Definition at line 226 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  char *stackS=(char *)stack;
  CORBA::Object_var obj=_orb->string_to_object(stackS);
  SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr fieldPtr=SALOME_MED::MEDCouplingFieldDoubleCorbaInterface::_narrow(obj);
  ParaMEDMEM::MEDCouplingFieldDouble *fieldCpp=ParaMEDMEM::MEDCouplingFieldDoubleClient::New(fieldPtr);
  CORBA::release(fieldPtr);
  return fieldCpp;
}

Here is the call graph for this function:

Definition at line 270 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr fieldPtr=_objC->getFieldScalarOn3DNT();
  ParaMEDMEM::MEDCouplingFieldDouble *fieldCpp=ParaMEDMEM::MEDCouplingFieldDoubleClient::New(fieldPtr);
  fieldPtr->UnRegister();
  CORBA::release(fieldPtr);
  ParaMEDMEM::MEDCouplingFieldDouble *refField=SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildFieldScalarOn3DNT();
  CPPUNIT_ASSERT(fieldCpp->isEqual(refField,1.e-12,1.e-15));
  CPPUNIT_ASSERT_THROW(fieldCpp->setTime(1.23,4,5),INTERP_KERNEL::Exception);
  refField->decrRef();
  fieldCpp->decrRef();
}

Here is the call graph for this function:

Definition at line 299 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr fieldPtr=_objC->getFieldScalarOn3DSurfCOTI();
  ParaMEDMEM::MEDCouplingFieldDouble *fieldCpp=ParaMEDMEM::MEDCouplingFieldDoubleClient::New(fieldPtr);
  fieldPtr->UnRegister();
  CORBA::release(fieldPtr);
  ParaMEDMEM::MEDCouplingFieldDouble *refField=SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildFieldScalarOn3DSurfCOTI();
  CPPUNIT_ASSERT(fieldCpp->isEqual(refField,1.e-12,1.e-15));
  int dt,it;
  fieldCpp->getStartTime(dt,it);
  CPPUNIT_ASSERT_EQUAL(1,dt);
  CPPUNIT_ASSERT_EQUAL(4,it);
  fieldCpp->getEndTime(dt,it);
  CPPUNIT_ASSERT_EQUAL(2,dt);
  CPPUNIT_ASSERT_EQUAL(8,it);
  refField->decrRef();
  fieldCpp->decrRef();
}

Here is the call graph for this function:

Definition at line 283 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr fieldPtr=_objC->getFieldScalarOn3DSurfWT();
  ParaMEDMEM::MEDCouplingFieldDouble *fieldCpp=ParaMEDMEM::MEDCouplingFieldDoubleClient::New(fieldPtr);
  fieldPtr->UnRegister();
  CORBA::release(fieldPtr);
  ParaMEDMEM::MEDCouplingFieldDouble *refField=SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildFieldScalarOn3DSurfWT();
  CPPUNIT_ASSERT(fieldCpp->isEqual(refField,1.e-12,1.e-15));
  int dt,it;
  fieldCpp->getTime(dt,it);
  CPPUNIT_ASSERT_EQUAL(1,dt);
  CPPUNIT_ASSERT_EQUAL(4,it);
  refField->decrRef();
  fieldCpp->decrRef();
}

Here is the call graph for this function:

Definition at line 344 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr fieldPtr=_objC->getFieldGaussPt2DWT();
  ParaMEDMEM::MEDCouplingFieldDouble *fieldCpp=ParaMEDMEM::MEDCouplingFieldDoubleClient::New(fieldPtr);
  fieldPtr->UnRegister();
  CORBA::release(fieldPtr);
  //
  ParaMEDMEM::MEDCouplingFieldDouble *refField=SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildFieldGaussPt2DWT();
  CPPUNIT_ASSERT(fieldCpp->isEqual(refField,1.e-12,1.e-15));
  refField->decrRef();
  fieldCpp->decrRef();
}

Here is the call graph for this function:

Definition at line 357 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr fieldPtr=_objC->getFieldGaussPtNE2DWT();
  ParaMEDMEM::MEDCouplingFieldDouble *fieldCpp=ParaMEDMEM::MEDCouplingFieldDoubleClient::New(fieldPtr);
  fieldPtr->UnRegister();
  CORBA::release(fieldPtr);
  //
  ParaMEDMEM::MEDCouplingFieldDouble *refField=SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildFieldGaussPtNE2DWT();
  CPPUNIT_ASSERT(fieldCpp->isEqual(refField,1.e-12,1.e-15));
  refField->decrRef();
  fieldCpp->decrRef();
}

Here is the call graph for this function:

Definition at line 257 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr fieldPtr=_objC->getFieldNodeScalarOn2DNT();
  ParaMEDMEM::MEDCouplingFieldDouble *fieldCpp=ParaMEDMEM::MEDCouplingFieldDoubleClient::New(fieldPtr);
  fieldPtr->UnRegister();
  CORBA::release(fieldPtr);
  ParaMEDMEM::MEDCouplingFieldDouble *refField=SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildFieldNodeScalarOn2DNT();
  CPPUNIT_ASSERT(fieldCpp->isEqual(refField,1.e-12,1.e-15));
  CPPUNIT_ASSERT_THROW(fieldCpp->setTime(1.23,4,5),INTERP_KERNEL::Exception);
  refField->decrRef();
  fieldCpp->decrRef();
}

Here is the call graph for this function:

Definition at line 396 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingFieldTemplateCorbaInterface_ptr fieldPtr=_objC->getFieldTemplateCellOn2D();
  ParaMEDMEM::MEDCouplingFieldTemplate *fieldCpp=ParaMEDMEM::MEDCouplingFieldTemplateClient::New(fieldPtr);
  fieldPtr->UnRegister();
  CORBA::release(fieldPtr);
  //
  ParaMEDMEM::MEDCouplingFieldTemplate *refField=SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildFieldTemplateCellOn2D();
  CPPUNIT_ASSERT(fieldCpp->isEqual(refField,1.e-12,1.e-15));
  refField->decrRef();
  fieldCpp->decrRef();
}

Here is the call graph for this function:

Definition at line 435 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingFieldTemplateCorbaInterface_ptr fieldPtr=_objC->getFieldTemplateGaussNEOn2D();
  ParaMEDMEM::MEDCouplingFieldTemplate *fieldCpp=ParaMEDMEM::MEDCouplingFieldTemplateClient::New(fieldPtr);
  fieldPtr->UnRegister();
  CORBA::release(fieldPtr);
  //
  ParaMEDMEM::MEDCouplingFieldTemplate *refField=SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildFieldTemplateGaussNEOn2D();
  CPPUNIT_ASSERT(fieldCpp->isEqual(refField,1.e-12,1.e-15));
  refField->decrRef();
  fieldCpp->decrRef();
}

Here is the call graph for this function:

Definition at line 422 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingFieldTemplateCorbaInterface_ptr fieldPtr=_objC->getFieldTemplateGaussPtOn2D();
  ParaMEDMEM::MEDCouplingFieldTemplate *fieldCpp=ParaMEDMEM::MEDCouplingFieldTemplateClient::New(fieldPtr);
  fieldPtr->UnRegister();
  CORBA::release(fieldPtr);
  //
  ParaMEDMEM::MEDCouplingFieldTemplate *refField=SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildFieldTemplateGaussPtOn2D();
  CPPUNIT_ASSERT(fieldCpp->isEqual(refField,1.e-12,1.e-15));
  refField->decrRef();
  fieldCpp->decrRef();
}

Here is the call graph for this function:

Definition at line 409 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingFieldTemplateCorbaInterface_ptr fieldPtr=_objC->getFieldTemplateNodeOn2D();
  ParaMEDMEM::MEDCouplingFieldTemplate *fieldCpp=ParaMEDMEM::MEDCouplingFieldTemplateClient::New(fieldPtr);
  fieldPtr->UnRegister();
  CORBA::release(fieldPtr);
  //
  ParaMEDMEM::MEDCouplingFieldTemplate *refField=SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildFieldTemplateNodeOn2D();
  CPPUNIT_ASSERT(fieldCpp->isEqual(refField,1.e-12,1.e-15));
  refField->decrRef();
  fieldCpp->decrRef();
}

Here is the call graph for this function:

Definition at line 383 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr fieldPtr=_objC->getFieldVectorOnCMeshWT();
  ParaMEDMEM::MEDCouplingFieldDouble *fieldCpp=ParaMEDMEM::MEDCouplingFieldDoubleClient::New(fieldPtr);
  fieldPtr->UnRegister();
  CORBA::release(fieldPtr);
  //
  ParaMEDMEM::MEDCouplingFieldDouble *refField=SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildFieldVectorOnCMeshWT();
  CPPUNIT_ASSERT(fieldCpp->isEqual(refField,1.e-12,1.e-15));
  refField->decrRef();
  fieldCpp->decrRef();
}

Here is the call graph for this function:

Definition at line 370 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingFieldDoubleCorbaInterface_ptr fieldPtr=_objC->getFieldVectorOnExtrudedWT();
  ParaMEDMEM::MEDCouplingFieldDouble *fieldCpp=ParaMEDMEM::MEDCouplingFieldDoubleClient::New(fieldPtr);
  fieldPtr->UnRegister();
  CORBA::release(fieldPtr);
  //
  ParaMEDMEM::MEDCouplingFieldDouble *refField=SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildFieldVectorOnExtrudedWT();
  CPPUNIT_ASSERT(fieldCpp->isEqual(refField,1.e-12,1.e-15));
  refField->decrRef();
  fieldCpp->decrRef();
}

Here is the call graph for this function:

Definition at line 448 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingMultiFieldsCorbaInterface_ptr fieldPtr=_objC->getMultiFields1();
  ParaMEDMEM::MEDCouplingMultiFields *fieldCpp=ParaMEDMEM::MEDCouplingMultiFieldsClient::New(fieldPtr);
  fieldPtr->UnRegister();
  CORBA::release(fieldPtr);
  //
  ParaMEDMEM::MEDCouplingMultiFields *refField=SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildMultiFields1();
  CPPUNIT_ASSERT(fieldCpp->isEqual(refField,1.e-12,1.e-15));
  refField->decrRef();
  fieldCpp->decrRef();
}

Here is the call graph for this function:

Definition at line 556 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  SALOME_MED::MEDCouplingFieldOverTimeCorbaInterface_ptr fotPtr=_objC->getMultiFields2();
  ParaMEDMEM::MEDCouplingFieldOverTimeClient *fotc=ParaMEDMEM::MEDCouplingFieldOverTimeClient::New(fotPtr);
  fotPtr->UnRegister();
  CORBA::release(fotPtr);
  //
  ParaMEDMEM::MEDCouplingFieldOverTime *refField=SALOME_TEST::MEDCouplingCorbaServBasicsTest::buildMultiFields2();
  CPPUNIT_ASSERT(fotc->isEqual(refField,1.e-12,1.e-15));
  refField->decrRef();
  std::vector<double> ts=fotc->getTimeSteps();
  CPPUNIT_ASSERT_EQUAL(6,(int)ts.size());
  const double expected[6]={0.2,0.7,1.2,1.35,1.7,2.7};
  for(int i=0;i<6;i++)
    CPPUNIT_ASSERT_DOUBLES_EQUAL(expected[i],ts[i],1e-12);
  fotc->decrRef();
}

Here is the call graph for this function:

Definition at line 96 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  for(int i=0;i<1000;i++)
    {
      SALOME_MED::MEDCouplingUMeshCorbaInterface_ptr meshPtr=_objC->get2DMesh();
      _mesh_from_distant=ParaMEDMEM::MEDCouplingUMeshClient::New(meshPtr);
      meshPtr->UnRegister();
      CORBA::release(meshPtr);
      ParaMEDMEM::MEDCouplingUMesh *meshRef=SALOME_TEST::MEDCouplingCorbaServBasicsTest::build2DMesh();
      CPPUNIT_ASSERT(_mesh_from_distant->isEqual(meshRef,1e-12));
      meshRef->decrRef();
      _mesh_from_distant->decrRef();
    }
}

Here is the call graph for this function:

Definition at line 574 of file MEDCouplingMeshFieldFactoryComponentClt.cxx.

{
  _objC->shutdownOrb();
}

Member Data Documentation

Definition at line 127 of file MEDCouplingMeshFieldFactoryComponentClt.hxx.

Definition at line 128 of file MEDCouplingMeshFieldFactoryComponentClt.hxx.

Definition at line 125 of file MEDCouplingMeshFieldFactoryComponentClt.hxx.

SALOME_TEST::MEDCouplingMeshFieldFactory_ptr SALOME_TEST::MEDCouplingCorbaServBasicsTestClt::_objC [static, private]

Definition at line 124 of file MEDCouplingMeshFieldFactoryComponentClt.hxx.

Definition at line 129 of file MEDCouplingMeshFieldFactoryComponentClt.hxx.


The documentation for this class was generated from the following files: