Re: Probs with FormularManager

Hi Timo,

>1. Problem/Error: Eval doesn't return. E.g. 
>
>~/da/test/visad: java Eval 3 4 x+y  
>x = 3.0, y = 4.0
>f(x,y) = x+y = 7.0
>
>does produce the correct output, but the process isn't exiting.

The formula code uses VisAD's ActionImpl logic to recompute formula
outputs when the input values to the formula change.  ActionImpl
creates a ThreadPool, which sits around after all its current tasks
are completed, keeping the JVM alive.  You can fix this by calling 
ActionImpl.stopThreadPool() at the end of Eval's main method.

>2. The FormularManager doesn't work if the to be calculated formula doesn't 
>contain any variable. E.g. 
>
>Eval 3 4 90+35
>
>doesn't produce any output nor does it return with an exception or something.

Thanks for finding this bug.  The fix will be included in the next
update of VisAD on the FTP site.  Until then, you can download the
updated visad/formula/FormulaVar.java from:
    http://palm.ssec.wisc.edu/FormulaVar.java

-Curtis


  • 2001 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: