-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add unit test for new chgres_cube routine "dint2p".
Fixes #555.
- Loading branch information
1 parent
32fdf16
commit c3bf3fb
Showing
3 changed files
with
42 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
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,35 @@ | ||
program ftst_dint2p | ||
|
||
use input_data | ||
|
||
implicit none | ||
|
||
integer, parameter :: npin = 3 | ||
integer, parameter :: npout = 3 | ||
|
||
integer :: ier, linlog | ||
|
||
real*8 :: ppin(npin), xxin(npin) | ||
real*8 :: ppout(npout), xmsg | ||
real*8 :: xxout(npout) | ||
|
||
data ppin /1000., 700., 300./ | ||
data xxin /1., 2., 3. / | ||
data ppout /850., 600., 400./ | ||
|
||
xmsg = -999.0 | ||
|
||
linlog = 1 | ||
|
||
call dint2p(ppin,xxin,npin,ppout,xxout,npout, & | ||
linlog, xmsg, ier) | ||
|
||
if (ier /= 0) stop 2 | ||
if (xxout(1) /= 1.5) stop 4 | ||
if (xxout(2) /= 2.25) stop 6 | ||
if (xxout(3) /= 2.75) stop 8 | ||
|
||
print*, "OK" | ||
print*, "SUCCESS!" | ||
|
||
end program ftst_dint2p |