https://mooseframework.inl.gov
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 
12 #include "GeneralPostprocessor.h"
13 
14 namespace libMesh
15 {
16 template <typename>
17 class PetscMatrix;
18 }
19 
24 {
25 public:
27 
29 
30  virtual void initialize() override {}
31  virtual void execute() override;
32  virtual void finalize() override;
33  virtual Real getValue() const override;
34 
35 protected:
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 };
virtual Real getValue() const override
virtual void execute() override
The following methods are specializations for using the Parallel::packed_range_* routines for a vecto...
const std::string & _mat2_name
static InputParameters validParams()
virtual void finalize() override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
MatrixEqualityCheck(const InputParameters &parameters)
const InputParameters & parameters() const
virtual void initialize() override
Checks if two matrices are the same by comparing their coefficients.
const std::string & _mat1_name