]> granicus.if.org Git - graphviz/commitdiff
new files are added to project file
authorarif <devnull@localhost>
Mon, 7 Mar 2011 17:16:53 +0000 (17:16 +0000)
committerarif <devnull@localhost>
Mon, 7 Mar 2011 17:16:53 +0000 (17:16 +0000)
lib/sfdpgen/sfdp.vcproj
lib/sfdpgen/stress_model.c

index b5d89bfab3de9d8eaebc43de02add6295c9ea811..6f3da56a43d9fbc6baf6a5d294e37cc93625daf5 100644 (file)
                                RelativePath=".\spring_electrical.c"
                                >
                        </File>
+                       <File
+                               RelativePath=".\stress_model.c"
+                               >
+                       </File>
+                       <File
+                               RelativePath=".\uniform_stress.c"
+                               >
+                       </File>
                </Filter>
        </Files>
        <Globals>
index f3bec14b3be870bf5d677e5d1551cfe7389ca2ce..e68278a97f28e2213dcfa53c6f0c94add21f7ed0 100644 (file)
@@ -5,6 +5,7 @@
 #include "stress_model.h"
 
 void stress_model(int dim, SparseMatrix B, real **x, int maxit_sm, real tol, int *flag){
+  int m;
   SparseStressMajorizationSmoother sm;
   real lambda = 0;
   /*int maxit_sm = 1000, i; tol = 0.001*/
@@ -22,7 +23,7 @@ void stress_model(int dim, SparseMatrix B, real **x, int maxit_sm, real tol, int
   A = SparseMatrix_remove_diagonal(A);
 
   *flag = 0;
-  int m = A->m;
+  m = A->m;
   if (!x) {
     *x = MALLOC(sizeof(real)*m*dim);
     srand(123);