[petsc-users] undefined symbol: petsc_null_function_
Tianhao Le
happysky19 at gmail.com
Fri Jun 16 19:35:45 CDT 2017
Hi Barry,
Attached are the make.log and configure.log.
In fact, the 3-D R-T model is written in c++ and fortran.
I wrote a wrapper.f90 to let the 3-D R-T model can be called by the python code. (See the Tenstream_combined.csh, also attached)
Thanks,
Tianhao
> 在 2017年6月17日,上午8:12,Barry Smith <bsmith at mcs.anl.gov> 写道:
>
>
> Please send make.log and configure.log from building PETSc
>
> This is a fortran stub function, is there any fortran in your code?
>
> If there is no fortran you can reconfigure PETSc with the option -with-fc=0
>
> Otherwise we need to track down why it is not being found.
>
> Barry
>
>> On Jun 16, 2017, at 6:31 PM, TianHao Le <thl at gps.caltech.edu> wrote:
>>
>> 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 didn't 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
>>
>>
>> --
>>
>>
>> --
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170617/d2222b44/attachment-0004.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Tenstream_combined.csh
Type: application/octet-stream
Size: 2000 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170617/d2222b44/attachment-0003.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170617/d2222b44/attachment-0005.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log
Type: application/octet-stream
Size: 4199635 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170617/d2222b44/attachment-0004.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170617/d2222b44/attachment-0006.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make.log
Type: application/octet-stream
Size: 103336 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170617/d2222b44/attachment-0005.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170617/d2222b44/attachment-0007.html>
More information about the petsc-users
mailing list