[petsc-users] undefined symbol: petsc_null_function_
TianHao Le
thl at gps.caltech.edu
Fri Jun 16 18:31:08 CDT 2017
Dear all,
I try to put a 3-D radiative transfer model in the python Large-Scale
Simulations model. However, when I setup the LES model, I got the
following error message:
Traceback (most recent call last):
File "main.py", line 33, in <module>
main()
File "main.py", line 17, in main
main3d(namelist)
File "main.py", line 23, in main3d
import Simulation3d
File "Radiation.pxd", line 11, in init Simulation3d (Simulation3d.c:29383)
cdef class RadiationBase:
ImportError: /global/home/thl/pycles-test/Radiation.so: undefined symbol:
petsc_null_function_
Seems cannot find the PETSC NULL FUNCTION.
I add the following 5 include paths in the setup.py (because I am not sure
that I should add which one
)
include_path += ['/home/thl/petsc/include/petsc/finclude']
include_path += ['/home/thl/petsc/include/petsc/private']
include_path += ['/home/thl/petsc/fast_double/include']
include_path += ['/home/thl/petsc/include']
include_path += [/home/thl/petsc/include/petsc']
and add the following 2 library directions.
library_dirs.append('/home/thl/tenstream/build/lib')
library_dirs.append(/home/thl/petsc/fast_double/lib')
Now I am not sure what may cause this, maybe didnt install PETSC
correctly? Or add wrong include path or in a wrong way?
If anyone knows how to fix this, please let me know!
Thanks,
Tianhao
--
--
More information about the petsc-users
mailing list