Fix Bug #630 - "pwl if r=last time, simulation never ends".
Allowing a PWL repeat to start at the last time-point makes no sense.
This commit is contained in:
parent
9c75367cfb
commit
0616965a67
|
|
@ -140,7 +140,7 @@ VSRCparam(int param, IFvalue *value, GENinstance *inst, IFvalue *select)
|
||||||
}
|
}
|
||||||
|
|
||||||
end_time = *(here->VSRCcoeffs + here->VSRCfunctionOrder-2);
|
end_time = *(here->VSRCcoeffs + here->VSRCfunctionOrder-2);
|
||||||
if ( here->VSRCr > end_time ) {
|
if ( here->VSRCr >= end_time ) {
|
||||||
fprintf(stderr, "ERROR: repeat start time value %g for pwl voltage source must be smaller than final time point given!\n", here->VSRCr );
|
fprintf(stderr, "ERROR: repeat start time value %g for pwl voltage source must be smaller than final time point given!\n", here->VSRCr );
|
||||||
return ( E_PARMVAL );
|
return ( E_PARMVAL );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue