Skip to content
Snippets Groups Projects
Commit c80b0c7d authored by Boris Martin's avatar Boris Martin
Browse files

fixed duplicated source

parent f250cf2d
No related branches found
No related tags found
No related merge requests found
Pipeline #12855 passed
......@@ -349,9 +349,8 @@ int main(int argc, char **argv)
double xmid = geo.Lx / 2;
double ymid = geo.Ly / 2;
for(int i = -4; i < 3; ++i) {
for (int j = -4; j < 3; ++j) {
xs.push_back(xmid + (i + 0.5) * lcwater * numLc);
ys.push_back(ymid + (j + 0.5) * lcwater * numLc);
ys.push_back(ymid + (i + 0.5) * lcwater * numLc);
if(xs.back() < 0 || xs.back() > geo.Lx) {
throw std::runtime_error("Source x out of bounds");
......@@ -361,7 +360,6 @@ int main(int argc, char **argv)
}
}
}
}
std::vector< std::tuple< double, double, double > > sources;
for(double x : xs) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment