Merge pull request #3150 from Tongdongq/always_print_prec_info

Always print CHOW_PATEL info if used
This commit is contained in:
Markus Blatt 2021-04-21 19:51:22 +02:00 committed by GitHub
commit 824df60e94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 9 deletions

View File

@ -98,12 +98,12 @@ BILU0<block_size>::~BILU0()
} else {
OPM_THROW(std::logic_error, "Error ilu reordering strategy not set correctly\n");
}
if(verbosity >= 3){
if(verbosity >= 1){
out << "BILU0 analysis took: " << t_analysis.stop() << " s, " << numColors << " colors\n";
}
if(verbosity >= 2){
out << "BILU0 CHOW_PATEL: " << CHOW_PATEL << ", CHOW_PATEL_GPU: " << CHOW_PATEL_GPU;
}
#if CHOW_PATEL
out << "BILU0 CHOW_PATEL: " << CHOW_PATEL << ", CHOW_PATEL_GPU: " << CHOW_PATEL_GPU;
#endif
OpmLog::info(out.str());

View File

@ -534,11 +534,9 @@ void ChowPatelIlu::decomposition(
out << "ChowPatelIlu copy sparsity pattern time: " << t_copy_pattern.stop() << " s";
OpmLog::info(out.str());
}
if (verbosity >= 2){
std::ostringstream out;
out << "ChowPatelIlu PARALLEL: " << PARALLEL;
OpmLog::info(out.str());
}
std::ostringstream out;
out << "ChowPatelIlu PARALLEL: " << PARALLEL;
OpmLog::info(out.str());
});