soi3trun.c

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

C
51 行
字号
/**********STAG version 2.7Copyright 2000 owned by the United Kingdom Secretary of State for Defenceacting through the Defence Evaluation and Research Agency.Developed by :     Jim Benson,                   Department of Electronics and Computer Science,                   University of Southampton,                   United Kingdom.With help from :   Nele D'Halleweyn, Ketan Mistry, Bill Redman-White, and Craig Easson.Based on STAG version 2.1Developed by :     Mike Lee,With help from :   Bernard Tenbroek, Bill Redman-White, Mike Uren, Chris Edwards                   and John Bunyan.Acknowledgements : Rupert Howes and Pete Mole.**********//********** Modified by Paolo Nenzi 2002ngspice integration**********/#include "ngspice.h"#include "cktdefs.h"#include "soi3defs.h"#include "sperror.h"#include "suffix.h"intSOI3trunc(GENmodel *inModel, CKTcircuit *ckt, double *timeStep){     SOI3model *model = (SOI3model *)inModel;     SOI3instance *here;    for( ; model != NULL; model = model->SOI3nextModel)    {        for(here=model->SOI3instances;here!=NULL;here = here->SOI3nextInstance)        {		if (here->SOI3owner != ARCHme)                continue;            CKTterr(here->SOI3qgf,ckt,timeStep);            CKTterr(here->SOI3qd,ckt,timeStep);            CKTterr(here->SOI3qs,ckt,timeStep);        }    }    return(OK);}

⌨️ 快捷键说明

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