Skip to content

Commit e502213

Browse files
committed
Merge branch 'develop' of NCAR/wrf-python into cmake-build
2 parents f9f690f + 04159d6 commit e502213

File tree

7 files changed

+16
-10
lines changed

7 files changed

+16
-10
lines changed

.github/workflows/pypi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
run: |
4747
python -m twine check dist/*
4848
- name: Publish package to PyPI
49-
uses: pypa/[email protected].1
49+
uses: pypa/[email protected].3
5050
with:
5151
user: __token__
5252
password: ${{ secrets.PYPI_WRF_PYTHON }}

MANIFEST.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
include README.md
22
include LICENSE
3-
include requirements.txt
43

54
include fortran/*.f90
65
include fortran/*.pyf

build_scripts/gnu_omp.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ $FC -E ompgen.F90 -fopenmp -cpp -o omp.f90
1111
cd ..
1212

1313
python setup.py clean --all
14+
export LDFLAGS=" -fopenmp "
1415
python setup.py config_fc --f90flags="-mtune=generic -fopenmp" build_ext --libraries="gomp" build
1516
pip install .
1617

fortran/omp.f90

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
1013
END MODULE omp_constants
1114

1215

fortran/ompgen.F90

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
2327
END MODULE omp_constants
2428

2529

fortran/ompgen.F90.template

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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+
2727
END MODULE omp_constants
2828

2929

fortran/wrf_constants.f90

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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+
7776
END MODULE wrf_constants
7877

0 commit comments

Comments
 (0)