Skip to content

Commit

Permalink
fix indexing for unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mlee03 authored and mlee03 committed Dec 10, 2024
1 parent 31c7247 commit cb9aa6a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test_fms/horiz_interp/test_create_xgrid_order2.F90
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ subroutine get_grid(nlon, nlat, lon, lat)
dlat = 180._lkind/real(nlat, HI_TEST_KIND_) * DEG_TO_RAD
dlon = 360._lkind/real(nlon, HI_TEST_KIND_) * DEG_TO_RAD

igridpt = 0
igridpt = 1
do ilat=1, nlat+1
do ilon=1, nlon+1
igridpt = igridpt + 1
lon(igridpt) = lon_start + real(ilon-1, HI_TEST_KIND_)*dlon
lat(igridpt) = lat_start + real(ilat-1, HI_TEST_KIND_)*dlat
igridpt = igridpt + 1
end do
end do

Expand Down
4 changes: 1 addition & 3 deletions test_fms/horiz_interp/test_create_xgrid_order2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,5 @@
. ../test-lib.sh


test_expect_success "create_xgrid order2" '
./test_create_xgrid_order2_r8
'
test_expect_success "create_xgrid order2" './test_create_xgrid_order2_r8'
test_done

0 comments on commit cb9aa6a

Please sign in to comment.