set the task values, not the ckt values,
because task is called only afterwards when the simulation command is given.
This commit is contained in:
parent
72c72268c5
commit
ecdb3b9eb4
|
|
@ -51,15 +51,18 @@ void com_optran(wordlist* wl) {
|
|||
/* current circuit */
|
||||
CKTcircuit* cckt = ft_curckt->ci_ckt;
|
||||
/* wordlist with 6 parameters */
|
||||
cckt->CKTnoOpIter = strtol(wltmp->wl_word, &stpstr, 10);
|
||||
ft_curckt->ci_defTask->TSKnoOpIter = strtol(wltmp->wl_word, &stpstr, 10);
|
||||
// cckt->CKTnoOpIter = strtol(wltmp->wl_word, &stpstr, 10);
|
||||
if ((errno == ERANGE) || (*stpstr != '\0'))
|
||||
goto bugquit;
|
||||
wltmp = wltmp->wl_next;
|
||||
cckt->CKTnumGminSteps = strtol(wltmp->wl_word, &stpstr, 10);
|
||||
ft_curckt->ci_defTask->TSKnumGminSteps = strtol(wltmp->wl_word, &stpstr, 10);
|
||||
// cckt->CKTnumGminSteps = strtol(wltmp->wl_word, &stpstr, 10);
|
||||
if ((errno == ERANGE) || (*stpstr != '\0'))
|
||||
goto bugquit;
|
||||
wltmp = wltmp->wl_next;
|
||||
cckt->CKTnumSrcSteps = strtol(wltmp->wl_word, &stpstr, 10);
|
||||
ft_curckt->ci_defTask->TSKnumSrcSteps = strtol(wltmp->wl_word, &stpstr, 10);
|
||||
// cckt->CKTnumSrcSteps = strtol(wltmp->wl_word, &stpstr, 10);
|
||||
if ((errno == ERANGE) || (*stpstr != '\0'))
|
||||
goto bugquit;
|
||||
wltmp = wltmp->wl_next;
|
||||
|
|
@ -78,7 +81,7 @@ void com_optran(wordlist* wl) {
|
|||
fprintf(stderr, "Error: Step size larger than final time.\n");
|
||||
goto bugquit;
|
||||
}
|
||||
if (opstepsize < opfinaltime/50.) {
|
||||
if (opstepsize > opfinaltime/50.) {
|
||||
fprintf(stderr, "Warning: Step size potentially too small.\n");
|
||||
}
|
||||
if (opramptime > opfinaltime) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue