Jspice3
jjtrunc.c File Reference
#include "spice.h"
#include <stdio.h>
#include "jjdefs.h"
#include "sperror.h"
#include "util.h"
Include dependency graph for jjtrunc.c:

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 19 of file jjtrunc.c.

24 {
25  JJmodel *model = (JJmodel *)inModel;
26  JJinstance *here;
27 
28  for ( ; model!= NULL; model = model->JJnextModel) {
29  for (here = model->JJinstances ; here != NULL;
30  here = here->JJnextInstance) {
31 
32  CKTterr(here->JJvoltage,ckt,timeStep);
33 
34  }
35  }
36  return (OK);
37 }
JJinstance * JJinstances
Definition: jjdefs.h:84
#define OK
Definition: iferrmsg.h:17
#define NULL
Definition: spdefs.h:121
void CKTterr()
static char model[32]
Definition: subckt.c:76
struct sJJmodel * JJnextModel
Definition: jjdefs.h:82
struct sJJinstance * JJnextInstance
Definition: jjdefs.h:17