https://mooseframework.inl.gov
MatrixEigenvalueCheck.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:
36  const Real _zero_tol;
37  const std::string & _mat_name;
38  const bool _print;
39  Mat _petsc_mat = nullptr;
41 };
const std::string & _mat_name
virtual void execute() override
static InputParameters validParams()
The following methods are specializations for using the Parallel::packed_range_* routines for a vecto...
virtual Real getValue() const override
MatrixEigenvalueCheck(const InputParameters &parameters)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Returns the number of zero eigenvalues in a PETSc matrix.
const InputParameters & parameters() const
virtual void finalize() override
virtual void initialize() override