Skip to content
Snippets Groups Projects

Throw error when LDL factorisation fails

Merged Marco Agnese requested to merge feature/throw_error_ldl into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -286,7 +286,7 @@ namespace Dune {
double Info [AMD_INFO];
if(amd_order (dimMat, ldlMatrix_.getColStart(), ldlMatrix_.getRowIndex(), P_, (double *) NULL, Info) < AMD_OK)
std::cout<<"WARNING: call to AMD failed."<<std::endl;
DUNE_THROW(InvalidStateException,"Error: AMD failed!");
if(verbose_ > 0)
amd_info (Info);
// compute the symbolic factorisation
@@ -304,7 +304,7 @@ namespace Dune {
delete [] Lnz_;
if(rank!=dimMat)
std::cout<<"WARNING: matrix is singular."<<std::endl;
DUNE_THROW(InvalidStateException,"Error: LDL factorisation failed!");
}
LDLMatrix ldlMatrix_;
Loading