示例#1
0
void performance_test_driver_epetra( const int pdeg ,
				     const int minvar ,
				     const int maxvar ,
				     const int nGrid ,
				     const int nIter ,
				     const bool print ,
				     const bool test_block ,
				     const bool check ,
				     Teuchos::FancyOStream& out)
{
  out.precision(8);

  //------------------------------

  out << std::endl
      << "\"#nGrid\" , \"NNZ\" "
      << "\"#Variable\" , \"PolyDegree\" , \"#Bases\" , "
      << "\"#TensorEntry\" , "
      << "\"VectorSize\" , "
      << "\"Original-Matrix-Free-Block-MXV-Time\" , "
      << "\"Original-Matrix-Free-Block-MXV-GFLOPS\" , "
      << std::endl ;
  
  for ( int nvar = minvar ; nvar <= maxvar ; ++nvar ) {
    Teuchos::Array<int> var_degree( nvar , pdeg );

    const Teuchos::Array<double> perf_original_mat_free_epetra =
      test_original_matrix_free_epetra( var_degree , nGrid , nIter , print , test_block , check );

    out << nGrid << " , "
	<< perf_original_mat_free_epetra[4] << " , "
	<< nvar << " , " << pdeg << " , "
	<< perf_original_mat_free_epetra[0] << " , "
	<< perf_original_mat_free_epetra[3] << " , "
	<< perf_original_mat_free_epetra[2] << " , "
	<< perf_original_mat_free_epetra[5] << " , "
	<< perf_original_mat_free_epetra[6] << " , "
	<< std::endl ;
    
  }

    
}