Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion doc/sections/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ Under ``simdata.f`` you find binning data, in this case a 1d binning plot in the

Parallel simulations can invoked from the same launch file for instance by::

mpirun -n 4 struphy_test.py
pip install -U mpi4py
mpirun -n 4 python struphy_test.py

If you want to learn more please check the :ref:`userguide`.

Expand Down
9 changes: 7 additions & 2 deletions src/struphy/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
from struphy.feec.basis_projection_ops import BasisProjectionOperators
from struphy.feec.mass import WeightedMassOperators
from struphy.feec.psydac_derham import SplineFunction
from struphy.fields_background.base import FluidEquilibrium, FluidEquilibriumWithB, MHDequilibrium
from struphy.fields_background.base import (
FluidEquilibrium,
FluidEquilibriumWithB,
MHDequilibrium,
NumericalMHDequilibrium,
)
from struphy.fields_background.equils import HomogenSlab
from struphy.fields_background.projected_equils import (
ProjectedFluidEquilibrium,
Expand Down Expand Up @@ -95,7 +100,7 @@ def setup_domain_and_equil(self, domain: Domain, equil: FluidEquilibrium):
"""If a numerical equilibirum is used, the domain is taken from this equilibirum."""
if equil is not None:
self._equil = equil
if "Numerical" in self.equil.__class__.__name__:
if isinstance(self.equil, NumericalMHDequilibrium):
self._domain = self.equil.domain
else:
self._domain = domain
Expand Down
Loading