* Bug #9601 fixed - Cylinder demo failed with a bad value. 73/11373/2
Charlotte HECQUET [Tue, 23 Apr 2013 16:01:06 +0000 (18:01 +0200)]
Change-Id: I4755a365f86c6c16007b0f494d140c2949c9be2c

scilab/CHANGES_5.5.X
scilab/modules/differential_equations/demos/flow/cylinder_interface.sci
scilab/modules/differential_equations/tests/nonreg_tests/bug_9601.tst [new file with mode: 0644]

index 87b3b97..0c95e45 100644 (file)
@@ -106,6 +106,8 @@ Bug fixes
 
 * Bug #9059 fixed - tbx_build_macros and genlib do not stop on error.
 
+* Bug #9601 fixed - Cylinder demo failed with a bad value.
+
 * Bug #9691 fixed - "imp" option of optim was poorly documented.
 
 * Bug #10254 fixed - Slight improvements in help page of ones.
index 663b67a..6d6c404 100644 (file)
@@ -204,7 +204,7 @@ function cylinder_create_gui()
              "position"          , [x_slider y slider_width slider_height], ...
              "Style"             , "slider"                               , ...
              "Value"             , gravity                                 , ...
-             "Min"               , 0                                      , ...
+             "Min"               , 0.1                                      , ...
              "Max"               , 100                                      , ...
              "callback"          , "change_gravity()"                           , ...
              "tag"               , "slider_gravity"                         );
diff --git a/scilab/modules/differential_equations/tests/nonreg_tests/bug_9601.tst b/scilab/modules/differential_equations/tests/nonreg_tests/bug_9601.tst
new file mode 100644 (file)
index 0000000..d6231b7
--- /dev/null
@@ -0,0 +1,20 @@
+// =============================================================================
+// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
+// Copyright (C) 2013 - Scilab Enterprises - Charlotte HECQUET
+//
+//  This file is distributed under the same license as the Scilab package.
+// =============================================================================
+//
+// <-- INTERACTIVE TEST -->
+// <-- Non-regression test for bug 9601 -->
+//
+// <-- Bugzilla URL -->
+//http://bugzilla.scilab.org/show_bug.cgi?id=9601
+//
+// <-- Short Description -->
+// Cylinder demo fails with a bad value
+
+cd SCI/modules/differential_equations/demos/flow
+exec cylinder.dem.sce
+// Put the slider "gravity" at the minimum and start the simulation
+// Check that there is no error message in the console