Hi, all
I am using telemac v8p0r0 and I want to use the APIs from TelApy. I have installed the metis-5.1.0 and its dynamic version, both libmetis.a and libmetis.so are built.
Moreover, I have successfully compiled Dynamic compilation for TelApy.
However, when I test the example telemac2d.ipynb in the folder of /v8p0r0/scripts/python27/TelApy/notebooks/api, there get some errors about _api.so and METIS_PartMeshDual:
Python 2.7.15rc1 (default, Nov 12 2018, 14:31:15)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import TelApy.api.t2d
>>> import os
>>> HOMETEL = os.environ.get('HOMETEL')
>>> os.chdir(HOMETEL + '/examples/telemac2d/breach')
>>> from TelApy.api.t2d import Telemac2d
>>> from mpi4py import MPI
>>> my_case = Telemac2d('t2d_breach.cas', lang=1, comm=MPI.COMM_WORLD)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/lairuixun/telemac-mascaret/v8p0r0/scripts/python27/TelApy/api/t2d.py", line 56, in __init__
dicofile, lang, stdout, comm, recompile)
File "/home/lairuixun/telemac-mascaret/v8p0r0/scripts/python27/TelApy/api/api_module.py", line 137, in __init__
'\n'+str(execpt))
Exception: Error: unable to load the dynamic library _api.so
You can check the environment variable PYTHONPATH
/home/lairuixun/telemac-mascaret/v8p0r0/builds/ubugfopenmp/wrap_api/lib/libpartel.so: undefined symbol: METIS_PartMeshDual