Browse Source

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
pre-master-46
Holger Vogt 5 years ago
parent
commit
f49922c1f1
  1. 4
      src/frontend/evaluate.c

4
src/frontend/evaluate.c

@ -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

Loading…
Cancel
Save