#include <sumfact.hh>
Public Member Functions | |
template<typename T > | |
void | operator() (concepts::ElementMatrix< F > &em, const concepts::Array< F > &jacobian, T *coeff, const ShapeFunction3D< Real > &u, const ShapeFunction3D< Real > &v) |
Timing Interface | |
These functions are used to get timings from class internal computations. The values are stored in a user defined concepts::InOutParameters structure in different arrays (see concepts::ResultsTable table;
table.addMap(concepts::ResultsTable::DOUBLE, "jacobian", output);
table.addMap(concepts::ResultsTable::DOUBLE, "whole_sumfact", output);
std::ofstream ofs("table.gnuplot");
ofs << std::setprecision(20);
table.print<concepts::ResultsTable::GNUPLOT>(ofs);
Definition resultsTable.hh:23 | |
static void | setTimings (concepts::InOutParameters *timings) |
static bool | timings () |
Sum factorization for an element matrix.
This class is equiped with an interface to get timings of internal computations if compiled accordingly (see bilinearForm.cc
file), see setTimings()
and timings()
.
a
, b
and c
on line 58, coeff
(by use of coeffTmp
) is not accessed in the correct order in the first loop to fill sumfact1_
. Definition at line 44 of file sumfact.hh.
void hp3D::SumFactorization< F >::operator() | ( | concepts::ElementMatrix< F > & | em, |
const concepts::Array< F > & | jacobian, | ||
T * | coeff, | ||
const ShapeFunction3D< Real > & | u, | ||
const ShapeFunction3D< Real > & | v | ||
) |
Application operator. Adds the contribution of coeff
to em
.
em | Element matrix |
jacobian | Jacobian |
coeff | Coefficients for the integration |
u | Left shape functions |
v | Right shape functions |
|
static |
Sets the class to store the timing values in. Additionally, the timeCntr_
is reset to 0. This counter is used to fill in the values into the arrays listed below in subsequent calls. The following timings are taken and stored in timings:
first_temp
second_temp
fill_em
|
static |
Returns true if the class is able to do timings. The ability to do timings depends on a compiler switch in sumfact.cc
file.