Fix mistake
This commit is contained in:
parent
40af4d3b1a
commit
3ec69195f0
1 changed files with 2 additions and 2 deletions
|
|
@ -274,10 +274,10 @@ void WaveSimulation::solve(std::string outfile, std::vector<double> &steps)
|
|||
|
||||
for (size_t i=0; i < steps.size(); i++) {
|
||||
if (i == 0) {
|
||||
iterations = steps[i] / this->h;
|
||||
iterations = steps[i] / this->dt;
|
||||
}
|
||||
else {
|
||||
iterations = (steps[i] - steps[i-1]) / this->h;
|
||||
iterations = (steps[i] - steps[i-1]) / this->dt;
|
||||
}
|
||||
|
||||
for (size_t j=0; j < iterations; j++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue