@@ -129,7 +129,8 @@ module astronomy_mod
129129! ! @param [in] <time> Time at which astronomical values are desired (time_type variable) [seconds, days]
130130! ! @param [out] <cosz> Cosine of solar zenith angle, set to zero when entire period is in darkness [dimensionless]
131131! ! @param [out] <fracday> Daylight fraction of time interval [dimensionless]
132- ! ! @param [out] <rrsun> Earth-Sun distance (r) relative to semi-major axis of orbital ellipse (a):(a/r)**2 [dimensionless]
132+ ! ! @param [out] <rrsun> Earth-Sun distance (r) relative to semi-major axis of orbital ellipse
133+ ! ! (a):(a/r)**2 [dimensionless]
133134! ! @param [in] <dt> OPTIONAL: Time interval after gmt over which the astronomical variables are to be
134135! ! averaged. this produces averaged output rather than instantaneous. [radians], (1 day = 2 * pi)
135136! ! @param [in] <dt_time> OPTIONAL: Time interval after gmt over which the astronomical variables are to be
@@ -190,8 +191,10 @@ module astronomy_mod
190191! ! @param [in] <time> Time at which astronomical values are desired (time_type variable) [seconds, days]
191192! ! @param [out] <cosz> Cosine of solar zenith angle, set to zero when entire period is in darkness [dimensionless]
192193! ! @param [out] <fracday> Daylight fraction of time interval [dimensionless]
193- ! ! @param [out] <rrsun> Earth-Sun distance (r) relative to semi-major axis of orbital ellipse (a):(a/r)**2 [dimensionless]
194- ! ! @param [out] <solar> shortwave flux factor: cosine of zenith angle * daylight fraction / (earth-sun distance squared) [dimensionless]
194+ ! ! @param [out] <rrsun> Earth-Sun distance (r) relative to semi-major axis of orbital ellipse
195+ ! ! (a):(a/r)**2 [dimensionless]
196+ ! ! @param [out] <solar> shortwave flux factor: cosine of zenith angle * daylight fraction /
197+ ! ! (earth-sun distance squared) [dimensionless]
195198! > @ingroup astronomy_mod
196199interface daily_mean_solar
197200 module procedure daily_mean_solar_2d
@@ -1480,7 +1483,8 @@ end subroutine daily_mean_solar_1d
14801483! ! @param [in] <lat> Latitudes of model grid points
14811484! ! @param [in] <time_since_ae> Time of year; autumnal equinox = 0.0, one year = 2 * pi
14821485! ! @param [out] <cosz> Cosine of solar zenith angle
1483- ! ! @param [out] <solar> Shortwave flux factor: cosine of zenith angle * daylight fraction / (earth-sun distance squared)
1486+ ! ! @param [out] <solar> Shortwave flux factor: cosine of zenith angle * daylight fraction /
1487+ ! ! (earth-sun distance squared)
14841488subroutine daily_mean_solar_2level (lat , time_since_ae , cosz , solar )
14851489
14861490!- ---------------------------------------------------------------------
@@ -1649,7 +1653,8 @@ end subroutine daily_mean_solar_cal_1d
16491653! ! @param [in] <lat> Latitudes of model grid points
16501654! ! @param [in] <time> Time of year (time_type)
16511655! ! @param [out] <cosz> Cosine of solar zenith angle
1652- ! ! @param [out] <solar> Shortwave flux factor: cosine of zenith angle * daylight fraction / (earth-sun distance squared)
1656+ ! ! @param [out] <solar> Shortwave flux factor: cosine of zenith angle * daylight fraction /
1657+ ! ! (earth-sun distance squared)
16531658subroutine daily_mean_solar_cal_2level (lat , time , cosz , solar )
16541659
16551660real , dimension (:), intent (in ) :: lat
@@ -1735,7 +1740,8 @@ end subroutine daily_mean_solar_cal_0d
17351740! ! @param [in] <jnd> Ending index of latitude window
17361741! ! @param [in] <lat> Latitudes of model grid points
17371742! ! @param [out] <cosz> Cosine of solar zenith angle
1738- ! ! @param [out] <solar> Shortwave flux factor: cosine of zenith angle * daylight fraction / (earth-sun distance squared)
1743+ ! ! @param [out] <solar> Shortwave flux factor: cosine of zenith angle * daylight fraction /
1744+ ! ! (earth-sun distance squared)
17391745! ! @param [out] <fracday> Daylight fraction of time interval
17401746! ! @param [out] <rrsun> Earth-Sun distance (r) relative to semi-major axis of orbital ellipse (a):(a/r)**2
17411747subroutine annual_mean_solar_2d (js , je , lat , cosz , solar , fracday , &
@@ -1842,7 +1848,8 @@ end subroutine annual_mean_solar_2d
18421848! ! @param [in] <jnd> Ending index of latitude window
18431849! ! @param [in] <lat> Latitudes of model grid points
18441850! ! @param [out] <cosz> Cosine of solar zenith angle
1845- ! ! @param [out] <solar> Shortwave flux factor: cosine of zenith angle * daylight fraction / (earth-sun distance squared)
1851+ ! ! @param [out] <solar> Shortwave flux factor: cosine of zenith angle * daylight fraction /
1852+ ! ! (earth-sun distance squared)
18461853! ! @param [out] <fracday> Daylight fraction of time interval
18471854! ! @param [out] <rrsun_out> Earth-Sun distance (r) relative to semi-major axis of orbital ellipse (a):(a/r)**2
18481855subroutine annual_mean_solar_1d (jst , jnd , lat , cosz , solar , &
@@ -2141,7 +2148,7 @@ function half_day_2d (latitude, dec) result(h)
21412148!- --------------------------------------------------------------------
21422149 real , dimension (size (latitude,1 ),size (latitude,2 )):: &
21432150 cos_half_day, & ! < Cosine of half-day length [dimensionless]
2144- lat ! < Model latitude, adjusted so that it is never 0.5*pi or -0.5*pi
2151+ lat ! < Model latitude, adjusted so that it is never 0.5*pi or -0.5*pi
21452152 real :: tan_dec ! < tangent of solar declination [dimensionless]
21462153 real :: eps = 1.0E-05 ! < small increment
21472154
0 commit comments