forked from ufs-community/UFS_UTILS
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add strawman unit test for orog routine get_index.
Fixes ufs-community#1000.
- Loading branch information
1 parent
fe71fa1
commit 73f9e7d
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
program test_get_index | ||
|
||
use orog_utils, only : get_index | ||
|
||
implicit none | ||
|
||
integer, parameter :: imn=360*120 | ||
integer, parameter :: jmn=180*120 | ||
integer, parameter :: npts=4 | ||
|
||
integer :: jst, jen, ilist(imn), numx | ||
|
||
real :: lono(npts), lato(npts) | ||
real, parameter :: delxn=360.0/imn | ||
|
||
print*,'hello world' | ||
|
||
lato(1) = 0.0; lono(1) = 0.0 | ||
lato(2) = 1.0; lono(2) = 0.5 | ||
lato(3) = 0.0; lono(3) = 1.0 | ||
lato(4) = -1.0; lono(4) = 0.5 | ||
|
||
ilist = -999 | ||
|
||
call get_index(imn,jmn,npts,lonO,latO,delxn,jst,jen,ilist,numx) | ||
|
||
print*,jst,jen,numx | ||
|
||
print*,ilist(1:numx) | ||
|
||
|
||
end program test_get_index |