evtcall_hybrids.c

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

C
79
字号
/*============================================================================FILE    EVTcall_hybrids.cMEMBER OF process XSPICECopyright 1991Georgia Tech Research CorporationAtlanta, Georgia 30332All Rights ReservedPROJECT A-8503AUTHORS    9/12/91  Bill KuhnMODIFICATIONS    <date> <person name> <nature of modifications>SUMMARY    This file contains function EVTcall_hybrids which calls all models    which have both analog and event-driven ports.  It is called following    successful evaluation of an analog iteration attempt to allow    events to be scheduled by the hybrid models.  The 'CALL_TYPE' is set    to 'EVENT_DRIVEN' when the model is called from this function.INTERFACES    void EVTcall_hybrids(CKTcircuit *ckt)REFERENCED FILES    None.NON-STANDARD FEATURES    None.============================================================================*/#include "ngspice.h"#include "cktdefs.h"#include "evt.h"#include "evtproto.h"/*EVTcall_hybridsThis function calls all the hybrid instances.  It is called followingthe successful evaluation of an analog iteration.*/void EVTcall_hybrids(    CKTcircuit  *ckt)    /* the main circuit structure */{    int     i;    int     num_hybrids;    int     *hybrid_index;    /* Get needed data for fast access */    num_hybrids = ckt->evt->counts.num_hybrids;    hybrid_index = ckt->evt->info.hybrid_index;    /* Call EVTload for all hybrids */    for(i = 0; i < num_hybrids; i++)        EVTload(ckt, hybrid_index[i]);}

⌨️ 快捷键说明

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