Skip to content
Snippets Groups Projects
Commit 1f71ac02 authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Kill some timings

parent 1ef643a9
No related branches found
No related tags found
No related merge requests found
......@@ -248,8 +248,6 @@ int main(int argc, char *argv[]) {
MatrixType massMatrix;
VectorType gravityFunctional;
{
timer.reset();
// Assemble mass matrix and compute density
MassAssembler<GridType, P1Basis::LocalFiniteElement,
P1Basis::LocalFiniteElement> const localMass;
......@@ -274,9 +272,6 @@ int main(int argc, char *argv[]) {
normalStress = volume * gravity * density / area;
massMatrix *= density;
if (parset.get<bool>("enableTimer"))
std::cerr << "Assembled mass matrix in " << timer.elapsed() << "s"
<< std::endl;
// Compute gravitational body force
SmallVector weightedGravitationalDirection(0);
......@@ -292,15 +287,11 @@ int main(int argc, char *argv[]) {
// Assemble elastic force on the body
MatrixType stiffnessMatrix;
{
timer.reset();
StVenantKirchhoffAssembler<GridType, P1Basis::LocalFiniteElement,
P1Basis::LocalFiniteElement> const
localStiffness(E, nu);
OperatorAssembler<P1Basis, P1Basis>(p1Basis, p1Basis)
.assemble(localStiffness, stiffnessMatrix);
if (parset.get<bool>("enableTimer"))
std::cerr << "Assembled stiffness matrix in " << timer.elapsed() << "s"
<< std::endl;
}
EnergyNorm<MatrixType, VectorType> energyNorm(stiffnessMatrix);
......@@ -356,7 +347,6 @@ int main(int argc, char *argv[]) {
std::fstream displacement_writer("displacement", std::fstream::out);
std::fstream velocity_writer("velocity", std::fstream::out);
std::fstream coefficient_writer("coefficient", std::fstream::out);
timer.reset();
auto const L = parset.get<double>("boundary.friction.ruina.L");
auto const a = parset.get<double>("boundary.friction.ruina.a");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment