Back to index

salome-med  6.5.0
Functions
MEDMEM_InvokingDriverAtObjectCreationTime.cxx File Reference
#include "MEDMEM_Exception.hxx"
#include "MEDMEM_define.hxx"
#include "MEDMEM_Field.hxx"
#include "MEDMEM_Mesh.hxx"

Go to the source code of this file.

Functions

 main ()

Function Documentation

main ( void  )

Definition at line 32 of file MEDMEM_InvokingDriverAtObjectCreationTime.cxx.

        {
  
  const char * fileName  = "pointe.med";
  const char * fieldName = "fieldcelldoublescalar";
  const char * meshName  = "maa1";
  
  try {
    
    // Test creation of drivers at object Creation time

    FIELD<double> myField (MED_DRIVER,fileName,fieldName); 
    MESH          myMesh  (MED_DRIVER,fileName,meshName);

    // Test removal of drivers
    myField.rmDriver();
    myMesh.rmDriver ();

  } catch (MEDEXCEPTION& ex){
    MESSAGE_MED(ex.what()) ;
  }
}

Here is the call graph for this function: