Jspice3
jfettrun.c File Reference
#include "spice.h"
#include <stdio.h>
#include "jfetdefs.h"
#include "sperror.h"
#include "cktext.h"
Include dependency graph for jfettrun.c:

Go to the source code of this file.

Functions

int JFETtrunc (GENmodel *inModel, CKTcircuit *ckt, double *timeStep)
 

Function Documentation

int JFETtrunc ( GENmodel inModel,
CKTcircuit ckt,
double *  timeStep 
)

Definition at line 21 of file jfettrun.c.

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
struct sJFETinstance * JFETnextInstance
Definition: jfetdefs.h:25