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

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 16 of file captrunc.c.

21 {
22  CAPmodel *model = (CAPmodel*)inModel;
23  CAPinstance *here;
24 
25  for ( ; model!= NULL; model = model->CAPnextModel) {
26  for (here = model->CAPinstances; here != NULL;
27  here = here->CAPnextInstance) {
28 
29  CKTterr(here->CAPqcap,ckt,timeStep);
30  }
31  }
32  return (OK);
33 }
struct sCAPinstance * CAPnextInstance
Definition: capdefs.h:21
CAPinstance * CAPinstances
Definition: capdefs.h:57
#define OK
Definition: iferrmsg.h:17
#define NULL
Definition: spdefs.h:121
void CKTterr()
static char model[32]
Definition: subckt.c:76
struct sCAPmodel * CAPnextModel
Definition: capdefs.h:55