Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ env:

jobs:
setup:
runs-on: ubuntu-latest
runs-on: ubuntu-20.04

steps:
- name: checkout-upp # This is for getting spack.yaml
Expand Down Expand Up @@ -66,7 +66,6 @@ jobs:
- name: install-dependencies-with-spack
if: steps.cache-env.outputs.cache-hit != 'true'
run: |
sudo mv /usr/local/ /usr_local_mv
git clone -c feature.manyFiles=true https://github.com/NOAA-EMC/spack.git
source spack/share/spack/setup-env.sh
spack env create upp-env UPP/ci/spack.yaml
Expand All @@ -81,7 +80,7 @@ jobs:

build:
needs: setup
runs-on: ubuntu-latest
runs-on: ubuntu-20.04

steps:
- name: checkout-upp
Expand Down
8 changes: 3 additions & 5 deletions sorc/ncep_post.fd/SURFCE.f
Original file line number Diff line number Diff line change
Expand Up @@ -6687,7 +6687,7 @@ subroutine qpf_comp(igetfld,compfile,fcst)
character(len=256), intent(in) :: compfile
integer, intent(in) :: igetfld,fcst
integer :: trange,invstat
real, dimension(IM,JM) :: outgrid
real, dimension(ista:iend,jsta:jend) :: outgrid

real, allocatable, dimension(:,:) :: mscValue

Expand All @@ -6700,6 +6700,8 @@ subroutine qpf_comp(igetfld,compfile,fcst)

integer :: i, j, k, ii, jj

outgrid = 0

! Read in reference grid.
INQUIRE(FILE=compfile, EXIST=file_exists)
if (file_exists) then
Expand Down Expand Up @@ -6750,13 +6752,9 @@ subroutine qpf_comp(igetfld,compfile,fcst)
outgrid(I,J) = 1.0
ELSE IF (fcst .GT. 1 .AND. AVGPREC_CONT(I,J)*FLOAT(IFHR)*3600.*1000./DTQ2 .GT. mscValue(I,J)) THEN
outgrid(I,J) = 1.0
ELSE
outgrid(I,J) = 0.0
ENDIF
ENDDO
ENDDO
ELSE
outgrid = 0.0*AVGPREC
ENDIF
ENDIF
! write(*,*) 'FFG MAX, MIN:', &
Expand Down
2 changes: 1 addition & 1 deletion tests/compile_upp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ wrfio_opt=" -DBUILD_WITH_WRFIO=ON"
compiler="intel"
verbose_opt=""
debug_opt=""
while getopts ":p:gwc:vhiI:d" opt; do
while getopts ":p:gwc:vhiId" opt; do
case $opt in
p)
prefix=$OPTARG
Expand Down