ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-1.0/libmdtools/MatVec3.c
(Generate patch)

Comparing trunk/OOPSE-1.0/libmdtools/MatVec3.c (file contents):
Revision 1334 by gezelter, Fri Jul 16 18:58:03 2004 UTC vs.
Revision 1419 by gezelter, Tue Jul 27 18:14:16 2004 UTC

# Line 1 | Line 1
1   #include <stdio.h>
2   #include <math.h>
3   #include <stdlib.h>
4 #include "simError.h"
4   #include "MatVec3.h"
5  
6   /*
# Line 314 | Line 313 | int JacobiN(double **a, int n, double *w, double **v)
313   int JacobiN(double **a, int n, double *w, double **v) {
314  
315    int i, j, k, iq, ip, numPos;
316 +  int ceil_half_n;
317    double tresh, theta, tau, t, sm, s, h, g, c, tmp;
318    double bspace[4], zspace[4];
319    double *b = bspace;
320    double *z = zspace;
321 +  
322  
323    // only allocate memory if the matrix is large
324    if (n > 4)
# Line 474 | Line 475 | int JacobiN(double **a, int n, double *w, double **v)
475    // are negative of one another (.707,.707,0) and (-.707,-.707,0). This can
476    // reek havoc in hyperstreamline/other stuff. We will select the most
477    // positive eigenvector.
478 <  int ceil_half_n = (n >> 1) + (n & 1);
478 >  ceil_half_n = (n >> 1) + (n & 1);
479    for (j=0; j<n; j++)
480      {
481        for (numPos=0, i=0; i<n; i++)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines