Bail out when the number of s parameter ports is less than 2.
This commit is contained in:
parent
60ddad4983
commit
7ac92bb9fc
|
|
@ -363,14 +363,17 @@ SPan(CKTcircuit* ckt, int restart)
|
||||||
data = TMALLOC(Ndata, 1);
|
data = TMALLOC(Ndata, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (ckt->CKTportCount == 0)
|
if (ckt->CKTportCount == 0)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "No RF Port is present\n");
|
fprintf(stderr, "\nError: No RF Port is present, cannot run sp analysis\n");
|
||||||
return (E_PARMVAL);
|
controlled_exit(EXIT_BAD);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ckt->CKTportCount == 1)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "\nError: Only one RF Port is found, we need at least two!\n");
|
||||||
|
controlled_exit(EXIT_BAD);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef XSPICE
|
#ifdef XSPICE
|
||||||
/* gtri - add - wbk - 12/19/90 - Add IPC stuff and anal_init and anal_type */
|
/* gtri - add - wbk - 12/19/90 - Add IPC stuff and anal_init and anal_type */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue