@@ -157,7 +157,7 @@ subroutine basin_builder_topography(D, G, param_file, max_depth)
157157end subroutine basin_builder_topography
158158
159159! > Returns the value of a triangular function centered at x=x0 with value 1
160- ! ! and linearly decreasing to 0 at x=x0+/-L, and 0 otherwise.
160+ ! ! and linearly decreasing to 0 at x=x0+/-L, and 0 otherwise [nondim] .
161161! ! If clip is present the top of the cone is cut off at "clip", which
162162! ! effectively defaults to 1.
163163real function cone (x , x0 , L , clip )
@@ -170,7 +170,7 @@ real function cone(x, x0, L, clip)
170170 if (present (clip)) cone = min (clip, cone)
171171end function cone
172172
173- ! > Returns an s-curve s(x) s.t. s(x0)<=0, s(x0+L)>=1 and cubic in between.
173+ ! > Returns an s-curve s(x) s.t. s(x0)<=0, s(x0+L)>=1 and cubic in between [nondim] .
174174real function scurve (x , x0 , L )
175175 real , intent (in ) :: x ! < Coordinate in arbitrary units [A]
176176 real , intent (in ) :: x0 ! < position of peak in arbitrary units [A]
@@ -181,7 +181,7 @@ real function scurve(x, x0, L)
181181 scurve = ( 3 . - 2 .* s ) * ( s * s )
182182end function scurve
183183
184- ! > Returns a "coastal" profile.
184+ ! > Returns a "coastal" profile [nondim] .
185185real function cstprof (x , x0 , L , lf , bf , sf , sh )
186186 real , intent (in ) :: x ! < Coordinate in arbitrary units [A]
187187 real , intent (in ) :: x0 ! < position of peak in arbitrary units [A]
@@ -196,7 +196,7 @@ real function cstprof(x, x0, L, lf, bf, sf, sh)
196196 cstprof = sh * scurve(s- lf,0 .,bf) + (1 .- sh) * scurve(s - (1 .- sf),0 .,sf)
197197end function cstprof
198198
199- ! > Distance between points x,y and a line segment (x0,y0) and (x0,y1).
199+ ! > Distance between points x,y and a line segment (x0,y0) and (x0,y1) in arbitrary units [A] .
200200real function dist_line_fixed_x (x , y , x0 , y0 , y1 )
201201 real , intent (in ) :: x ! < X-coordinate in arbitrary units [A]
202202 real , intent (in ) :: y ! < Y-coordinate in arbitrary units [A]
@@ -211,7 +211,7 @@ real function dist_line_fixed_x(x, y, x0, y0, y1)
211211 dist_line_fixed_x = sqrt ( (dx* dx) + (dy* dy) )
212212end function dist_line_fixed_x
213213
214- ! > Distance between points x,y and a line segment (x0,y0) and (x1,y0).
214+ ! > Distance between points x,y and a line segment (x0,y0) and (x1,y0) in arbitrary units [A] .
215215real function dist_line_fixed_y (x , y , x0 , x1 , y0 )
216216 real , intent (in ) :: x ! < X-coordinate in arbitrary units [A]
217217 real , intent (in ) :: y ! < Y-coordinate in arbitrary units [A]
@@ -222,7 +222,7 @@ real function dist_line_fixed_y(x, y, x0, x1, y0)
222222 dist_line_fixed_y = dist_line_fixed_x(y, x, y0, x0, x1)
223223end function dist_line_fixed_y
224224
225- ! > An "angled coast profile".
225+ ! > An "angled coast profile" [nondim] .
226226real function angled_coast (lon , lat , lon_eq , lat_mer , dr , sh )
227227 real , intent (in ) :: lon ! < Longitude [degrees_E]
228228 real , intent (in ) :: lat ! < Latitude [degrees_N]
@@ -238,7 +238,7 @@ real function angled_coast(lon, lat, lon_eq, lat_mer, dr, sh)
238238 angled_coast = cstprof(r, 0 ., dr, 0.125 , 0.125 , 0.5 , sh)
239239end function angled_coast
240240
241- ! > A "coast profile" applied in an N-S line from lonC,lat0 to lonC,lat1.
241+ ! > A "coast profile" applied in an N-S line from lonC,lat0 to lonC,lat1 [nondim] .
242242real function NS_coast (lon , lat , lonC , lat0 , lat1 , dlon , sh )
243243 real , intent (in ) :: lon ! < Longitude [degrees_E]
244244 real , intent (in ) :: lat ! < Latitude [degrees_N]
@@ -253,7 +253,7 @@ real function NS_coast(lon, lat, lonC, lat0, lat1, dlon, sh)
253253 NS_coast = cstprof(r, 0 ., dlon, 0.125 , 0.125 , 0.5 , sh)
254254end function NS_coast
255255
256- ! > A "coast profile" applied in an E-W line from lon0,latC to lon1,latC.
256+ ! > A "coast profile" applied in an E-W line from lon0,latC to lon1,latC [nondim] .
257257real function EW_coast (lon , lat , latC , lon0 , lon1 , dlat , sh )
258258 real , intent (in ) :: lon ! < Longitude [degrees_E]
259259 real , intent (in ) :: lat ! < Latitude [degrees_N]
@@ -268,7 +268,7 @@ real function EW_coast(lon, lat, latC, lon0, lon1, dlat, sh)
268268 EW_coast = cstprof(r, 0 ., dlat, 0.125 , 0.125 , 0.5 , sh)
269269end function EW_coast
270270
271- ! > A NS ridge with a cone profile
271+ ! > A NS ridge with a cone profile [nondim]
272272real function NS_conic_ridge (lon , lat , lonC , lat0 , lat1 , dlon , rh )
273273 real , intent (in ) :: lon ! < Longitude [degrees_E]
274274 real , intent (in ) :: lat ! < Latitude [degrees_N]
@@ -283,7 +283,7 @@ real function NS_conic_ridge(lon, lat, lonC, lat0, lat1, dlon, rh)
283283 NS_conic_ridge = 1 . - rh * cone(r, 0 ., dlon)
284284end function NS_conic_ridge
285285
286- ! > A NS ridge with an scurve profile
286+ ! > A NS ridge with an scurve profile [nondim]
287287real function NS_scurve_ridge (lon , lat , lonC , lat0 , lat1 , dlon , rh )
288288 real , intent (in ) :: lon ! < Longitude [degrees_E]
289289 real , intent (in ) :: lat ! < Latitude [degrees_N]
@@ -298,7 +298,7 @@ real function NS_scurve_ridge(lon, lat, lonC, lat0, lat1, dlon, rh)
298298 NS_scurve_ridge = 1 . - rh * (1 . - scurve(r, 0 ., dlon) )
299299end function NS_scurve_ridge
300300
301- ! > A circular ridge with cutoff conic profile
301+ ! > A circular ridge with cutoff conic profile [nondim]
302302real function circ_conic_ridge (lon , lat , lon0 , lat0 , ring_radius , ring_thickness , ridge_height )
303303 real , intent (in ) :: lon ! < Longitude [degrees_E]
304304 real , intent (in ) :: lat ! < Latitude [degrees_N]
@@ -316,7 +316,7 @@ real function circ_conic_ridge(lon, lat, lon0, lat0, ring_radius, ring_thickness
316316 circ_conic_ridge = 1 . - frac_ht ! nondim depths (1-frac_ridge_height) .. 1
317317end function circ_conic_ridge
318318
319- ! > A circular ridge with cutoff scurve profile
319+ ! > A circular ridge with cutoff scurve profile [nondim]
320320real function circ_scurve_ridge (lon , lat , lon0 , lat0 , ring_radius , ring_thickness , ridge_height )
321321 real , intent (in ) :: lon ! < Longitude [degrees_E]
322322 real , intent (in ) :: lat ! < Latitude [degrees_N]
0 commit comments