Jspice3
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 }
MESinstance * MESinstances
Definition: mesdefs.h:163
struct sMESmodel * MESnextModel
Definition: mesdefs.h:161
struct sMESinstance * MESnextInstance
Definition: mesdefs.h:22
#define OK
Definition: iferrmsg.h:17
#define NULL
Definition: spdefs.h:121
void CKTterr()
static char model[32]
Definition: subckt.c:76
int MEStrunc(GENmodel *inModel, CKTcircuit *ckt, double *timeStep)
Definition: mestrunc.c:16