1 ######################################################################
3 # This Python script should be executed when the shared library is #
4 # generated using SWIG 1.3 (or higher) due to the fact that older #
5 # version could not handle the wrapping of several class constructor #
7 ######################################################################
8 from libMEDMEM_Swig import *
10 medFile = "pointe.med"
11 medFile2 = "fieldCellDoubleOfpointe.me"
12 fieldName = "fieldcelldouble"
16 myField = FIEDLDOUBLE()
18 myDriver1 = myField->addDriver(MED_DRIVER,medFile,fieldName)
21 myDriver2 = myField->addDriver(MED_DRIVER,medFile2,fieldName)
22 myField.rmDriver(myDriver2)
25 myDriver3 = myMesh->addDriver(MED_DRIVER,medFile,meshName)
30 myMed.readFileStruct()
34 print "There is a problem somewhere !!"
35 print "Please consult the error standart output of the python execution !!"