1
// Copyright (C) 2006-2007 Anders Logg.
2
// Licensed under the GNU LGPL Version 2.1.
4
// First added: 2006-11-19
5
// Last changed: 2007-05-24
10
const unsigned int num_repetitions = 10;
12
using namespace dolfin;
16
UnitCube mesh(8, 8, 8);
17
Function w(mesh, 1.0);
18
AdvectionBilinearForm a(w);
22
for (unsigned int i = 0; i < num_repetitions; i++)
25
t /= static_cast<double>(num_repetitions);
27
message("Time to assemble matrix: %.3g", t);