Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Sole Run of test_charge_deposition.py #611

Merged
merged 1 commit into from
May 14, 2024
Merged
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
10 changes: 7 additions & 3 deletions tests/python/test_charge_deposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@
import numpy as np
from conftest import basepath

import amrex.space3d as amr
import impactx
from impactx import ImpactX, amr


def test_charge_deposition(save_png=True):
"""
Deposit charge and access/plot it
"""
sim = impactx.ImpactX()
sim = ImpactX()

sim.n_cell = [16, 24, 32]
sim.load_inputs_file(basepath + "/examples/fodo/input_fodo.in")
Expand Down Expand Up @@ -97,4 +96,9 @@ def test_charge_deposition(save_png=True):
# implement a direct script run mode, so we can run this directly too,
# with interactive matplotlib windows, w/o pytest
if __name__ == "__main__":
amr.initialize([])

test_charge_deposition(save_png=False)

if amr.initialized():
amr.finalize()
Loading