aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen/src/SparseLU/SparseLU_snode_dfs.h
diff options
context:
space:
mode:
authorGravatar Desire NUENTSA <desire.nuentsa_wakam@inria.fr>2012-07-06 20:18:16 +0200
committerGravatar Desire NUENTSA <desire.nuentsa_wakam@inria.fr>2012-07-06 20:18:16 +0200
commitb5a83867cac92a539b3a4d1cf8fcdcf8e9e9f5b2 (patch)
tree335db33e925cba1313098ec103e9581fe0c3f6aa /Eigen/src/SparseLU/SparseLU_snode_dfs.h
parent203a0343fdfb83919ffdb486d5375d239a1b2a59 (diff)
Update Ordering interface
Diffstat (limited to 'Eigen/src/SparseLU/SparseLU_snode_dfs.h')
-rw-r--r--Eigen/src/SparseLU/SparseLU_snode_dfs.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Eigen/src/SparseLU/SparseLU_snode_dfs.h b/Eigen/src/SparseLU/SparseLU_snode_dfs.h
index 3e7033c67..6b2817262 100644
--- a/Eigen/src/SparseLU/SparseLU_snode_dfs.h
+++ b/Eigen/src/SparseLU/SparseLU_snode_dfs.h
@@ -68,8 +68,8 @@
Index& nzlmax = glu.nzlmax;
int mem;
Index nsuper = ++supno(jcol); // Next available supernode number
- register int nextl = xlsub(jcol); //Index of the starting location of the jcol-th column in lsub
- register int i,k;
+ int nextl = xlsub(jcol); //Index of the starting location of the jcol-th column in lsub
+ int i,k;
int krow,kmark;
for (i = jcol; i <=kcol; i++)
{
@@ -86,7 +86,7 @@
if( nextl >= nzlmax )
{
mem = LUMemXpand<IndexVector>(lsub, nzlmax, nextl, LSUB, glu.num_expansions);
- if (mem) return mem;
+ if (mem) return mem; // Memory expansion failed... Return the memory allocated so far
}
}
}
@@ -100,7 +100,7 @@
while (new_next > nzlmax)
{
mem = LUMemXpand<IndexVector>(lsub, nzlmax, nextl, LSUB, glu.num_expansions);
- if (mem) return mem;
+ if (mem) return mem; // Memory expansion failed... Return the memory allocated so far
}
Index ifrom, ito = nextl;
for (ifrom = xlsub(jcol); ifrom < nextl;)