1
# -*- coding: utf-8 -*-
3
#-------------------------------------------------------------------------------
5
# This file is part of Code_Saturne, a general-purpose CFD tool.
7
# Copyright (C) 1998-2011 EDF S.A.
9
# This program is free software; you can redistribute it and/or modify it under
10
# the terms of the GNU General Public License as published by the Free Software
11
# Foundation; either version 2 of the License, or (at your option) any later
14
# This program is distributed in the hope that it will be useful, but WITHOUT
15
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
19
# You should have received a copy of the GNU General Public License along with
20
# this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
21
# Street, Fifth Floor, Boston, MA 02110-1301, USA.
23
#-------------------------------------------------------------------------------
26
from omniORB import CORBA
27
from FSI_ASTER_module import FSI_ASTER
29
if __name__ == '__main__':
32
orb = CORBA.ORB_init(sys.argv, CORBA.ORB_ID)
33
poa = orb.resolve_initial_references("RootPOA")
34
print "ORB and POA initialized",orb,poa
38
container=orb.string_to_object(os.getenv("SALOME_CONTAINER"))
39
containerName=os.getenv("SALOME_CONTAINERNAME")
40
instanceName=os.getenv("SALOME_INSTANCE")
42
compo=FSI_ASTER(orb,poa,container,containerName, instanceName, "FSI_ASTER")
43
comp_o = compo._this()
44
comp_iors = orb.object_to_string(comp_o)
45
print "ior aster",comp_iors
51
poaManager = poa._get_the_POAManager()
55
print "fin du composant aster standalone"