Changeset 4499 for palm/trunk/UTIL/inifor/tests
- Timestamp:
- Apr 16, 2020 3:51:56 PM (5 years ago)
- Location:
- palm/trunk/UTIL/inifor/tests
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/UTIL/inifor/tests/test-stretching.f90
r4481 r4499 26 26 ! ----------------- 27 27 ! $Id$ 28 ! Bugfix: carry over variable name change of 'dp' to 'wp' 29 ! 30 ! 31 ! 28 32 ! Prefixed all INIFOR modules with inifor_ 29 33 ! … … 48 52 49 53 USE inifor_defs, & 50 ONLY : dp54 ONLY : wp 51 55 52 56 USE inifor_grid, & … … 63 67 INTEGER :: k = nz - 2 64 68 65 REAL( dp) :: z(1:nz)66 REAL( dp) :: dz(10) = -1.0_dp67 REAL( dp) :: dz_max = 1000.0_dp68 REAL( dp) :: dz_stretch_factor = 1.08_dp69 REAL( dp) :: dz_stretch_level = 2.0_dp70 REAL( dp) :: dz_stretch_level_start(9) = -9999999.9_dp71 REAL( dp) :: dz_stretch_level_end(9) = 9999999.9_dp72 REAL( dp) :: dz_stretch_factor_array(9) = 1.08_dp69 REAL(wp) :: z(1:nz) 70 REAL(wp) :: dz(10) = -1.0_wp 71 REAL(wp) :: dz_max = 1000.0_wp 72 REAL(wp) :: dz_stretch_factor = 1.08_wp 73 REAL(wp) :: dz_stretch_level = 2.0_wp 74 REAL(wp) :: dz_stretch_level_start(9) = -9999999.9_wp 75 REAL(wp) :: dz_stretch_level_end(9) = 9999999.9_wp 76 REAL(wp) :: dz_stretch_factor_array(9) = 1.08_wp 73 77 74 78 CALL begin_test(title, res) 75 79 76 80 ! Arange 77 z(:) = 0.0_ dp78 dz(1) = 1.0_ dp81 z(:) = 0.0_wp 82 dz(1) = 1.0_wp 79 83 80 84 ! Act … … 96 100 res = res .AND. & 97 101 assert_equal( (/ z(UBOUND(z, 1)) - z(1) /), & 98 (/ (1.0_ dp - dz_stretch_factor**(k+1)) / &99 (1.0_ dp - dz_stretch_factor) /), &102 (/ (1.0_wp - dz_stretch_factor**(k+1)) / & 103 (1.0_wp - dz_stretch_factor) /), & 100 104 'length of stretched grid' ) 101 105
Note: See TracChangeset
for help on using the changeset viewer.