Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit f73dcd0e authored by gsell's avatar gsell
Browse files

Merge branch '735-index-error-when-reading-wake-function-from-sdds-file' into 'master'

Resolve "Index error when reading wake function from sdds file"

Closes #735

See merge request !596
parents 772af90e 4e4db832
No related branches found
No related tags found
1 merge request!596Resolve "Index error when reading wake function from sdds file"
......@@ -458,7 +458,6 @@ void GreenWakeFunction::setWakeFromFile(int NBin_m, double spacing) {
std::string name;
char temp[256];
int Np;
double dummy;
gsl_fft_real_wavetable *real;
gsl_fft_real_workspace *work;
std::ifstream fs;
......@@ -499,7 +498,7 @@ void GreenWakeFunction::setWakeFromFile(int NBin_m, double spacing) {
// read the wakefunction
for (int i = 0; i < Np; i ++) {
if (!fs.eof()) {
fs >> dist[i] >> wake[i] >> dummy;
fs >> dist[i] >> wake[i];
}
if (fs.eof()) {
throw GeneralClassicException("GreenWakeFunction::setWakeFromFile",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment