https://mooseframework.inl.gov
MallocKernel.C
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 #include "MallocKernel.h"
11 #include "SystemBase.h"
12 
13 registerMooseObject("NavierStokesTestApp", MallocKernel);
14 
17 {
18  return Kernel::validParams();
19 }
20 
21 MallocKernel::MallocKernel(const InputParameters & parameters) : Kernel(parameters) {}
22 
23 void
25 {
26  auto & sys_mat = _sys.getMatrix(_sys.systemMatrixTag());
27 
28  // Add to an off-diagional
29  sys_mat.add(0, sys_mat.n() - 1, 0);
30 }
31 
32 Real
34 {
35  return 0;
36 }
MallocKernel(const InputParameters &parameters)
Definition: MallocKernel.C:21
static InputParameters validParams()
static InputParameters validParams()
Definition: MallocKernel.C:16
void jacobianSetup() override
Definition: MallocKernel.C:24
virtual void add(const numeric_index_type i, const numeric_index_type j, const T value)=0
SystemBase & _sys
virtual TagID systemMatrixTag() const
Real computeQpResidual() override
Definition: MallocKernel.C:33
registerMooseObject("NavierStokesTestApp", MallocKernel)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual libMesh::SparseMatrix< Number > & getMatrix(TagID tag)