File tree Expand file tree Collapse file tree 7 files changed +16
-10
lines changed Expand file tree Collapse file tree 7 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 4646 run : |
4747 python -m twine check dist/*
4848 - name : Publish package to PyPI
49- 49+ 5050 with :
5151 user : __token__
5252 password : ${{ secrets.PYPI_WRF_PYTHON }}
Original file line number Diff line number Diff line change 11include README.md
22include LICENSE
3- include requirements.txt
43
54include fortran/*.f90
65include fortran/*.pyf
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ $FC -E ompgen.F90 -fopenmp -cpp -o omp.f90
1111cd ..
1212
1313python setup.py clean --all
14+ export LDFLAGS=" -fopenmp "
1415python setup.py config_fc --f90flags=" -mtune=generic -fopenmp" build_ext --libraries=" gomp" build
1516pip install .
1617
Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ MODULE omp_constants
77 INTEGER (KIND= fomp_sched_kind), PARAMETER :: fomp_sched_dynamic = 2
88 INTEGER (KIND= fomp_sched_kind), PARAMETER :: fomp_sched_guided = 3
99 INTEGER (KIND= fomp_sched_kind), PARAMETER :: fomp_sched_auto = 4
10+ contains
11+ subroutine have_omp_constants ()
12+ end subroutine have_omp_constants
1013END MODULE omp_constants
1114
1215
Original file line number Diff line number Diff line change @@ -20,6 +20,10 @@ MODULE omp_constants
2020 INTEGER (KIND= 4 ), PARAMETER :: fomp_sched_auto = 4
2121#endif
2222
23+ contains
24+ subroutine have_omp_constants ()
25+ end subroutine have_omp_constants
26+
2327END MODULE omp_constants
2428
2529
Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ MODULE omp_constants
2020 INTEGER(KIND=4), PARAMETER :: fomp_sched_auto = 4
2121#endif
2222
23- contains
24- logical function have_omp_constants()
25- have_omp_constants = .true.
26- end function have_omp_constants
23+ contains
24+ subroutine have_omp_constants()
25+ end subroutine have_omp_constants
26+
2727END MODULE omp_constants
2828
2929
Original file line number Diff line number Diff line change @@ -69,10 +69,9 @@ MODULE wrf_constants
6969 REAL (KIND= 8 ), PARAMETER :: EXPON = RD* USSALR/ G
7070 REAL (KIND= 8 ), PARAMETER :: EXPONI = 1 ./ EXPON
7171
72- contains
73- subroutine have_wrf_constants (a )
74- logical , intent (out ) :: a
75- a = .true.
72+ contains
73+ subroutine have_wrf_constants ()
7674 end subroutine have_wrf_constants
75+
7776END MODULE wrf_constants
7877
You can’t perform that action at this time.
0 commit comments