1 # Copyright (C) 2005 OPEN CASCADE, CEA, EDF R&D, LEG
2 # PRINCIPIA R&D, EADS CCR, Lip6, BV, CEDRAT
4 ######################################################################
6 # This Python script should be executed when the shared library is #
7 # generated using SWIG 1.3 (or higher) due to the fact that older #
8 # version could not handle the wrapping of several class constructor #
10 ######################################################################
11 from libMEDMEM_Swig import *
13 medFile = "pointe.med"
14 medFile2 = "fieldCellDoubleOfpointe.me"
15 fieldName = "fieldcelldouble"
19 myField = FIEDLDOUBLE()
21 myDriver1 = myField->addDriver(MED_DRIVER,medFile,fieldName)
24 myDriver2 = myField->addDriver(MED_DRIVER,medFile2,fieldName)
25 myField.rmDriver(myDriver2)
28 myDriver3 = myMesh->addDriver(MED_DRIVER,medFile,meshName)
33 myMed.readFileStruct()
37 print "There is a problem somewhere !!"
38 print "Please consult the error standart output of the python execution !!"