diff options
| author | Felix Salfelder <[email protected]> | 2024-02-20 00:00:00 +0000 |
|---|---|---|
| committer | Felix Salfelder <[email protected]> | 2024-02-20 00:00:00 +0000 |
| commit | 874f2d554b76968c72e749931dbd99444f064f2d (patch) | |
| tree | 27d466b5e2a7ea24216afcf2fae15e0d68badec8 /lib/u_sim_data.cc | |
| parent | e71aca4f82722e1b22ca04a23b362d3fedbe0952 (diff) | |
| parent | 97efe32a317c5104280c964a9e2b93ee3875a53c (diff) | |
| download | gnucap-master.tar.gz | |
Diffstat (limited to 'lib/u_sim_data.cc')
| -rw-r--r-- | lib/u_sim_data.cc | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/lib/u_sim_data.cc b/lib/u_sim_data.cc index 7b484d54..9ae7cf8f 100644 --- a/lib/u_sim_data.cc +++ b/lib/u_sim_data.cc @@ -23,7 +23,7 @@ */ //testing=script 2015.01.28 #include "m_wave.h" -#include "e_node.h" +#include "e_logicnode.h" #include "u_nodemap.h" #include "e_cardlist.h" #include "u_status.h" @@ -242,23 +242,27 @@ void SIM_DATA::order_auto() /* init: allocate, set up, etc ... for any type of simulation * also called by status and probe for access to internals and subckts */ -void SIM_DATA::init() +void SIM_DATA::init(CARD_LIST* scope) { + assert(scope); + if (scope == &CARD_LIST::card_list) { + }else{itested(); + } if (is_first_expand()) { uninit(); - init_node_count(CARD_LIST::card_list.nodes()->how_many(), 0, 0); - CARD_LIST::card_list.expand(); + init_node_count(scope->nodes()->how_many(), 0, 0); + scope->expand(); map__nodes(); - CARD_LIST::card_list.map_nodes(); + scope->map_nodes(); alloc_hold_vectors(); _aa.reinit(_total_nodes); _lu.reinit(_total_nodes); _acx.reinit(_total_nodes); - CARD_LIST::card_list.tr_iwant_matrix(); - CARD_LIST::card_list.ac_iwant_matrix(); + scope->tr_iwant_matrix(); + scope->ac_iwant_matrix(); _last_time = 0; }else{ - CARD_LIST::card_list.precalc_first(); + scope->precalc_first(); } } /*--------------------------------------------------------------------------*/ |
