Skip to content

Commit a5b45c5

Browse files
committed
fix warning
1 parent 2b72a8f commit a5b45c5

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/problems/DustDampingIter/testDustDampingIter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ void save_reference_solution(const std::vector<double> &t, const std::vector<dou
196196

197197
// write data
198198
outfile << std::scientific << std::setprecision(15);
199-
for (int i = 0; i < t.size(); ++i) {
199+
for (auto i = 0; i < t.size(); ++i) {
200200
outfile << t[i] << " " << v_gas[i] << " " << v_dust1[i] << " " << v_dust2[i] << " " << E_gas[i] << "\n";
201201
}
202202

src/problems/DustDampingIterNoCorrection/testDustDampingIterNoCorrection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ void save_reference_solution(const std::vector<double> &t, const std::vector<dou
196196

197197
// write data
198198
outfile << std::scientific << std::setprecision(15);
199-
for (int i = 0; i < t.size(); ++i) {
199+
for (auto i = 0; i < t.size(); ++i) {
200200
outfile << t[i] << " " << v_gas[i] << " " << v_dust1[i] << " " << v_dust2[i] << " " << E_gas[i] << "\n";
201201
}
202202

src/problems/DustDampingNonIter/testDustDampingNonIter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ void save_reference_solution(const std::vector<double> &t, const std::vector<dou
196196

197197
// write data
198198
outfile << std::scientific << std::setprecision(15);
199-
for (int i = 0; i < t.size(); ++i) {
199+
for (auto i = 0; i < t.size(); ++i) {
200200
outfile << t[i] << " " << v_gas[i] << " " << v_dust1[i] << " " << v_dust2[i] << " " << E_gas[i] << "\n";
201201
}
202202

src/problems/DustDampingNonIterNoCorrection/testDustDampingNonIterNoCorrection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ void save_reference_solution(const std::vector<double> &t, const std::vector<dou
196196

197197
// write data
198198
outfile << std::scientific << std::setprecision(15);
199-
for (int i = 0; i < t.size(); ++i) {
199+
for (auto i = 0; i < t.size(); ++i) {
200200
outfile << t[i] << " " << v_gas[i] << " " << v_dust1[i] << " " << v_dust2[i] << " " << E_gas[i] << "\n";
201201
}
202202

0 commit comments

Comments
 (0)