include ../../makefile.inc
+MED2HOME=/local/cchris/pkg/med235/install
+
ASTER_INSTALL=$(ASTER_ROOT)/$(ASTER_VERSION)
ASTER_PUB=$(ASTER_ROOT)/public
ASTER_OUTILS=$(ASTER_ROOT)/outils
+MUMPS=-L$(ASTER_PUB)/mumps-4.9.2/lib -ldmumps -lzmumps -lsmumps -lcmumps -lmumps_common -lpord -lmpiseq
+METIS=-L$(ASTER_PUB)/metis-4.0/lib -lmetis
+
+
ASTER_LIBS = -L$(ASTER_INSTALL)/lib -laster \
- -L$(ASTER_PUB)/scotch_4.0/bin -lscotch -lscotcherr \
- -L/local/chris/pkg/med23/install/lib -lmed \
+ $(MUMPS) $(METIS) \
+ -L$(MED2HOME)/lib -lmed \
-lferm -llapack -lhdf5
KERNEL_INCLUDES=-I$(KERNEL_ROOT_DIR)/include/salome
FC=gfortran
LD=gfortran
-FFLAGS=
+FFLAGS=-fopenmp -fdefault-double-8 -fdefault-integer-8 -fdefault-real-8
CC=gcc
SOURCES= src/op0078.f src/op0189.f src/op0181.f
OBJETS=op0078.o op0189.o op0181.o
cp -rf commande/cata.py* bibpyt/Cata
commande/cata.py:$(CATAPY)
- ./make_cata $(ASTER_ROOT)/ASTK/ASTK_SERV/bin/as_run $(ASTER_VERSION)
+ ./make_cata $(ASTER_ROOT)/bin/as_run $(ASTER_VERSION)
astermodule:astermodule.so pyth
cp -rf astermodule.so bibpyt
op0181.o:src/op0181.f
$(FC) -c -fpic $(FFLAGS) $(KERNEL_INCLUDES) src/op0181.f
astermodule.so: $(OBJETS)
- $(LD) -shared -o $@ $(OBJETS) $(KERNEL_LIBS) $(ASTER_LIBS)
+ $(LD) -shared $(FFLAGS) -o $@ $(OBJETS) $(KERNEL_LIBS) $(ASTER_LIBS)
clean:
rm -rf *.o *.so bibpyt commande/cata.py* make-cmd commande
# See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
#
+ROOT=/local/cchris/Salome/YACSGEN/V6/YACSGEN/Examples/ast2
+
cat > temp.comm << END
END
cat > temp.export << END
P actions make_etude
-P version STA10.1
+P version STA10.3
P nomjob salome
P ncpus 1
A memjeveux 4.000000
P soumbtc oui
P consbtc oui
-F conf /local/cchris/Salome/YACSGEN/V5/YACSGEN/Examples/ast2/install/share/salome/resources/astmod/caster_config.txt D 0
+F conf $ROOT/install/share/salome/resources/astmod/caster_config.txt D 0
F comm $PWD/temp.comm D 1
-F exec /local/cchris/Salome/YACSGEN/V5/YACSGEN/Examples/ast2/myaster/aster.exe D 0
-R cmde /local/cchris/Salome/YACSGEN/V5/YACSGEN/Examples/ast2/myaster/commande D 0
+F exec $ROOT/myaster/aster.exe D 0
+R cmde $ROOT/myaster/commande D 0
F mess $PWD/messages R 6
F resu $PWD/resu R 8
F erre $PWD/erre R 9
END
-/local/cchris/Aster/V10.1/aster/ASTK/ASTK_SERV/bin/as_run temp.export
+/local/cchris/Aster/V10.3/aster/bin/as_run temp.export
+sleep 5
+echo "Fin du script"
#
ID_PERF | id | - | claui2c6
#
-ENV_SH | env | - | /local/cchris/Aster/V10.1/aster/STA10.1/profile.sh
+ENV_SH | env | - | /local/cchris/Aster/V10.3/aster/STA10.3/profile.sh
#
LIB | ar | ? | /usr/bin/ar -rv
#
-BIBL | python | 2.4 | -L/usr/lib -L/usr/lib/python2.5/config -lpython2.5
-BIBL | med | 2.3.5 | -L/local/cchris/Aster/V10.1/aster/public/med-2.3.6/lib -lmed
-BIBL | hdf5 | 1.6.5 | -L/usr/lib -lhdf5
+BIBL | python | 2.4 | -L/local/cchris/pkg/python2.7/install/lib -L/local/cchris/pkg/python2.7/install/lib/python2.7/config -lpython2.7
+BIBL | med | 2.3.5 | -L/local/cchris/Aster/V10.3/aster/public/med-2.3.6/lib -lmed
+BIBL | hdf5 | 1.6.5 | -L/local/cchris/Aster/V10.3/aster/public/hdf5-1.6.9/lib -lhdf5
BIBL | zmat | 8.4 |
-BIBL | mumps | ? | /local/cchris/Aster/V10.1/aster/public/mumps-4.8.4/lib/libdmumps.a /local/cchris/Aster/V10.1/aster/public/mumps-4.8.4/lib/libzmumps.a /local/cchris/Aster/V10.1/aster/public/mumps-4.8.4/lib/libsmumps.a /local/cchris/Aster/V10.1/aster/public/mumps-4.8.4/lib/libcmumps.a /local/cchris/Aster/V10.1/aster/public/mumps-4.8.4/lib/libmumps_common.a /local/cchris/Aster/V10.1/aster/public/mumps-4.8.4/lib/libpord.a /local/cchris/Aster/V10.1/aster/public/mumps-4.8.4/lib/libmpiseq.a -L/local/cchris/Aster/V10.1/aster/public/metis-4.0/lib -lmetis
+BIBL | mumps | ? | /local/cchris/Aster/V10.3/aster/public/mumps-4.9.2/lib/libdmumps.a /local/cchris/Aster/V10.3/aster/public/mumps-4.9.2/lib/libzmumps.a /local/cchris/Aster/V10.3/aster/public/mumps-4.9.2/lib/libsmumps.a /local/cchris/Aster/V10.3/aster/public/mumps-4.9.2/lib/libcmumps.a /local/cchris/Aster/V10.3/aster/public/mumps-4.9.2/lib/libmumps_common.a /local/cchris/Aster/V10.3/aster/public/mumps-4.9.2/lib/libpord.a /local/cchris/Aster/V10.3/aster/public/mumps-4.9.2/lib/libmpiseq.a -L/local/cchris/Aster/V10.3/aster/public/metis-4.0/lib -lmetis
BIBL | scotch | 4.0 |
BIBL | math | ? | -L/usr/lib -llapack -L/usr/lib -lblas -L/usr/lib/gcc/x86_64-linux-gnu/4.3 -lgfortran
BIBL | mpi | 2 |
BIBL | c++ | ? | -L/usr/lib/gcc/x86_64-linux-gnu/4.3 -lstdc++ -lsupc++
-BIBL | sys | ? | -Wl,--allow-multiple-definition -Wl,--export-dynamic -lieee -ldl -lpthread -lutil -lm -lz
-BIBL | salome | ? | -L/local/cchris/Salome/Install/KERNEL_V5/lib/salome -lCalciumC -lSalomeDSCSuperv -lSalomeDSCContainer -lSalomeDatastream -lSalomeDSCSupervBasic -Wl,--rpath -Wl,/local/cchris/Salome/Install/KERNEL_V5/lib/salome
+BIBL | sys | ? | -Wl,--allow-multiple-definition -Wl,--export-dynamic -ldl -lutil -lm -lpthread -lz
+BIBL | salome | ? | -L/local/cchris/Salome/Install/KERNEL_V6/lib/salome -lCalciumC -lSalomeDSCSuperv -lSalomeDSCContainer -lSalomeDatastream -lSalomeDSCSupervBasic -Wl,--rpath -Wl,/local/cchris/Salome/Install/KERNEL_V6/lib/salome
#
-DEFS | defined | ? | LINUX64 _HAVE_MUMPS
+DEFS | defined | ? | LINUX64 _HAVE_MUMPS _DISABLE_SCOTCH
#
-NOBUILD | option | ? | bibfor/from_c bibc/scotch
+NOBUILD | option | ? |
#
-PYTHON | python | 2.4 | /usr/bin/python
+PYTHON | python | 2.4 | /local/cchris/Salome/envSalome6/spython/bin/python
#
LINK | link | ? | /usr/bin/gfortran
-OPTL | link | ? | -fopenmp
+OPTL | link | ? | -fopenmp
#
CC | cc | ? | /usr/bin/gcc
-OPTC_D | cc | ? | -c -g -fno-stack-protector -fPIC
-OPTC_O | cc | ? | -c -O2 -fno-stack-protector -fPIC
-INCL | include | ? | -I/local/cchris/Aster/V10.1/aster/STA10.1/bibc/include -I/usr/include/python2.5
+OPTC_D | cc | ? | -c -g -fno-stack-protector -fPIC -fopenmp
+OPTC_O | cc | ? | -c -O2 -fno-stack-protector -fPIC -fopenmp
+INCL | include | ? | -I/local/cchris/Aster/V10.3/aster/STA10.3/bibc/include -I/local/cchris/pkg/python2.7/install/include/python2.7 -I/local/cchris/Salome/envSalome6/spython/lib/python2.7/site-packages/numpy/core/include -I/local/cchris/Aster/V10.3/aster/public/hdf5-1.6.9/include
#
F77 | f77 | ? | /usr/bin/gfortran
-OPTF_D | f77 | ? | -c -g -fopenmp -fPIC -fdefault-double-8 -fdefault-integer-8 -fdefault-real-8
-OPTF_O | f77 | ? | -c -O2 -fopenmp -fPIC -fdefault-double-8 -fdefault-integer-8 -fdefault-real-8
-INCLF | include | ? | -I/local/cchris/Salome/Install/KERNEL_V5/include/salome
+OPTF_D | f77 | ? | -c -g -fPIC -fopenmp -fdefault-double-8 -fdefault-integer-8 -fdefault-real-8
+OPTF_O | f77 | ? | -c -O2 -fPIC -fopenmp -fdefault-double-8 -fdefault-integer-8 -fdefault-real-8
+INCLF | include | ? | -I/local/cchris/Salome/Install/KERNEL_V6/include/salome
#
F90 | f90 | ? | /usr/bin/gfortran
-OPTF90_D | f90 | ? | -c -g -ffixed-line-length-0 -x f77-cpp-input -fPIC -fdefault-double-8 -fdefault-integer-8 -fdefault-real-8
-OPTF90_O | f90 | ? | -c -O2 -ffixed-line-length-0 -x f77-cpp-input -fPIC -fdefault-double-8 -fdefault-integer-8 -fdefault-real-8
-INCLF90 | include | ? | -I/local/cchris/Aster/V10.1/aster/STA10.1/bibf90/include_mumps-4.8.4
+OPTF90_D | f90 | ? | -c -g -ffixed-line-length-0 -x f77-cpp-input -fPIC -fopenmp -fdefault-double-8 -fdefault-integer-8 -fdefault-real-8
+OPTF90_O | f90 | ? | -c -O2 -ffixed-line-length-0 -x f77-cpp-input -fPIC -fopenmp -fdefault-double-8 -fdefault-integer-8 -fdefault-real-8
+INCLF90 | include | ? | -I/local/cchris/Aster/V10.3/aster/STA10.3/bibf90/include_mumps-4.9.2
#
G77_AGLA | g77 | ? | unused
#
MAKE_SURCH_OFFI | build | 11-04 | Lecture_Cata_Ele/make_surch_offi.py
MAKE_CAPY_OFFI | build | 11-04 | Lecture_Cata_Ele/make_capy_offi.py
#
-REPOUT | exec | 11-04 | /local/cchris/Aster/V10.1/aster/outils
-REPMAT | exec | 02-05 | /local/cchris/Aster/V10.1/aster/STA10.1/materiau
-REPDEX | exec | 02-05 | /local/cchris/Aster/V10.1/aster/STA10.1/datg
+REPOUT | exec | 11-04 | /local/cchris/Aster/V10.3/aster/outils
+REPMAT | exec | 02-05 | /local/cchris/Aster/V10.3/aster/STA10.3/materiau
+REPDEX | exec | 02-05 | /local/cchris/Aster/V10.3/aster/STA10.3/datg
#
SUPERV | exec | 03-02 | Accas
SUPERV | exec | 03-02 | Build
R cmde ${PWD}/commande DR 0
END
-$1/ASTK/ASTK_SERV/bin/as_run make-exe
+$1/bin/as_run make-exe
}
-aster_home=os.path.expanduser("~/Aster/V10.1/aster")
-aster_version="STA10.1"
+aster_home=os.path.expanduser("~/Aster/V10.3/aster")
+aster_version="STA10.3"
--- /dev/null
+# Copyright (C) 2009-2010 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/ or email : webmaster.salome@opencascade.com
+#
+
+clean:
+ rm -rf *.o *.so cppcompos_SRC cppcompos_SRC.bak appli appli.bak install install.bak traceExec_proc
--- /dev/null
+# Copyright (C) 2009-2010 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/ or email : webmaster.salome@opencascade.com
+#
+
+clean:
+ rm -rf *.o *.so hxxcompos_SRC hxxcompos_SRC.bak appli appli.bak install install.bak traceExec_proc COMPONENTCPP_INSTALL COMPONENTCPP_SRC COMPONENTCPP_BUILD parse_result parse_type_result
import SALOME
import salome
salome.salome_init()
-print "Test du composant CALCUL généré généré par hxx2salome"
+print "Test du composant CALCUL genere par hxx2salome"
import hxxcompos_ORB
myCalc = salome.lcc.FindOrLoadComponent("FactoryServer", "CALCUL")
print "10+15 = ",myCalc.add(10,15)
KERNEL_ROOT_DIR=$(HOME)/Salome/Install/KERNEL_V6
-ASTER_ROOT=$(HOME)/Aster/V10.1/aster
-ASTER_VERSION=STA10.1
+ASTER_ROOT=$(HOME)/Aster/V10.3/aster
+ASTER_VERSION=STA10.3
FC=gfortran
--- /dev/null
+# Copyright (C) 2009-2010 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/ or email : webmaster.salome@opencascade.com
+#
+
+clean:
+ rm -rf *.pyc pycompos_SRC pycompos_SRC.bak appli appli.bak install install.bak traceExec_proc