📄 cktaccpt.c
字号:
/**********Copyright 1990 Regents of the University of California. All rights reserved.Author: 1985 Thomas L. Quarles**********//* CKTaccept(ckt) * this is a driver program to iterate through all the various * accept functions provided for the circuit elements in the * given circuit */#include "spice.h"#include <stdio.h>#include "smpdefs.h"#include "cktdefs.h"#include "util.h"#include "devdefs.h"#include "sperror.h"#include "suffix.h"intCKTaccept(ckt) register CKTcircuit *ckt;{ extern SPICEdev *DEVices[]; register int i; int size; int error; double *temp; for (i=0;i<DEVmaxnum;i++) { if ( ((*DEVices[i]).DEVaccept != NULL) && (ckt->CKThead[i] != NULL) ){ error = (*((*DEVices[i]).DEVaccept))(ckt,ckt->CKThead[i]); if(error) return(error); } }#ifdef PREDICTOR /* now, move the sols vectors around */ temp = ckt->CKTsols[7]; for ( i=7;i>0;i--) { ckt->CKTsols[i] = ckt->CKTsols[i-1]; } ckt->CKTsols[0]=temp; size = SMPmatSize(ckt->CKTmatrix); for(i=0;i<=size;i++) { ckt->CKTsols[0][i]=ckt->CKTrhs[i]; }#endif /* PREDICTOR */ return(OK);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -