NCAR / wrf-python

A collection of diagnostic and interpolation routines for use with output from the Weather Research and Forecasting (WRF-ARW) Model.
https://wrf-python.readthedocs.io
Apache License 2.0
392 stars 149 forks source link

From source code building, an error occurred while executing the "f2py". #206

Open hackerpluses opened 1 year ago

hackerpluses commented 1 year ago
  1. I did not report any errors when executing the following code in the installation tutorial: cd ./fortran/build_help gfortran -o sizes -fopenmp omp_sizes.f90 python sub_sizes.py cd .. gfortran -E ompgen.F90 -fopenmp -cpp -o omp.f90
  2. when i excute " f2py *.f90 -m _wrffortran -h wrffortran.pyf --overwrite-signature " , these are errors Reading fortran codes... Reading file 'calc_uh.f90' (format:free) Reading file 'eqthecalc.f90' (format:free) Reading file 'omp.f90' (format:free) Reading file 'rip_cape.f90' (format:free) Reading file 'wrf_cloud_fracf.f90' (format:free) Reading file 'wrf_constants.f90' (format:free) Reading file 'wrf_fctt.f90' (format:free) Reading file 'wrf_pvo.f90' (format:free) Reading file 'wrf_pw.f90' (format:free) Reading file 'wrf_relhl.f90' (format:free) Reading file 'wrf_rip_phys_routines.f90' (format:free) Reading file 'wrf_testfunc.f90' (format:free) Reading file 'wrf_user_dbz.f90' (format:free) Reading file 'wrf_user.f90' (format:free) Reading file 'wrf_user_latlon_routines.f90' (format:free) Reading file 'wrf_vinterp.f90' (format:free) Reading file 'wrf_wind.f90' (format:free) Post-processing... Block: _wrffortran Block: dcalcuh Block: deqthecalc In: :_wrffortran:eqthecalc.f90:deqthecalc get_useparameters: no module wrf_constants info used by deqthecalc Block: omp_constants In: :_wrffortran:omp.f90:omp_constants get_useparameters: no module omp_lib info used by omp_constants Block: fomp_enabled Block: fomp_set_num_threads In: :_wrffortran:omp.f90:fomp_set_num_threads get_useparameters: no module omp_lib info used by fomp_set_num_threads Block: fomp_get_num_threads ........
  3. The method I am trying to use Add this Fortran folder through - I or - L. Use Python - m numpy.f2py. Using f2py3