NCAR / NCAR/wrf-python

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

Open
#206 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
498
Forks
178
PR merge metrics
No merged PRs in 30d

Description

  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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the source-build steps in the installation tutorial from fortran/build_help, then run the reported f2py command over the listed .f90 files. Review the resulting messages about wrf_constants and omp_lib and compare the suggested -I, -L, numpy.f2py, and f2py3 approaches. Done means the supported build path is identified and the reported f2py errors are resolved or clearly documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
fortran, python
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.