Compilation with gfortran: differenze tra le versioni
Da MeteOceanWiki.
Riga 56: | Riga 56: | ||
'' make install '' | '' make install '' | ||
− | Create the file pysource.sh in /opt/opentelemac/v7p3r1/configs | + | Create the file ''pysource.sh'' in /opt/opentelemac/v7p3r1/configs |
− | Create the file systel.cfg in /opt | + | # This file is a template for a Linux environment file |
+ | # running "source pysource.template.sh" will position all | ||
+ | # the necessary environment variables for telemac | ||
+ | # To adapt to your installation replace word <word> by their local value | ||
+ | ### | ||
+ | ### TELEMAC settings ----------------------------------------------------------- | ||
+ | ### | ||
+ | # Path to telemac root dir | ||
+ | export HOMETEL=/opt/opentelemac/v7p3r1 | ||
+ | # Adding python scripts to PATH | ||
+ | export PATH=$HOMETEL/scripts/python27:.:$PATH | ||
+ | # Configuration file | ||
+ | export SYSTELCFG=$HOMETEL/configs/systel.cfg | ||
+ | # Name of the configuration to use | ||
+ | export USETELCFG=gfortranHPC | ||
+ | # Path to this file | ||
+ | export SOURCEFILE=$HOMETEL/configs/pysource.gfortranHPC.sh | ||
+ | ### Python | ||
+ | # To force python to flush its output | ||
+ | export PYTHONUNBUFFERED='true' | ||
+ | ### API | ||
+ | export PYTHONPATH=$HOMETEL/scripts/python27:$PYTHONPATH | ||
+ | export LD_LIBRARY_PATH=$HOMETEL/builds/$USETELCFG/wrap_api/lib:$LD_LIBRARY_PATH | ||
+ | export PYTHONPATH=$HOMETEL/builds/$USETELCFG/wrap_api/lib:$PYTHONPATH | ||
+ | ### | ||
+ | ### EXTERNAL LIBRARIES ----------------------------------------------------------- | ||
+ | ### | ||
+ | ### METIS ------------------------------------------------------------- | ||
+ | export METISHOME=/opt/opentelemac/metis_installed | ||
+ | |||
+ | ### HDF5 ------------------------------------------------------------- | ||
+ | export MEDHOME=/opt/opentelemac/hdf5_installed | ||
+ | export LD_LIBRARY_PATH=$HDF5HOME/lib:$LD_LIBRARY_PATH | ||
+ | ### MED ------------------------------------------------------------- | ||
+ | export MEDHOME=/opt/opentelemac/med_installed | ||
+ | export LD_LIBRARY_PATH=$MEDHOME/lib:$LD_LIBRARY_PATH | ||
+ | export PATH=$MEDHOME/bin:$PATH | ||
+ | |||
+ | |||
+ | Create the file ''systel.cfg'' in /opt/opentelemac/v7p3r1/configs | ||
COMPILE TELEMAC | COMPILE TELEMAC |
Versione delle 11:50, 5 set 2018
This guide is written following this webpage:
http://wiki.opentelemac.org/doku.php?id=installation_on_linux
PREREQUISITES
This is the list of software that are mandatory to compile and run opentelemac:
1) Python 2.7.0
2) Numpy 1.8.3
3) Gfortran 4.6.3 (minimun version)
4) MPI libraries
5) scipy
6) matplotlib
PROCESS
create a folder in opt
mkdir opentelemac
download opentelemac file for the v7p3r1 version
svn checkout http://svn.opentelemac.org/svn/opentelemac/tags/v7p3r1/
cd v7p3r1/optionals/metis-5.1.0
cmake -D CMAKE_INSTALL_PREFIX=/opt/opentelemac/metis_installed . make make install
Download hdf5-1.8.14
Enter in the source folder
./configure --prefix=/opt/opentelemac/hdf5_installed make make install
Enter the folder hdf5_installed Create a symbolic link to lib64
ln -s lib64/ lib
Download MED 3.2.0
Install MED
./configure --with-hdf5=/opt/opentelemac/hdf5_installed --prefix=/opt/opentelemac/med_installed make make install
Create the file pysource.sh in /opt/opentelemac/v7p3r1/configs
# This file is a template for a Linux environment file # running "source pysource.template.sh" will position all # the necessary environment variables for telemac # To adapt to your installation replace word <word> by their local value ### ### TELEMAC settings ----------------------------------------------------------- ### # Path to telemac root dir export HOMETEL=/opt/opentelemac/v7p3r1 # Adding python scripts to PATH export PATH=$HOMETEL/scripts/python27:.:$PATH # Configuration file export SYSTELCFG=$HOMETEL/configs/systel.cfg # Name of the configuration to use export USETELCFG=gfortranHPC # Path to this file export SOURCEFILE=$HOMETEL/configs/pysource.gfortranHPC.sh ### Python # To force python to flush its output export PYTHONUNBUFFERED='true' ### API export PYTHONPATH=$HOMETEL/scripts/python27:$PYTHONPATH export LD_LIBRARY_PATH=$HOMETEL/builds/$USETELCFG/wrap_api/lib:$LD_LIBRARY_PATH export PYTHONPATH=$HOMETEL/builds/$USETELCFG/wrap_api/lib:$PYTHONPATH ### ### EXTERNAL LIBRARIES ----------------------------------------------------------- ### ### METIS ------------------------------------------------------------- export METISHOME=/opt/opentelemac/metis_installed
### HDF5 ------------------------------------------------------------- export MEDHOME=/opt/opentelemac/hdf5_installed export LD_LIBRARY_PATH=$HDF5HOME/lib:$LD_LIBRARY_PATH ### MED ------------------------------------------------------------- export MEDHOME=/opt/opentelemac/med_installed export LD_LIBRARY_PATH=$MEDHOME/lib:$LD_LIBRARY_PATH export PATH=$MEDHOME/bin:$PATH
Create the file systel.cfg in /opt/opentelemac/v7p3r1/configs
COMPILE TELEMAC
source pysource.sh config.py compileTELEMAC.py