Jspice3
Main Page
Data Structures
Files
File List
Globals
mestrunc.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 S. Hwang
5
1993 Stephen R. Whiteley
6
****************************************************************************/
7
8
#include "
spice.h
"
9
#include <stdio.h>
10
#include "
mesdefs.h
"
11
#include "
sperror.h
"
12
#include "
cktext.h
"
13
14
15
int
16
MEStrunc
(inModel,ckt,timeStep)
17
GENmodel
*inModel;
18
register
CKTcircuit
*ckt;
19
double
*timeStep;
20
{
21
register
MESmodel
*
model
= (
MESmodel
*)inModel;
22
register
MESinstance
*here;
23
24
for
( ; model !=
NULL
; model = model->
MESnextModel
) {
25
for
(here=model->
MESinstances
;here!=
NULL
;here = here->
MESnextInstance
){
26
CKTterr
(here->MESqgs,ckt,timeStep);
27
CKTterr
(here->MESqgd,ckt,timeStep);
28
}
29
}
30
return
(
OK
);
31
}
mesdefs.h
CKTcircuit
Definition:
cktdefs.h:62
sMESmodel::MESinstances
MESinstance * MESinstances
Definition:
mesdefs.h:163
sMESmodel::MESnextModel
struct sMESmodel * MESnextModel
Definition:
mesdefs.h:161
sMESinstance::MESnextInstance
struct sMESinstance * MESnextInstance
Definition:
mesdefs.h:22
OK
#define OK
Definition:
iferrmsg.h:17
sMESinstance
Definition:
mesdefs.h:20
sperror.h
NULL
#define NULL
Definition:
spdefs.h:121
CKTterr
void CKTterr()
spice.h
sGENmodel
Definition:
gendefs.h:39
model
static char model[32]
Definition:
subckt.c:76
cktext.h
MEStrunc
int MEStrunc(GENmodel *inModel, CKTcircuit *ckt, double *timeStep)
Definition:
mestrunc.c:16
sMESmodel
Definition:
mesdefs.h:159
src
lib
dev
mes
mestrunc.c
Generated by
1.8.11