bjt2trun.c

来自「ngspice又一个电子CAD仿真软件代码.功能更全」· C语言 代码 · 共 39 行

C
39
字号
/**********Copyright 1990 Regents of the University of California.  All rights reserved.Author: 1985 Thomas L. QuarlesModified: Alan Gillespie**********//* *//* * This routine performs truncation error calculations for * BJT2s in the circuit. */#include "ngspice.h"#include "cktdefs.h"#include "bjt2defs.h"#include "sperror.h"#include "suffix.h"intBJT2trunc(GENmodel *inModel, CKTcircuit *ckt, double *timeStep){    BJT2model *model = (BJT2model*)inModel;    BJT2instance *here;    for( ; model != NULL; model = model->BJT2nextModel) {        for(here=model->BJT2instances;here!=NULL;here = here->BJT2nextInstance){            if (here->BJT2owner != ARCHme) continue;            CKTterr(here->BJT2qbe,ckt,timeStep);            CKTterr(here->BJT2qbc,ckt,timeStep);            CKTterr(here->BJT2qsub,ckt,timeStep);        }    }    return(OK);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?