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

WarpX class: simplify return type of get_spectral_solver_fp using auto& #5656

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
8 changes: 1 addition & 7 deletions Source/WarpX.H
Original file line number Diff line number Diff line change
Expand Up @@ -1084,13 +1084,7 @@ public:
void PSATDSubtractCurrentPartialSumsAvg ();

#ifdef WARPX_USE_FFT

# ifdef WARPX_DIM_RZ
SpectralSolverRZ&
# else
SpectralSolver&
# endif
get_spectral_solver_fp (int lev) {return *spectral_solver_fp[lev];}
auto& get_spectral_solver_fp (int lev) {return *spectral_solver_fp[lev];}
#endif

FiniteDifferenceSolver * get_pointer_fdtd_solver_fp (int lev) { return m_fdtd_solver_fp[lev].get(); }
Expand Down
Loading