Skip to content
Snippets Groups Projects
Commit 731cf884 authored by Marco Agnese's avatar Marco Agnese
Browse files

[bugfix] throw error when LDL factorisation fails

parent 06fd3be6
No related branches found
No related tags found
1 merge request!47Throw error when LDL factorisation fails
Pipeline #
......@@ -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_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment