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 fieldName = "fieldcelldouble"
15 print "Creation of MESH object"
16 myMesh = MESH(MED_DRIVER,medFile,meshName)
18 print "Creation of MED object"
19 myMed = MED(MED_DRIVER,medFile)
21 print "Test the driver removal dor MESH"
24 print "Test the driver removal dor MED"
27 print "End of Python script"
30 print "There is a problem somewhere !!"
31 print "Consult the error standart output of the python execution !!"