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

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 16 of file mestrunc.c.

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