<html><head><meta http-equiv="Content-Type" content="text/html charset=gb2312"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">在 2017年6月17日,上午8:12,Barry Smith <<a href="mailto:bsmith@mcs.anl.gov" class="">bsmith@mcs.anl.gov</a>> 写道:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class="">  Please send make.log and configure.log from building PETSc<br class=""><br class="">   This is a fortran stub function, is there any fortran in your code? <br class=""><br class="">   If there is no fortran you can reconfigure PETSc with the option -with-fc=0 <br class=""><br class="">   Otherwise we need to track down why it is not being found.<br class=""><br class="">   Barry<br class=""><br class=""><blockquote type="cite" class="">On Jun 16, 2017, at 6:31 PM, TianHao Le <<a href="mailto:thl@gps.caltech.edu" class="">thl@gps.caltech.edu</a>> wrote:<br class=""><br class="">Dear all,<br class=""><br class="">I try to put a 3-D radiative transfer model in the python Large-Scale<br class="">Simulations model. However, when I setup the LES model, I got the<br class="">following error message:<br class=""><br class="">Traceback (most recent call last):<br class=""> File "main.py", line 33, in <module><br class="">   main()<br class=""> File "main.py", line 17, in main<br class="">   main3d(namelist)<br class=""> File "main.py", line 23, in main3d<br class="">   import Simulation3d<br class=""> File "Radiation.pxd", line 11, in init Simulation3d (Simulation3d.c:29383)<br class="">   cdef class RadiationBase:<br class="">ImportError: /global/home/thl/pycles-test/Radiation.so: undefined symbol:<br class="">petsc_null_function_<br class=""><br class="">Seems cannot find the PETSC NULL FUNCTION.<br class=""><br class="">I add the following 5 include paths in the setup.py (because I am not sure<br class="">that I should add which one.)<br class=""><br class="">include_path += ['/home/thl/petsc/include/petsc/finclude']<br class="">include_path += ['/home/thl/petsc/include/petsc/private']<br class="">include_path += ['/home/thl/petsc/fast_double/include']<br class="">include_path += ['/home/thl/petsc/include']<br class="">include_path += ['/home/thl/petsc/include/petsc']<br class=""><br class="">and add the following 2 library directions.<br class=""><br class="">library_dirs.append('/home/thl/tenstream/build/lib')<br class="">library_dirs.append('/home/thl/petsc/fast_double/lib')<br class=""><br class=""><br class="">Now I am not sure what may cause this, maybe didn't install PETSC<br class="">correctly? Or add wrong include path or in a wrong way?<br class=""><br class="">If anyone knows how to fix this, please let me know!<br class=""><br class="">Thanks,<br class="">Tianhao<br class=""><br class=""><br class="">-- <br class=""><br class=""><br class="">-- <br class=""><br class=""></blockquote><br class=""></div></div></blockquote></div><br class=""></div></body></html>