@@ -32,14 +32,14 @@ program test
32
32
r(:,1 ) = 1737.4_wp * unit ([1000.0_wp , 1000.0_wp , 1000.0_wp ]) ! point on surface of moon
33
33
34
34
et = 0.0_wp
35
- call moon_pa% j2000_to_frame(et, rot )
35
+ rot = moon_pa% j2000_to_frame(et)
36
36
call from_j2000_to_moon_pa(real (et, real64), rot_true)
37
37
write (* ,* ) ' '
38
38
write (* ,* ) ' rot error at et=0' , rot_true - rot
39
39
write (* ,* ) ' pos error: ' , norm2(matmul (rot_true, r) - matmul (rot, r))
40
40
41
41
et = 21600.0_wp ! halfway between first two points
42
- call moon_pa% j2000_to_frame(et, rot )
42
+ rot = moon_pa% j2000_to_frame(et)
43
43
call from_j2000_to_moon_pa(real (et, real64), rot_true)
44
44
write (* ,* ) ' '
45
45
write (* ,* ) ' rot error at et=21600' , rot_true - rot
@@ -49,7 +49,7 @@ program test
49
49
! quintic: -1.0719543411141785E-004 8.4190997773703202E-004 -1.9197702022211161E-004
50
50
51
51
et = (129600.0_wp + 86400.0_wp ) / 2.0_wp
52
- call moon_pa% j2000_to_frame(et, rot )
52
+ rot = moon_pa% j2000_to_frame(et)
53
53
call from_j2000_to_moon_pa(real (et, real64), rot_true)
54
54
write (* ,* ) ' '
55
55
write (* ,* ) ' rot error at et' , rot_true - rot
@@ -66,7 +66,7 @@ program test
66
66
do
67
67
et = et + 6.0_wp * 3600.0_wp
68
68
if (et > 3187296000.0_wp ) exit
69
- call moon_pa% j2000_to_frame(et, rot) ! splined version
69
+ rot = moon_pa% j2000_to_frame(et) ! splined version
70
70
call from_j2000_to_moon_pa(real (et, real64), rot_true) ! true version from spice : max error: 5.5664815594496319E-004 km
71
71
! call from_j2000_to_iau_moon(et, rot_true) ! compare to iau_moon : max error: 0.98148100150030848 km
72
72
r_error = norm2(matmul (rot_true, r) - matmul (rot, r))
@@ -94,7 +94,7 @@ program test
94
94
do
95
95
et = et + 6.0_wp * 3600.0_wp
96
96
if (et > 3187296000.0_wp ) exit
97
- call moon_pa% j2000_to_frame(et, rot )
97
+ rot = moon_pa% j2000_to_frame(et)
98
98
end do
99
99
call cpu_time(tend)
100
100
write (* ,' (A,F6.3,A)' ) ' spline time: ' , (tend- tstart), ' sec'
0 commit comments