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

Remove spurious comments in laser handling #828

Merged
merged 1 commit into from
Nov 28, 2022
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
14 changes: 2 additions & 12 deletions src/laser/Laser.H
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,9 @@
class Laser
{
public:

Laser (std::string name);
/*
amrex::Real getA0 () {return m_a0};
amrex::Real getK0 () {return m_k0};
amrex::Real getW0 () {return m_w0};
amrex::Real getL0 () {return m_l0};
amrex::Real getTau () {return m_tau};
amrex::Real getLambda () {return m_lambda0};
amrex::Real getFoc () {return m_focal_distance};
amrex::Real getX0 () {return m_position_mean[0]};
amrex::Real getY0 () {return m_position_mean[1]};
amrex::Real getZ0 () {return m_position_mean[2]};
*/

std::string m_name {""};
amrex::Real m_a0 {0.}; /**< Laser peak normalized amplitude */
amrex::Real m_w0 {0.}; /**< Laser waist */
Expand Down
10 changes: 0 additions & 10 deletions src/laser/MultiLaser.H
Original file line number Diff line number Diff line change
Expand Up @@ -181,16 +181,6 @@ public:

private:

/*
amrex::Gpu::DeviceVector<amrex::Real> getA0s ();
amrex::Gpu::DeviceVector<amrex::Real> getK0s ();
amrex::Gpu::DeviceVector<amrex::Real> getW0s ();
amrex::Gpu::DeviceVector<amrex::Real> getX0s ();
amrex::Gpu::DeviceVector<amrex::Real> getY0s ();
amrex::Gpu::DeviceVector<amrex::Real> getZ0s ();
amrex::Gpu::DeviceVector<amrex::Real> getL0s ();
amrex::Gpu::DeviceVector<amrex::Real> getZfocs ();
*/
/** Laser central wavelength.
* he central wavelength influences the solver. As long as all the lasers are on the same grid
* (part of MultiLaser), this must be a property of MultiLaser. */
Expand Down
67 changes: 0 additions & 67 deletions src/laser/MultiLaser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -761,70 +761,3 @@ MultiLaser::InitLaserSlice (const amrex::Geometry& geom, const int islice)
}
}
}
/*
amrex::Gpu::DeviceVector<amrex::Real>
MultiLaser::getA0s ()
{
amrex::Gpu::DeviceVector<amrex::Real> a0s(m_nlasers);
for (int i=0; i<m_nlasers; i++) {
a0s[i] = m_all_lasers[i].getA0();
}
return a0s;
}

amrex::Gpu::DeviceVector<amrex::Real>
MultiLaser::getK0s ()
{
amrex::Gpu::DeviceVector<amrex::Real> k0s(m_nlasers);
for (int i=0; i<m_nlasers; i++) {
k0s[i] = m_all_lasers[i].getK0();
}
return k0s;
}

amrex::Gpu::DeviceVector<amrex::Real>
MultiLaser::getW0s ()
{
amrex::Gpu::DeviceVector<amrex::Real> w0s(m_nlasers);
for (int i=0; i<m_nlasers; i++) {
w0s[i] = m_all_lasers[i].getW0();
}
return w0s;
}

amrex::Gpu::DeviceVector<amrex::Real>
MultiLaser::getX0s ()
{
amrex::Gpu::DeviceVector<amrex::Real> x0s(m_nlasers);
for (int i=0; i<m_nlasers; i++) {
x0s[i] = m_all_lasers[i].getX0();
}
return x0s;
}

amrex::Gpu::DeviceVector<amrex::Real>
MultiLaser::getY0s ()
{
amrex::Gpu::DeviceVector<amrex::Real> y0s(m_nlasers);
for (int i=0; i<m_nlasers; i++) {
x0s[i] = m_all_lasers[i].getX0();
}
return x0s;
}

amrex::Gpu::DeviceVector<amrex::Real>
MultiLaser::getX0s ()
{
amrex::Gpu::DeviceVector<amrex::Real> x0s(m_nlasers);
for (int i=0; i<m_nlasers; i++) {
x0s[i] = m_all_lasers[i].getX0();
}
return x0s;
}

amrex::Gpu::DeviceVector<amrex::Real> getX0s ();
amrex::Gpu::DeviceVector<amrex::Real> getY0s ();
amrex::Gpu::DeviceVector<amrex::Real> getZ0s ();
amrex::Gpu::DeviceVector<amrex::Real> getL0s ();
amrex::Gpu::DeviceVector<amrex::Real> getZfocs ();
*/