e4ae05eaea
also performs standart or Monte Carlo simulations. It allows you to specify a set of linear or nonlinear equations and solve them using parameter values you choose or parameter values sampled from specified statistical distributions. Outputs can be compared. It consists of two pieces - a model generator and a simulation engine. The model generator was created to facilitate the model maintenance and simulation definition, while keeping execution time fast. Other programs have been created to the same end, the Matlab family of graphical interactive programs being some of the more general and easy to use. MAINTAINER= Peter Valchev <pvalchev@toxiclinux.org>
26 lines
792 B
Plaintext
26 lines
792 B
Plaintext
$OpenBSD: patch-sim_sim_c,v 1.1.1.1 2001/01/19 15:24:58 reinhard Exp $
|
|
--- sim/sim.c.orig Fri Nov 14 15:45:51 1997
|
|
+++ sim/sim.c Sun Jan 14 17:38:49 2001
|
|
@@ -653,8 +653,8 @@ void PromptFilenames (PSTR *pszFileIn, P
|
|
scanf ("%[^:\f\r\v\n]", *pszFileIn);
|
|
getchar();
|
|
#else
|
|
- gets (*pszFileIn);
|
|
- *pszFileIn = strtok (*pszFileIn, " \t");
|
|
+ fgets (*pszFileIn, 250, stdin);
|
|
+ *pszFileIn = strtok (*pszFileIn, " \t\n");
|
|
#endif
|
|
|
|
if (!(*pszFileIn)) /* Nothing entered, quit */
|
|
@@ -665,8 +665,8 @@ void PromptFilenames (PSTR *pszFileIn, P
|
|
#ifdef _MACOSLEVEL1_
|
|
scanf ("%[^:\f\r\v\n]", *pszFileOut);
|
|
#else
|
|
- gets (*pszFileOut);
|
|
- *pszFileOut = strtok (*pszFileOut, " \t");
|
|
+ fgets (*pszFileOut, 250, stdin);
|
|
+ *pszFileOut = strtok (*pszFileOut, " \t\n");
|
|
#endif
|
|
}
|
|
|