mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-22 13:31:21 +03:00
print intermediate values only in debug mode
This commit is contained in:
parent
7a7858a7fb
commit
2a8848bf23
@ -169,6 +169,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
// tol_condition /= (degree - 1);
|
||||
|
||||
#if defined(DEBUG) || !defined(NDEBUG)
|
||||
if (iter % 500 == 0)
|
||||
{
|
||||
printf("Iter: %lu\t", iter);
|
||||
@ -177,7 +178,6 @@ int main(int argc, char **argv)
|
||||
printf("\t\tabsolute average change: %.4g\n", tol_condition);
|
||||
}
|
||||
|
||||
#if defined(DEBUG) || !defined(NDEBUG)
|
||||
fprintf(log_file, "%.4g", tol_condition);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user