Jspice3
Main Page
Data Structures
Files
File List
Globals
captrunc.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
1992 Stephen R. Whiteley
6
****************************************************************************/
7
8
#include "
spice.h
"
9
#include <stdio.h>
10
#include "
capdefs.h
"
11
#include "
sperror.h
"
12
#include "
cktext.h
"
13
14
15
int
16
CAPtrunc
(inModel,ckt,timeStep)
17
18
GENmodel
*inModel;
19
CKTcircuit
*ckt;
20
double
*timeStep;
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
}
sCAPinstance::CAPnextInstance
struct sCAPinstance * CAPnextInstance
Definition:
capdefs.h:21
CKTcircuit
Definition:
cktdefs.h:62
capdefs.h
sCAPinstance
Definition:
capdefs.h:19
sCAPmodel
Definition:
capdefs.h:53
sCAPmodel::CAPinstances
CAPinstance * CAPinstances
Definition:
capdefs.h:57
OK
#define OK
Definition:
iferrmsg.h:17
sperror.h
NULL
#define NULL
Definition:
spdefs.h:121
CAPtrunc
int CAPtrunc(GENmodel *inModel, CKTcircuit *ckt, double *timeStep)
Definition:
captrunc.c:16
CKTterr
void CKTterr()
spice.h
sGENmodel
Definition:
gendefs.h:39
model
static char model[32]
Definition:
subckt.c:76
cktext.h
sCAPmodel::CAPnextModel
struct sCAPmodel * CAPnextModel
Definition:
capdefs.h:55
src
lib
dev
cap
captrunc.c
Generated by
1.8.11