Skip to content
Snippets Groups Projects
Commit 88c00756 authored by Luca Tornatore's avatar Luca Tornatore
Browse files

fixed few things

parent bc875847
Branches
Tags
No related merge requests found
......@@ -11,6 +11,8 @@
#include <math.h>
typedef unsigned int uint;
int main ( int argc, char **argv )
{
if ( argc == 1 ) {
......@@ -19,7 +21,7 @@ int main ( int argc, char **argv )
FILE *files[2];
double *P[2];
int N[2];
uint N[2];
double tolerance;
files[0] = fopen( *(argv+1), "r" );
......@@ -45,11 +47,12 @@ int main ( int argc, char **argv )
fread( P[0], sizeof(double), N[0], files[0] );
fread( P[1], sizeof(double), N[1], files[1] );
int faults = 0;
int processed = 0;
uint faults = 0;
uint nans = 0;
uint processed = 0;
double min_diff = 1e10, max_diff = 0, avg_diff = 0;
for ( int i = 0; i < N[0]; i++ )
for ( uint i = 0; i < N[0]; i++ )
{
if ( P[0][i] == P[1][i] )
continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment