If a new vector is created by the functions cph or ph,

its type should be 'phase', not voltage. Thus prevent
raw file entries (created by the 'write' command like
	4	v(cph(vout2))	voltage
This commit is contained in:
Holger Vogt 2020-10-25 15:52:01 +01:00
parent 16a4ef086c
commit f49922c1f1
1 changed files with 4 additions and 0 deletions

View File

@ -937,6 +937,10 @@ apply_func(struct func *func, struct pnode *arg)
vec_new(t);
/* try to figure out the v_type, depending on the function */
if (eq(func->fu_name, "cph") || eq(func->fu_name, "ph"))
t->v_type = SV_PHASE;
if (end)
end->v_link2 = t;
else