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

[mini] Fix typo in laser pulse length to pulse duration conversion #1036

Merged
merged 1 commit into from
Nov 8, 2023
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
2 changes: 1 addition & 1 deletion docs/source/run/parameters.rst
Original file line number Diff line number Diff line change
Expand Up @@ -797,7 +797,7 @@ Parameters starting with ``lasers.`` apply to all laser pulses, parameters start
The laser pulse length in `z`. Use either the pulse length or the pulse duration ``<laser name>.tau``.

* ``<laser name>.tau`` (`float`) optional (default `0`)
The laser pulse duration. The pulse length is set to `laser.tau`:math:`/c_0`.
The laser pulse duration. The pulse length is set to `laser.tau`:math:`*c_0`.
Use either the pulse length or the pulse duration.

* ``<laser name>.focal_distance`` (`float`)
Expand Down
2 changes: 1 addition & 1 deletion src/laser/Laser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Laser::Laser (std::string name, bool laser_from_file)
bool duration_is_specified = queryWithParser(pp, "tau", m_tau);
AMREX_ALWAYS_ASSERT_WITH_MESSAGE( length_is_specified + duration_is_specified == 1,
"Please specify exlusively either the pulse length L0 or the duration tau of the laser");
if (duration_is_specified) m_L0 = m_tau/get_phys_const().c;
if (duration_is_specified) m_L0 = m_tau*get_phys_const().c;
queryWithParser(pp, "focal_distance", m_focal_distance);

queryWithParser(pp, "position_mean", m_position_mean);
Expand Down
Loading