back to 10000
This commit is contained in:
@@ -150,7 +150,7 @@ int main(int argc, char *argv[]) {
|
||||
// Set the Jacobi parameters
|
||||
const int n = 9 * 64;
|
||||
const double eps = 1e-7;
|
||||
const int maxNumIter = 100;
|
||||
const int maxNumIter = 1000;
|
||||
|
||||
// Run the serial and parallel versions
|
||||
// Result is saved to file.
|
||||
|
||||
@@ -156,9 +156,9 @@ Jacobi::Result JacobiMPI::run(const Matrix &init, double epsilon,
|
||||
|
||||
nIter++;
|
||||
std::swap(t0, t1);
|
||||
if (nIter == 100) {
|
||||
std::cout << phi[t1] << std::endl;
|
||||
}
|
||||
// if (nIter == 100) {
|
||||
// std::cout << phi[t1] << std::endl;
|
||||
// }
|
||||
}
|
||||
|
||||
// std::cout << phi[t1] << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user