Chelo and Nemo,
Let's start from the top, and assuming you have some ubuntu/debian based linux distro and asume as ¨root¨ path as:
/home/Your_username/opentelemac/v7p1
Make sure you have the correct dependencies for the compiling process
This will install gfortran, openmpi (and its basic dev libs).
sudo apt install gfortran openmpi-bin openmpi-doc
And test it in a console: get the version of the
openmpi wrapper for gfortran using the terminal and something similar should appear:
jose@blitz:~$ mpifort --version
GNU Fortran (Ubuntu 5.4.0-6ubuntu1~16.04.2) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
GNU Fortran comes with NO WARRANTY[.....]
Configuring the cfg file
Copy the attached file ( a basic system cfg using openmpi) to the folder root_path/configs/ and edit that txt file
just in the following lines:
- root: /home/jose/Documents/opentelemac/v7p1r1
- libs_partel: /home/jose/Documents/opentelemac/v7p1r1/metis/libmetis.a
Change it accordingly to your root_path. Make sure you have the ¨libmetis.a¨ file available. If not, extract the folder
metis attached in a similar path and point the libs_partel to the extracted ¨[folder_extracted]/libmetis.a¨.
Edit your .bashrc to include opentelemacs scripts
Add the folowing lines at the end changing the [YOUR_ROOT_PATH] placeholder:
export PATH="[YOUR_ROOT_PATH]/scripts/python27":$PATH
export SYSTELCFG="[YOUR_ROOT_PATH]/configs/systel.cis-ubuntu-parallel.cfg"
Save bashrc and in that terminal:
Compilation processs
Just type:
Now test your installation with a test-cas and make sure the ¨PARALLEL PROCESORS¨ keyword is in the keyword file to see come cpu action.
Regards,
José Díaz.
EDIT:
Couldnt attach the metis zipped folder to the forum, here is a gdrive link instead:
METIS_FOLDER