explicitly re-export some names

This commit is contained in:
Jan Petykiewicz 2024-07-28 23:22:21 -07:00
parent 99c22d572f
commit 6f3ae5a64f
3 changed files with 47 additions and 10 deletions

View File

@ -91,5 +91,12 @@ $$
""" """
from . import solvers, operators, functional, scpml, waveguide_2d, waveguide_3d from . import (
solvers as solvers,
operators as operators,
functional as functional,
scpml as scpml,
waveguide_2d as waveguide_2d,
waveguide_3d as waveguide_3d,
)
# from . import farfield, bloch TODO # from . import farfield, bloch TODO

View File

@ -741,8 +741,24 @@ the true values can be multiplied back in after the simulation is complete if no
normalized results are needed. normalized results are needed.
""" """
from .types import fdfield_t, vfdfield_t, cfdfield_t, vcfdfield_t, dx_lists_t, dx_lists_mut from .types import (
from .types import fdfield_updater_t, cfdfield_updater_t fdfield_t as fdfield_t,
from .vectorization import vec, unvec vfdfield_t as vfdfield_t,
from . import operators, functional, types, vectorization cfdfield_t as cfdfield_t,
vcfdfield_t as vcfdfield_t,
dx_lists_t as dx_lists_t,
dx_lists_mut as dx_lists_mut,
fdfield_updater_t as fdfield_updater_t,
cfdfield_updater_t as cfdfield_updater_t,
)
from .vectorization import (
vec as vec,
unvec as unvec,
)
from . import (
operators as operators,
functional as functional,
types as types,
vectorization as vectorization,
)

View File

@ -159,8 +159,22 @@ Boundary conditions
# TODO notes about boundaries / PMLs # TODO notes about boundaries / PMLs
""" """
from .base import maxwell_e, maxwell_h from .base import (
from .pml import cpml_params, updates_with_cpml maxwell_e as maxwell_e,
from .energy import (poynting, poynting_divergence, energy_hstep, energy_estep, maxwell_h as maxwell_h,
delta_energy_h2e, delta_energy_j) )
from .boundaries import conducting_boundary from .pml import (
cpml_params as cpml_params,
updates_with_cpml as updates_with_cpml,
)
from .energy import (
poynting as poynting,
poynting_divergence as poynting_divergence,
energy_hstep as energy_hstep,
energy_estep as energy_estep,
delta_energy_h2e as delta_energy_h2e,
delta_energy_j as delta_energy_j,
)
from .boundaries import (
conducting_boundary as conducting_boundary,
)