Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hackerpluses opened this issue Apr 20, 2023 · 0 comments

Comments

@hackerpluses
Copy link

hackerpluses commented Apr 20, 2023

  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
@hackerpluses hackerpluses changed the title Build from source code, use f2py to report errors From source code building, an error occurred while executing the "f2py". Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant