From d297a14ed8334451ffd0b3d417a82507b9809e4a Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Sat, 21 Feb 2026 14:30:51 +0100 Subject: [PATCH] Move comment --- src/spicelib/devices/vsrc/vsrcload.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/spicelib/devices/vsrc/vsrcload.c b/src/spicelib/devices/vsrc/vsrcload.c index 5f88bc587..c4190d25d 100644 --- a/src/spicelib/devices/vsrc/vsrcload.c +++ b/src/spicelib/devices/vsrc/vsrcload.c @@ -86,12 +86,7 @@ VSRCload(GENmodel *inModel, CKTcircuit *ckt) } else { time = ckt->CKTtime; } - /* use the transient functions. Parameter limits: - TR negative or 0 --> TR = ckt->CKTstep - TF negative or 0 --> TF = ckt->CKTstep - PW < 0 --> PW = 0 - PER <= 0 --> PER = TR + TF + PW - */ + /* use the transient functions. */ switch(here->VSRCfunctionType) { default: @@ -99,6 +94,12 @@ VSRCload(GENmodel *inModel, CKTcircuit *ckt) break; case PULSE: { + /* Parameter limits : + TR negative or 0 --> TR = ckt->CKTstep + TF negative or 0 --> TF = ckt->CKTstep + PW < 0 --> PW = 0 + PER <= 0 --> PER = TR + TF + PW + */ double V1, V2, TD, TR, TF, PW, PER; double basetime = 0; double PHASE;