From 2275fb85da31a8c802ebf9730935c8c00d6cdea0 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Mon, 14 Aug 2023 23:40:48 +0200 Subject: [PATCH] add a comment --- src/spicelib/analysis/cktsetbk.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/spicelib/analysis/cktsetbk.c b/src/spicelib/analysis/cktsetbk.c index 86f2cd764..25b016296 100644 --- a/src/spicelib/analysis/cktsetbk.c +++ b/src/spicelib/analysis/cktsetbk.c @@ -27,6 +27,8 @@ CKTsetBreak(CKTcircuit *ckt, double time) printf("[t:%e] \t want breakpoint for t = %e\n", ckt->CKTtime, time); #endif + /* If time equals ckt->CKTtime, but differences due to + limtations of double precision exist */ if (AlmostEqualUlps(time, ckt->CKTtime, 3)) { #ifdef TRACE_BREAKPOINT // #if (1) fprintf(stderr, "Warning: Setting a new breakpoint at %e is ignored,\n as current time is %e\n", time, ckt->CKTtime);