Skip to content

Commit

Permalink
delete FewModesFT copy constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
BenWibking committed Jun 14, 2024
1 parent a40bb0f commit 2e141f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/utils/few_modes_ft.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ class FewModesFT {
std::string prefix, int num_modes, ParArray2D<Real> k_vec, Real k_peak,
Real sol_weight, Real t_corr, uint32_t rseed, bool fill_ghosts = false);

// prevent objects from being copied (this prevents user error)
FewModesFT(FewModesFT const &) = delete;
FewModesFT &operator=(FewModesFT const &) = delete;

ParArray2D<Complex> GetVarHat() { return var_hat_; }
int GetNumModes() { return num_modes_; }
void SetPhases(MeshBlock *pmb, ParameterInput *pin);
Expand Down

0 comments on commit 2e141f5

Please sign in to comment.