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