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

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 16 of file diotrunc.c.

21 {
22  DIOmodel *model = (DIOmodel*)inModel;
23  DIOinstance *here;
24 
25  for ( ; model != NULL; model = model->DIOnextModel) {
26  for (here = model->DIOinstances; here != NULL;
27  here = here->DIOnextInstance) {
28 
29  CKTterr(here->DIOcapCharge,ckt,timeStep);
30  }
31  }
32  return (OK);
33 }
struct sDIOinstance * DIOnextInstance
Definition: diodefs.h:20
#define OK
Definition: iferrmsg.h:17
DIOinstance * DIOinstances
Definition: diodefs.h:121
#define NULL
Definition: spdefs.h:121
void CKTterr()
struct sDIOmodel * DIOnextModel
Definition: diodefs.h:119
static char model[32]
Definition: subckt.c:76