Added timing to TestSegDist

This commit is contained in:
James E McClure
2017-04-20 10:55:13 -04:00
parent 63404db74f
commit c3d26ff712

View File

@@ -113,7 +113,15 @@ int main(int argc, char **argv)
MPI_Barrier(comm);
if (rank==0) printf("Initialized! Converting to Signed Distance function \n");
double starttime,stoptime,cputime;
starttime = MPI_Wtime();
Eikonal(Distance,id,Dm,10);
stoptime = MPI_Wtime();
cputime = (stoptime - starttime);
if (rank==0) printf("Total time: %f seconds \n",cputime);
double Error=0.0;
int Count = 0;