janitaws/latex #14

Merged
coryab merged 34 commits from janitaws/latex into develop 2024-01-01 16:38:44 +00:00
Showing only changes of commit 3ec69195f0 - Show all commits

View File

@ -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++) {