.probe: Add function call to modprobenames()

Function resides in inpc_probe.c.
The function renames all current measurement instances
vcurr_instance:node#branch to instance:node#branch by
modifying the global instance table (tab).
This commit is contained in:
Holger Vogt 2021-11-28 17:06:02 +01:00
parent 9dff15507d
commit b59d2aabd1
1 changed files with 6 additions and 0 deletions

View File

@ -83,6 +83,8 @@ extern void inp_rem_levels(struct nscope* root);
extern void comment_out_unused_subckt_models(struct card *deck);
extern void inp_rem_unused_models(struct nscope *root, struct card *deck);
extern void modprobenames(INPtables * tab);
#ifdef SHARED_MODULE
extern void exec_controls(wordlist *controls);
#endif
@ -1236,6 +1238,10 @@ inp_dodeck(
startTime = seconds();
ckt = if_inpdeck(deck, &tab);
ft_curckt->FTEstats->FTESTATnetParseTime = seconds() - startTime;
/* if .probe, rename the current measurement node vcurr_ */
if (cp_getvar("probe_is_given", CP_BOOL, NULL, 0)) {
modprobenames(tab);
}
} else {
ckt = NULL;
}