Update output of test application
This commit is contained in:
parent
719855288e
commit
b985707d2c
@ -34,13 +34,18 @@ int main(int argc, char *argv[]) {
|
|||||||
|
|
||||||
// loop 100 times
|
// loop 100 times
|
||||||
// output is currently generated by the method itself
|
// output is currently generated by the method itself
|
||||||
for (int i = 0; i < 1; i++) {
|
for (int t = 0; t < 1; t++) {
|
||||||
diffu.simulate(field, alpha);
|
diffu.simulate(field, alpha);
|
||||||
|
|
||||||
cout << "Iteration: " << i << "\n\n";
|
cout << "Iteration: " << t << "\n\n";
|
||||||
|
|
||||||
for (int j = 0; j < field.size(); j++) {
|
// iterate through rows
|
||||||
cout << field[j] << "\n";
|
for (int i = 0; i < m; i++) {
|
||||||
|
// iterate through columns
|
||||||
|
for (int j = 0; j < n; j++) {
|
||||||
|
cout << left << std::setw(20) << field[i*n + j];
|
||||||
|
}
|
||||||
|
cout << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
cout << "\n" << endl;
|
cout << "\n" << endl;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user