Holger Vogt
5424fd0d43
Reverse the sequence of dynamic-gmin and new-gmin.
The old method dynamic-gmin now comes first,
new-gmin will follow when the former has failed to converge.
4 years ago
Holger Vogt
d5dc757288
correct assignment of a variable value to a 1-bit-field
only by a logic comparison.
4 years ago
Holger Vogt
89eaf7739c
Remove unused variables
4 years ago
Holger Vogt
fb98f7873b
remove some compiler warnings
4 years ago
Holger Vogt
f9b743aa2a
remove compiler warnings
5 years ago
Holger Vogt
36dd77f63e
if step size in optran command is set to 0,
optran is deselected.
5 years ago
Holger Vogt
68c5eb2d6b
Add resistance sweep error message for failing optran
5 years ago
Holger Vogt
8708b6651b
Optran may throw an error message while in temp sweep
and optran fails: message added (in addition prevent a crash)
5 years ago
Holger Vogt
1b3e192bfd
errno needs to be nulled in Linux.
Its previous value will be returned after checking.
5 years ago
Holger Vogt
f06496c912
Enable command 'optran' in spinit or .spiceinit,
when the circuit is not yet loaded.
Then the optran data are stored in static variables,
until optran is called again with arg NULL from inp.c,
to set the data in ft_curckt->ci_defTask.
5 years ago
Holger Vogt
493cf73f7f
optran is only selected when the 'optran' command has been processed.
If not, the call to the OPtran() function returns the previous
'converged' value.
5 years ago
Holger Vogt
7f1fdd3934
Don't do optran, if command optran is not given.
5 years ago
Holger Vogt
711157e85d
Update comment: 0 is no initial iteration
5 years ago
Holger Vogt
2ef3f66f96
if 'set ngdebug' print out transient initial conditions also with UIC set.
5 years ago
Holger Vogt
41ead284f3
make the error detection work properly
5 years ago
Holger Vogt
4e03efacb7
Use InpEvaluate() instead of strtod to enable ngspice numbers
with scale factors Meg k m u n p f etc.
6 years ago
Holger Vogt
3be5926f2c
Reverse stepsize and finaltime in optran command,
stepsize first as in tran command.
6 years ago
Holger Vogt
bca099ca29
prevent crash if first breakpoint is beyond optran max time
6 years ago
Holger Vogt
b07a54b8e1
test of supply ramping
6 years ago
Holger Vogt
7de526237e
upon finishing 'optran', restore old CKTstep
remove unused
6 years ago
Holger Vogt
0eafec254e
safeguard command 'optran' against circuit no being loaded
6 years ago
Holger Vogt
cf61e1e564
add missing header
6 years ago
Holger Vogt
83e223fafc
header for optran
6 years ago
Holger Vogt
a20afc54a5
When we sre ready, reset CKTmaxstep to its previous value
6 years ago
Holger Vogt
3956095484
set maxstepsize to stepsize
6 years ago
Holger Vogt
ecdb3b9eb4
set the task values, not the ckt values,
because task is called only afterwards when
the simulation command is given.
6 years ago
Holger Vogt
fd36eb552f
set stepsize
6 years ago
Holger Vogt
ab6224767b
Add command 'optran' to set 6 flags for transient op
6 years ago
Holger Vogt
df0792818f
Transient op calculation added to the standard operating point code.
When standard iteration, gmin stepping and source stepping fail,
try a transient simulation (like tran with uic option) to
determine the op. Implemented for AC and Tran simulation.
7 years ago
Holger Vogt
c38b8e3615
Fix a bug in the 'dc' progress report
5 years ago
Holger Vogt
c75e4129f4
Plug another memory leak in LTRA transmission line
5 years ago
Holger Vogt
d19c8e7f41
Efficiency: Remove setting the random seed to behind the options selection
Evaluate '.options cshunt=xx' earlier to allow the following:
Set the option by calling INPpas4() during parsing the circuit,
before .ic is set.
Ckt and Task cshunt are still set, but their values are available
only too late for INPpas4(), but may be used by command 'option'
(w/o parameters) for assessing the options and their values.
5 years ago
Holger Vogt
f8357dad88
Prepare Cshunt: add a cpacitor to each voltage node
Function inppas4() will add the extra caps, to be done.
5 years ago
Holger Vogt
f10676a8aa
re-enable tran TSTART, which got lost in Commit [da7172] when UIC is set
5 years ago
Holger Vogt
c69a4d6633
fix typo
Reported by Ferdy in bug report #506
6 years ago
Kevin Zheng
efde6902a0
indentation
6 years ago
Holger Vogt
54d8c990c5
src/spicelib/analysis/dcpss.c
line endings Windows --> Linux
6 years ago
Holger Vogt
da71726765
Do not print tansient initial conditions, if uic is selected.
This output at time 0 is 0 as well. Only the next time step
would be valid.
Do not save the time 0 values because they are 0.
6 years ago
Holger Vogt
a459d37548
remove unused
6 years ago
Holger Vogt
8c4394839d
remove unused code that is now in CKTncDump()
6 years ago
Jim Monte
8d16e3e034
FALLTHROUGH
6 years ago
Holger Vogt
1c2dd967da
During setup, ASRC (aka B source) uses ckt->CKTrhsOld[node->number]
for initial evaluation. .nodeset or .ic have never set CKTrhsOld,
so initalization for B source failed.
We still have to check why .nodeset and .ic are set two times,
first in CKTic(), then in CKTload()!
6 years ago
Holger Vogt
e28cae42f1
enable both new gmin and dyngmin
6 years ago
Holger Vogt
673a14afdb
more conservative op calculation:
start with new gmin, if this fails, fall back to dynamic gmin,
then source stepping
6 years ago
Holger Vogt
020c5578a1
remove unused code snippet
6 years ago
Holger Vogt
b81953fafd
enable true gmin stepping
The old behavior, stepping diagmin, is re-obtained by adding flag
set 'dyngmin'
to .spiceinit or spinit
This flag may also be set within a .control section (e.g. to
compare results)
6 years ago
Holger Vogt
06239e567f
plug a memory leak (in case of failing op for tran calculation)
6 years ago
Jim Monte
2d9110bf65
Add const to some parameters, made function static
6 years ago
Jim Monte
190c7fb75c
Clarified error message
6 years ago
Holger Vogt
651ba72344
return immediately if ckt is NULL
6 years ago