Skip to content
Snippets Groups Projects
Commit 1decef79 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

removed few test outputs

parent 2be59dc1
No related branches found
No related tags found
2 merge requests!2Develop,!1Develop
......@@ -132,7 +132,7 @@ int main(int argc, char *argv[])
method_cost_map["AcousticSolverWithMesh"] = timer.seconds();
{
{ // gnuplot output for density
const Kokkos::View<const Rd*> xj = mesh_data.xj();
const Kokkos::View<const double*> rhoj = unknowns.rhoj();
std::ofstream fout("rho");
......@@ -143,22 +143,6 @@ int main(int argc, char *argv[])
}
Kokkos::View<TinyVector<2,double>*[2]> test("test", 10);
constexpr size_t N = 3;
std::cout << "sizeof(TinyVector<" << N << ",double>)=" << sizeof(TinyVector<N,double>) << std::endl;
std::cout << "sizeof(double)=" << sizeof(double) << std::endl;
std::cout << "sizeof(size_t) = " << sizeof(size_t) << std::endl;
std::cout << "sizeof(int) = " << sizeof(int) << std::endl;
std::cout << "sizeof(unsigned int) = " << sizeof(unsigned int) << std::endl;
std::cout << "sizeof(unsigned short) = " << sizeof(unsigned short) << std::endl;
std::cout << "std::numeric_limits<size_t>::max() = " << std::numeric_limits<size_t>::max() << std::endl;
std::cout << "std::numeric_limits<int>::max() = " << std::numeric_limits<int>::max() << std::endl;
std::cout << "std::numeric_limits<unsigned int>::max() = " << std::numeric_limits<unsigned int>::max() << std::endl;
std::cout << "std::numeric_limits<short>::max() = " << std::numeric_limits<short>::max() << std::endl;
std::cout << "std::numeric_limits<unsigned short>::max() = " << std::numeric_limits<unsigned short>::max() << std::endl;
std::cout << "std::numeric_limits<char>::max() = " << unsigned(std::numeric_limits<char>::max()) << std::endl;
std::cout << "std::numeric_limits<unsigned char>::max() = " << unsigned(std::numeric_limits<unsigned char>::max()) << std::endl;
Kokkos::finalize();
std::cout << "----------------------\n";
......@@ -169,46 +153,16 @@ int main(int argc, char *argv[])
}
for (const auto& method_cost : method_cost_map) {
std::cout << "* [" << std::setw(size) << std::left
std::cout << "* ["
<< rang::fgB::cyan
<< std::setw(size) << std::left
<< method_cost.first
<< rang::fg::reset
<< "] Execution time: "
<< rang::style::bold
<< method_cost.second
<< rang::style::reset << '\n';
}
TinyVector<2> x=zero;
TinyVector<2> y{1,2};
TinyVector<6> kk{1,2,3,4,5,6};
x=TinyVector<2>{3,2};
std::cout << x << "-" << y << "=" << x-y << std::endl;
std::cout << x << "+" << y << "=" << x+y << std::endl;
std::cout << "3*" << x << '=' << 3*x << std::endl;
x[1]=3; y[1]=0.1;
std::cout << "< " << x << " | " << y << " > = " << (x,y) << std::endl;
TinyMatrix<2> Z = zero;
TinyMatrix<2> A(1,2,
3,4);
TinyMatrix<2> B = identity;
B(1,1)=2;
std::cout << "A=" << A << '\n';
std::cout << "B=" << B << '\n';
std::cout << "2A=" << 2*A << '\n';
std::cout << "A+B=" << A+B << '\n';
std::cout << "A-B=" << A-B << '\n';
std::cout << "AB=" << A*B << '\n';
std::cout << "Ax=" << A*x << '\n';
std::cout << "x tens y" << tensorProduct(x,y) << '\n';
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment