From e8cca6900be51612f220840bb6efa926850f7e15 Mon Sep 17 00:00:00 2001 From: Pascal Kuthe Date: Sat, 10 Dec 2022 23:43:48 +0100 Subject: [PATCH] slightly optimize predictor --- src/spicelib/devices/cktaccept.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/spicelib/devices/cktaccept.c b/src/spicelib/devices/cktaccept.c index a9a30f1e0..817f939ca 100644 --- a/src/spicelib/devices/cktaccept.c +++ b/src/spicelib/devices/cktaccept.c @@ -44,9 +44,7 @@ CKTaccept(CKTcircuit *ckt) } ckt->CKTsols[0]=temp; size = SMPmatSize(ckt->CKTmatrix); - for(i=0;i<=size;i++) { - ckt->CKTsols[0][i]=ckt->CKTrhs[i]; - } + memcpy(ckt->CKTsols[0], ckt->CKTrhs, (size + 1)*sizeof(double)); #endif /* PREDICTOR */ return(OK); }