Jspice3
jfettrun.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 /********** new in 3f2
8 Sydney University mods Copyright(c) 1989 Anthony E. Parker, David J. Skellern
9  Laboratory for Communication Science Engineering
10  Sydney University Department of Electrical Engineering, Australia
11 **********/
12 
13 #include "spice.h"
14 #include <stdio.h>
15 #include "jfetdefs.h"
16 #include "sperror.h"
17 #include "cktext.h"
18 
19 
20 int
21 JFETtrunc(inModel,ckt,timeStep)
22  GENmodel *inModel;
23  register CKTcircuit *ckt;
24  double *timeStep;
25 {
26  register JFETmodel *model = (JFETmodel*)inModel;
27  register JFETinstance *here;
28 
29  for( ; model != NULL; model = model->JFETnextModel) {
30  for(here=model->JFETinstances;here!=NULL;here = here->JFETnextInstance){
31  CKTterr(here->JFETqgs,ckt,timeStep);
32  CKTterr(here->JFETqgd,ckt,timeStep);
33  }
34  }
35  return(OK);
36 }
JFETinstance * JFETinstances
Definition: jfetdefs.h:169
#define OK
Definition: iferrmsg.h:17
#define NULL
Definition: spdefs.h:121
void CKTterr()
struct sJFETmodel * JFETnextModel
Definition: jfetdefs.h:167
static char model[32]
Definition: subckt.c:76
int JFETtrunc(GENmodel *inModel, CKTcircuit *ckt, double *timeStep)
Definition: jfettrun.c:21
struct sJFETinstance * JFETnextInstance
Definition: jfetdefs.h:25