From d0c35512ab9920325724a3670fbe3b2bd6ec3775 Mon Sep 17 00:00:00 2001 From: Pascal Kuthe Date: Mon, 16 Jan 2023 16:58:00 +0100 Subject: [PATCH] properly abort for invalid OSDI paramters --- src/osdi/osdisetup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osdi/osdisetup.c b/src/osdi/osdisetup.c index f28ee2387..9699fd509 100644 --- a/src/osdi/osdisetup.c +++ b/src/osdi/osdisetup.c @@ -293,7 +293,7 @@ int OSDIsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, free(node_ids); - return (OK); + return res; } /* OSDI does not differentiate between setup and temperature update so we just @@ -363,7 +363,7 @@ extern int OSDItemp(GENmodel *inModel, CKTcircuit *ckt) { // TODO check that there are no changes in node collapse? } } - return (OK); + return res; } /* delete internal nodes