MCPcopy Create free account
hub / github.com/SeisSol/SeisSol / integrateQuantities

Method integrateQuantities

src/ResultWriter/PostProcessor.cpp:48–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46#include <array>
47
48void seissol::writer::PostProcessor::integrateQuantities(const double timestep,
49 seissol::initializer::Layer& layerData,
50 const unsigned int cell,
51 const double* const dofs) {
52
53 real* integrals = layerData.var(m_integrals);
54 for (int i = 0; i < m_numberOfVariables; i++) {
55 integrals[cell * m_numberOfVariables + i] +=
56 dofs[NumAlignedBasisFunctions * m_integerMap[i]] * timestep;
57 }
58}
59
60void seissol::writer::PostProcessor::setIntegrationMask(
61 const std::array<bool, 9>& integrationMask) {

Calls 1

varMethod · 0.45

Tested by

no test coverage detected