checking the results from the direct solver invDX

since I has not figure out a way to detect/catch the singularity of the
matrix with UMFPack, currently, we only check the validity of the
results to make sure inf or nan not enter other part of the simulation.

It can easiliy results in assertion failure, and causes the running to
be terminated. After all, it mostly likely is a numerical issue
generated during the non-linear iteration process.
This commit is contained in:
Kai Bao
2017-10-14 08:50:44 +02:00
parent d407e516ce
commit 7054317d98
3 changed files with 44 additions and 24 deletions

View File

@@ -190,11 +190,6 @@ namespace Opm {
if (param_.solve_welleq_initially_ && iterationIdx == 0) {
// solve the well equations as a pre-processing step
report = solveWellEq(ebosSimulator, dt, well_state);
if (report.converged) {
std::cout << " solveWellEq converged ! " << std::endl;
} else {
std::cout << " solveWellEq does not get converged ! " << std::endl;
}
}
assembleWellEq(ebosSimulator, dt, well_state, false);