summaryrefslogtreecommitdiff
path: root/linear.c
diff options
context:
space:
mode:
Diffstat (limited to 'linear.c')
-rw-r--r--linear.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/linear.c b/linear.c
index d743f97..656fe43 100644
--- a/linear.c
+++ b/linear.c
@@ -78,8 +78,8 @@ DoLU(void)
LUdblptr ptra;
int n;
int i;
-
int num_arrays;
+ static int is_adjusted = FALSE;
/*
** Our first step is to build a "solvable" problem. This
@@ -109,8 +109,8 @@ DoLU(void)
** auto-adjust. If so, repeatedly call the DoLUIteration routine,
** increasing the number of solutions per iteration as you go.
*/
- if (loclustruct->adjust == FALSE) {
- loclustruct->adjust = TRUE;
+ if (is_adjusted == FALSE) {
+ is_adjusted = TRUE;
num_arrays=0;
for(i=1;i<=MAXLUARRAYS;i++)