Skip to content

Commit

Permalink
Add tests to CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
cemitch99 committed Oct 19, 2023
1 parent 099c9e5 commit 128bf9b
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
37 changes: 37 additions & 0 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -657,3 +657,40 @@ add_impactx_test(fodo_rf_sc.py
examples/epac2004_benchmarks/analysis_fodo_rf_SC.py
OFF # no plot script yet
)

# THERMAL BEAM EPAC2004 ##################################################
#
# with space charge
add_impactx_test(thermal
examples/epac2004_benchmarks/input_thermal.in
ON # ImpactX MPI-parallel
OFF # ImpactX Python interface
examples/epac2004_benchmarks/analysis_thermal.py
OFF # no plot script yet
)
add_impactx_test(thermal.py
examples/epac2004_benchmarks/run_thermal.py
OFF # ImpactX MPI-parallel
ON # ImpactX Python interface
examples/epac2004_benchmarks/analysis_thermal.py
OFF # no plot script yet
)

# BITHERMAL BEAM EPAC2004 ##################################################
#
# with space charge
add_impactx_test(bithermal
examples/epac2004_benchmarks/input_bithermal.in
ON # ImpactX MPI-parallel
OFF # ImpactX Python interface
examples/epac2004_benchmarks/analysis_bithermal.py
OFF # no plot script yet
)
add_impactx_test(bithermal.py
examples/epac2004_benchmarks/run_bithermal.py
OFF # ImpactX MPI-parallel
ON # ImpactX Python interface
examples/epac2004_benchmarks/analysis_bithermal.py
OFF # no plot script yet
)

2 changes: 1 addition & 1 deletion examples/epac2004_benchmarks/run_bithermal.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
ref.set_charge_qe(1.0).set_mass_MeV(938.27208816).set_energy_MeV(energy_MeV)

# particle bunch
distr = distribution.Bithermal(
distr = distribution.Thermal(
k=6.283185307179586,
kT=36.0e-6,
kT_halo=900.0e-6,
Expand Down
2 changes: 1 addition & 1 deletion examples/epac2004_benchmarks/run_thermal.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
ref.set_charge_qe(1.0).set_mass_MeV(938.27208816).set_energy_MeV(energy_MeV)

# particle bunch
distr = distribution.Bithermal(
distr = distribution.Thermal(
k=6.283185307179586,
kT=36.0e-6,
kT_halo=36.0e-6,
Expand Down

0 comments on commit 128bf9b

Please sign in to comment.