[scilab-Users] code which does not work

François Vogel fvogelnew1 at free.fr
Thu Mar 19 00:34:04 CET 2009


Ivan Maximov said on 18/03/2009 23:43:
> I guess your suggestion concerning the global variables is true.
> I will try to localize and simplify this problem and will do a bug report.

Hmm, second thoughts, and hopefully better advices.

Thinking about global variables and scoping, what you see becomes 
obvious and the fix as well.

If you add:

  global U

at the beginning of function krotov_csa, your code will work.

You should be able to understand why by reading this:
http://wiki.scilab.org/howto/global_and_local_variables

Francois



More information about the users mailing list