Skip to content

Commit

Permalink
Merge branch 'init_focusing_beam' of github.com:aeriforme/WarpX into …
Browse files Browse the repository at this point in the history
…init_focusing_beam
  • Loading branch information
aeriforme committed Feb 13, 2024
2 parents cef00c8 + 447876c commit 3ae0447
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion Examples/Tests/gaussian_beam/analysis_focusing_beam.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,3 @@ def s(z, sigma0, emit):

test_name = os.path.split(os.getcwd())[1]
checksumAPI.evaluate_checksum(test_name, filename,output_format='openpmd')

2 changes: 1 addition & 1 deletion Examples/Tests/gaussian_beam/inputs_focusing_beam
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ diag1.intervals = 1
diag1.diag_type = Full
diag1.write_species = 1
diag1.species = beam1
diag1.beam1.variables = w x y z
diag1.beam1.variables = w x y z
diag1.fields_to_plot = rho_beam1
diag1.format = openpmd
diag1.dump_last_timestep = 1
2 changes: 1 addition & 1 deletion Source/Initialization/PlasmaInjector.H
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public:
int symmetrization_order = 4;
bool do_focusing = false;
amrex::Real focal_distance;

bool external_file = false; //! initialize from an openPMD file
amrex::Real z_shift = 0.0; //! additional z offset for particle positions
#ifdef WARPX_USE_OPENPMD
Expand Down
2 changes: 1 addition & 1 deletion Source/Initialization/PlasmaInjector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ void PlasmaInjector::setupGaussianBeam (amrex::ParmParse const& pp_species)
utils::parser::queryWithParser(pp_species, source_name, "symmetrization_order", symmetrization_order);
const bool focusing_is_specified = pp_species.contains("focal_distance");
if(focusing_is_specified){
do_focusing = true;
do_focusing = true;
utils::parser::queryWithParser(pp_species, source_name, "focal_distance", focal_distance);
}
const std::set<int> valid_symmetries = {4,8};
Expand Down

0 comments on commit 3ae0447

Please sign in to comment.