Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-dudt committed Aug 22, 2024
1 parent ed68131 commit 0046524
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion desc/compute/_equil.py
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ def _P_fusion(params, transforms, profiles, data, **kwargs):
energy = 0.82e6 + 2.45e6 # eV

reaction_rate = jnp.sum(
*data["ni"] ** 2
data["ni"] ** 2
* data["<sigma*nu>"]
* data["sqrt(g)"]
* transforms["grid"].weights
Expand Down
2 changes: 1 addition & 1 deletion desc/objectives/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
QuadraticFlux,
ToroidalFlux,
)
from ._confinement import HeatingPowerISS04
from ._equilibrium import (
CurrentDensity,
Energy,
Expand Down Expand Up @@ -39,6 +38,7 @@
QuasisymmetryTripleProduct,
QuasisymmetryTwoTerm,
)
from ._power_balance import FusionPower, HeatingPowerISS04
from ._profiles import Pressure, RotationalTransform, Shear, ToroidalCurrent
from ._stability import MagneticWell, MercierStability
from .getters import (
Expand Down

0 comments on commit 0046524

Please sign in to comment.