Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#206 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
fortran, python
Ambito
build-system

Direzione di ricerca

Inizia riproducendo i passaggi per la compilazione del codice sorgente nel tutorial di installazione in fortran/build_help, quindi esegui il comando f2py segnalato sui file .f90 elencati. Esamina i messaggi risultanti relativi a wrf_constants e omp_lib e confronta gli approcci suggeriti con -I, -L, numpy.f2py e f2py3. Il lavoro è completato quando il percorso di build supportato è stato identificato e gli errori f2py segnalati sono stati risolti o documentati chiaramente.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

  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
Lingua principale
Python
Stelle
498
Fork
178
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NCAR/wrf-python

Tutte le issue di NCAR/wrf-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.