Skip to content
Snippets Groups Projects
Commit f2624739 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

Merge branch 'feature/throw_error_ldl' into 'master'

Throw error when LDL factorisation fails



See merge request !47
parents 06fd3be6 731cf884
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