Jspice3
bjttrunc.c
Go to the documentation of this file.
1 /***************************************************************************
2 JSPICE3 adaptation of Spice3f2 - Copyright (c) Stephen R. Whiteley 1992
3 Copyright 1990 Regents of the University of California. All rights reserved.
4 Authors: 1985 Thomas L. Quarles
5  1993 Stephen R. Whiteley
6 ****************************************************************************/
7 
8 /*
9  * This routine performs truncation error calculations for
10  * BJTs in the circuit.
11  */
12 
13 #include "spice.h"
14 #include <stdio.h>
15 #include "bjtdefs.h"
16 #include "sperror.h"
17 #include "cktext.h"
18 
19 
20 int
21 BJTtrunc(inModel,ckt,timeStep)
22 
23 GENmodel *inModel;
24 CKTcircuit *ckt;
25 double *timeStep;
26 {
27  BJTmodel *model = (BJTmodel*)inModel;
28  BJTinstance *here;
29 
30  for ( ; model != NULL; model = model->BJTnextModel) {
31  for (here = model->BJTinstances; here != NULL;
32  here = here->BJTnextInstance) {
33  CKTterr(here->BJTqbe,ckt,timeStep);
34  CKTterr(here->BJTqbc,ckt,timeStep);
35  CKTterr(here->BJTqcs,ckt,timeStep);
36  }
37  }
38  return (OK);
39 }
BJTinstance * BJTinstances
Definition: bjtdefs.h:259
struct sBJTmodel * BJTnextModel
Definition: bjtdefs.h:257
int BJTtrunc(GENmodel *inModel, CKTcircuit *ckt, double *timeStep)
Definition: bjttrunc.c:21
struct sBJTinstance * BJTnextInstance
Definition: bjtdefs.h:20
#define OK
Definition: iferrmsg.h:17
#define NULL
Definition: spdefs.h:121
void CKTterr()
static char model[32]
Definition: subckt.c:76