Revision 37e971f557e78da9ec12bbf7c16abe66b07bed2f authored by Lars Bilke on 11 March 2021, 13:24:27 UTC, committed by Lars Bilke on 16 March 2021, 19:46:13 UTC
1 parent ea87476
ConvergenceCriterionPerComponent.h
/**
* \file
* \copyright
* Copyright (c) 2012-2021, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#pragma once
#include "ConvergenceCriterion.h"
#include "MathLib/LinAlg/LinAlg.h" // For MathLib::VecNormType
namespace MeshLib
{
class Mesh;
} // namespace MeshLib
namespace NumLib
{
class LocalToGlobalIndexMap;
//! Interface for applying a convergence criterion individually to each
//! component of a multi-component solution or residual vector.
//! Component here means sub-vector, not single scalar vector entry.
class ConvergenceCriterionPerComponent : public ConvergenceCriterion
{
public:
explicit ConvergenceCriterionPerComponent(
const MathLib::VecNormType norm_type)
: ConvergenceCriterion(norm_type)
{
}
//! Sets the d.o.f. table used to extract data for a specific component.
virtual void setDOFTable(NumLib::LocalToGlobalIndexMap const& dof_table,
MeshLib::Mesh const& mesh) = 0;
};
} // namespace NumLib
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...