Skip to content

Commit 6409285

Browse files
author
Martin D. Weinberg
committed
Comment changes only
1 parent ce347f5 commit 6409285

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

include/DiskDensityFunc.H

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
creation.
2222
2323
"""
24-
a = 1.0 # Scale radius
25-
h = 0.2 # Scale height
26-
f = math.exp(-math.fabs(z)/h) # Prevent overflows
27-
sech = 2.0*f / (1.0 + f*f) #
28-
return math.exp(-R/a)*sech*sech/(4*math.pi*h*a*a)
24+
a = 1.0 # Scale radius
25+
h = 0.2 # Scale height
26+
f = math.exp(-0.5*math.fabs(z)/h) # Prevent overflows
27+
sech = 2.0*f / (1.0 + f*f) #
28+
return math.exp(-R/a)*sech*sech/(8*math.pi*h*a*a)
2929
3030
--------------------------cut here--------------------------------
3131

0 commit comments

Comments
 (0)