ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/madProps/madProps.c
(Generate patch)

Comparing trunk/madProps/madProps.c (file contents):
Revision 45 by mmeineke, Tue Jul 23 16:08:35 2002 UTC vs.
Revision 46 by mmeineke, Tue Jul 23 20:10:49 2002 UTC

# Line 223 | Line 223 | int main(argc, argv)
223      if( calcMuCorr || calcCosCorr ){
224            dumpArray[j].v =
225              (struct vect *)calloc(n_atoms, sizeof(struct vect));
226          printf( " (Note: reading in vectors)... " );
227          fflush( stdout );
226      }
227  
228      //read the time and the box sizes
# Line 402 | Line 400 | int main(argc, argv)
400               cosCorr1, cosCorr2 );
401      fflush( stdout );
402      
403 <    // cosCorr call
406 <
403 >    cosCorr( out_prefix, cosCorr1, cosCorr2, dumpArray, nFrames );
404      
405      fprintf( stdout,
406               " done.\n"
# Line 414 | Line 411 | int main(argc, argv)
411    return 0;
412    
413   }
414 +
415 +
416 + void map( double *x, double *y, double *z,
417 +          double boxX, double boxY, double boxZ ){
418 +  
419 +  *x -= boxX * copysign(1.0,*x) * floor( fabs( *x/boxX ) + 0.5  );
420 +  *y -= boxY * copysign(1.0,*y) * floor( fabs( *y/boxY ) + 0.5  );
421 +  *z -= boxZ * copysign(1.0,*z) * floor( fabs( *z/boxZ ) + 0.5  );
422  
423 + }
424  
425  
426   /***************************************************************************

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines