X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FCALCULATOR%2FCALCULATOR_TEST.py;h=656f35e3c1584ee0a88d7c3da6efc7dc78e82c84;hb=6bd5fcba30a4ad47bddc09fd15dc052f3b8ccbb3;hp=c2a573c0d74c9c55fc31def6c59cdd0eb11f78b3;hpb=fd30fdb7fe3ef3e6773979a4d6876271100a8fba;p=samples%2Fcalculator.git diff --git a/src/CALCULATOR/CALCULATOR_TEST.py b/src/CALCULATOR/CALCULATOR_TEST.py index c2a573c..656f35e 100644 --- a/src/CALCULATOR/CALCULATOR_TEST.py +++ b/src/CALCULATOR/CALCULATOR_TEST.py @@ -1,7 +1,39 @@ +# Copyright (C) 2005 CEA/DEN, EDF R&D +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +# +# See http://www.salome-platform.org/ +# +from omniORB import CORBA + import salome import SALOME import SALOME_MED +#CCRT : +import os +import Engines +import LifeCycleCORBA + +host = os.getenv( 'HOST' ) + +orb = CORBA.ORB_init([''], CORBA.ORB_ID) + +lcc = LifeCycleCORBA.LifeCycleCORBA(orb) +#endCCRT + ################ GET A MED FIELD FROM FILE pointe.med ################### # # This test program is based on the field named fieldcelldoublevector in @@ -14,7 +46,8 @@ fieldname = "fieldcelldoublescalar" # Launch the Med Component and use it to load into memory the test field print "Launch the Med Component: " -med_comp = salome.lcc.FindOrLoadComponent("FactoryServer", "MED") +#CCRTmed_comp = salome.lcc.FindOrLoadComponent("FactoryServer", "MED") +med_comp = lcc.FindOrLoadComponent("FactoryServer", "MED") # Get a Corba field proxy on the distant field (located in the med_comp server). try: