Skip to content

Commit

Permalink
Fixes wrong sign!
Browse files Browse the repository at this point in the history
  • Loading branch information
luizfelippesr committed May 2, 2018
1 parent 64dff19 commit 68d5e34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions galmag/B_generators/B_generator_disk.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,8 @@ def _get_B_mode(self, grid_arrays, mode_number, mode_normalization,
# Scaleheight in disk radius units (same units as s)
h = disk_height*disk_height_ref/disk_radius
# Local dynamo number
Dlocal = -dynamo_number * Shear * Omega * h**2
sqrt_Dlocal = np.sqrt(Dlocal)
Dlocal = dynamo_number * Shear * Omega * h**2
sqrt_Dlocal = np.sqrt(-Dlocal)
# Normalization correction
K0 = (-Dlocal*4./pi -Dlocal*9./pi**3/16 + 1.0)**(-0.5)
# Other reoccuring quantities
Expand Down

0 comments on commit 68d5e34

Please sign in to comment.