diff --git a/FDTD/processing.cpp b/FDTD/processing.cpp index 90b4faf..6284718 100644 --- a/FDTD/processing.cpp +++ b/FDTD/processing.cpp @@ -133,11 +133,11 @@ void Processing::AddFrequency(double freq) m_FD_Samples.push_back(freq); } -void Processing::AddFrequency(vector freqs) +void Processing::AddFrequency(vector *freqs) { - for (size_t n=0;nsize();++n) { - AddFrequency(freqs.at(n)); + AddFrequency(freqs->at(n)); } } diff --git a/FDTD/processing.h b/FDTD/processing.h index 5908279..15cb688 100644 --- a/FDTD/processing.h +++ b/FDTD/processing.h @@ -45,7 +45,7 @@ public: void AddSteps(vector steps); void AddFrequency(double freq); - void AddFrequency(vector freqs); + void AddFrequency(vector *freqs); bool CheckTimestep(); virtual int Process() {return GetNextInterval();}