Skip to content

Commit

Permalink
Lines: clarify error message when Zinv fails
Browse files Browse the repository at this point in the history
  • Loading branch information
PMeira committed Jan 16, 2024
1 parent 624b6cb commit 39bf656
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/PDElements/Line.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1276,6 +1276,13 @@ procedure TLineObj.CalcYPrim;
begin
// If error, put in tiny series conductance
// TEMc - shut this up for the CDPSM connectivity profile test, or whenever else it gets annoying
if DSS_CAPI_EARLY_ABORT then
begin
DoErrorMsg('TLineObj.CalcYPrim',
Format(_('Matrix Inversion Error for Line "%s"'), [Name]),
_('Invalid impedance specified. Aborting solution.'), 183);
Exit;
end;
DoErrorMsg('TLineObj.CalcYPrim',
Format(_('Matrix Inversion Error for Line "%s"'), [Name]),
_('Invalid impedance specified. Replaced with tiny conductance.'), 183);
Expand Down

0 comments on commit 39bf656

Please sign in to comment.