Index: trunk/psLib/src/math/psSparse.h
===================================================================
--- trunk/psLib/src/math/psSparse.h	(revision 9991)
+++ trunk/psLib/src/math/psSparse.h	(revision 10001)
@@ -71,8 +71,11 @@
     typedef struct
     {
-        psImage *Bij;                      // Aij contains the populated elements of the matrix
-        psImage *Qii;                      // Bfj contains the elements of the vector Bf
-        int Nelem;                         // Number of elements (long dimension of Bij, 0-j)
-        int Nrows;                         // Number of rows (size of Qii)
+        psSparse *sparse;  // corresponding sparse matrix equation
+        psImage *Bij;   // Aij contains the populated elements of the matrix
+        psImage *Qii;   // Bfj contains the elements of the vector Bf
+        psVector *Yi;   // lower independent var
+        psVector *Gi;   // lower dependent var
+        int Nrows;   // Number of rows (long dimension of Bij, 0-j)
+        int Nborder;   // Number of border elements (size of Qii)
     }
 psSparseBorder;
@@ -80,5 +83,5 @@
 
 // allocate a sparse matrix structure
-psSparse *psSparseBorderAlloc(int Nrows, int Nelem);
+psSparseBorder *psSparseBorderAlloc(psSparse *sparse, int Nborder);
 
 // add a new matrix element
