Post Reply 
Combine Export and Local variables?
04-12-2022, 06:34 PM
Post: #14
RE: Combine Export and Local variables?
(04-12-2022 05:18 PM)roadrunner Wrote:  A couple things i noticed:

First,
I think this line: Cld2:=CAS("sqrt(Cld1)");
Should be this: Cld2:=CAS("sqrt(Cl1d)");

Second,
In this line: LOCAL Cx1,Cl1,Ql1,Clk1,Qvk1,Cv1,SCx1;

you declare variable Ql1 but I didn't see anywhere that is was assigned a value. It looks like you started to with this: //////Q= CL, but remed it out. When you declare a variable they start out at zero so at this line:

Cl1:=Ql1*Vf1(1,1);

Cl1 = 0*Vf1(1,1) which is zero. That causes this line:

EDITMAT(Cl1,"Cl");

to flag an error. EDITMAT only works on matrix variables.

Wow,
I really appreciate for spotting that mistake. Now it works. I really have to find some other program to write in, and I should start more like using names to be easier to spot the mistake.
Thank you for your time to spot the mistake!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Combine Export and Local variables? - Amer7 - 04-12-2022 06:34 PM



User(s) browsing this thread: 1 Guest(s)