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
20 changes: 20 additions & 0 deletions .github/workflows/cpu-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,23 @@ jobs:
python-version: '3.11'
- name: Test with pytest
run: uv run --locked pytest tests/test_pic1d

test-hermite-poisson-1d:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup_repo
with:
python-version: '3.11'
- name: Test with pytest
run: uv run --locked pytest tests/test_hermite_poisson_1d

test-hermite-legendre-1d:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup_repo
with:
python-version: '3.11'
- name: Test with pytest
run: uv run --locked pytest tests/test_hermite_legendre_1d
2 changes: 1 addition & 1 deletion adept/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from ._base_ import ADEPTModule, ergoExo # noqa: I001
from .mlflow_logging import MlflowLoggingModule
from . import hermite_poisson_1d, lpse2d, vlasov1d, vlasov2d
from . import hermite_legendre_1d, hermite_poisson_1d, lpse2d, vlasov1d, vlasov2d
3 changes: 3 additions & 0 deletions adept/_base_.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@ def _get_adept_module_(self, cfg: dict) -> ADEPTModule:
elif cfg["solver"] == "pic-1d":
from adept.pic1d import BasePIC1D as this_module

elif cfg["solver"] == "hermite-legendre-1d":
from adept.hermite_legendre_1d import BaseHermiteLegendre1D as this_module

else:
raise NotImplementedError("This solver approach has not been implemented yet")

Expand Down
3 changes: 3 additions & 0 deletions adept/_hermite_legendre_1d/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from .modules import BaseHermiteLegendre1D

__all__ = ["BaseHermiteLegendre1D"]
Loading
Loading