* Bug #7927 fixed - Output "flag" in qmr function was not well documented.
+* Bug #8162 fixed - Area of stability of plzr was wrong for continuous systems (+unit test added).
+
* Bug #8319 fixed - dbphi(hypermat) and phasemag(hypermat) returned a matrix instead of a hypermatrix.
-* Bug #8607 fixed - Some error messages in modules/overloading/macros were not standard and not localized.
+* Bug #8597 fixed - Uncontrolled message of grand/clcg4 should be displayed as warning.
-* Bug #8162 fixed - Area of stability of plzr was wrong for continuous systems (+unit test added).
+* Bug #8607 fixed - Some error messages in modules/overloading/macros were not standard and not localized.
* Bug #8667 fixed - Handling of %nan in functions min,max,median is not correctly documented.
#include "sciprint.h"
#include "others_generators.h"
#include "localization.h"
+#include "warningmode.h"
/***********************************************************************/
/* Private part. */
Ig [0][g] = (int) s0; Ig [1][g] = (int) s1;
Ig [2][g] = (int) s2; Ig [3][g] = (int) s3;
init_generator_clcg4(g, InitialSeed);
- sciprint(_("\n=> be aware that you have may lost synchronization\n between the virtual gen %d and the others !\n use grand(\"setall\", s1, s2, s3, s4) if you want recover it."), g);
+ if (getWarningMode())
+ {
+ sciprint(_("WARNING: %s\n"), _("be aware that you have may lost synchronization\n between the virtual gen %d and the others !\n use grand(\"setall\", s1, s2, s3, s4) if you want recover it."), g);
+ }
return ( 1 );
}
else
-<?xml version="1.0" encoding="utf-8"?>
+<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<ProjectReference Include="..\..\..\api_scilab\api_scilab.vcxproj">
<Project>{43c5bab1-1dca-4743-a183-77e0d42fe7d0}</Project>
</ProjectReference>
+ <ProjectReference Include="..\..\..\core\src\c\core.vcxproj">
+ <Project>{c6e2bc17-34d8-46e4-85f3-6293cb21adcd}</Project>
+ </ProjectReference>
<ProjectReference Include="..\..\..\localization\src\localization.vcxproj">
<Project>{ecffeb0c-1eda-45ee-9a10-b18143852e17}</Project>
<ReferenceOutputAssembly>false</ReferenceOutputAssembly>
--- /dev/null
+// =============================================================================
+// 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.
+// =============================================================================
+//
+// <-- CLI SHELL MODE -->
+//
+// <-- ENGLISH IMPOSED -->
+//
+// <-- Non-regression test for bug 8597 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=8597
+//
+// <-- Short Description -->
+// Uncontrolled message of grand/clcg4 should be displayed as warning
+warning("off");
+grand('setgen',"clcg4");
+grand('setsd',123456,123456,123456,123456);
+warning("on");
+grand('setgen',"clcg4");
+grand('setsd',123456,123456,123456,123456);
+WARNING: be aware that you have may lost synchronization
+ between the virtual gen %d and the others !
+ use grand("setall", s1, s2, s3, s4) if you want recover it.
--- /dev/null
+// =============================================================================
+// 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.
+// =============================================================================
+//
+// <-- CLI SHELL MODE -->
+//
+// <-- ENGLISH IMPOSED -->
+//
+// <-- Non-regression test for bug 8597 -->
+//
+// <-- Bugzilla URL -->
+// http://bugzilla.scilab.org/show_bug.cgi?id=8597
+//
+// <-- Short Description -->
+// Uncontrolled message of grand/clcg4 should be displayed as warning
+
+warning("off");
+grand('setgen',"clcg4");
+grand('setsd',123456,123456,123456,123456);
+
+warning("on");
+grand('setgen',"clcg4");
+grand('setsd',123456,123456,123456,123456);