https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MatrixEqualityCheck.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#pragma once
11
13
14namespace libMesh
15{
16template <typename>
17class PetscMatrix;
18}
19
24{
25public:
27
29
30 virtual void initialize() override {}
31 virtual void execute() override;
32 virtual void finalize() override;
33 virtual Real getValue() const override;
34
35protected:
36 const Real _equiv_tol;
37 const std::string & _mat1_name;
38 const std::string & _mat2_name;
39 Mat _petsc_mat1 = nullptr;
40 Mat _petsc_mat2 = nullptr;
41 bool _equiv = true;
42};
Checks if two matrices are the same by comparing their coefficients.
virtual void finalize() override
virtual void execute() override
const std::string & _mat2_name
const std::string & _mat1_name
virtual Real getValue() const override
virtual void initialize() override
static InputParameters validParams()
const InputParameters & parameters() const
The following methods are specializations for using the Parallel::packed_range_* routines for a vecto...