mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-24 08:20:01 -06:00
Zero-initialize structure to avoid returning undefined
The compiler will otherwise complain that we are returning undefined data. There is no way for the client code to know whether this was the case.
This commit is contained in:
parent
f99377ceec
commit
baa9bf12e0
@ -56,7 +56,7 @@ namespace Opm
|
||||
const_cast<double*>(sa)
|
||||
};
|
||||
call_UMFPACK(&A, rhs, solution);
|
||||
LinearSolverReport rep;
|
||||
LinearSolverReport rep = {0};
|
||||
rep.converged = true;
|
||||
return rep;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user