NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.
To learn about what's going on, see About the Archive Site.
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
visad
archives: