https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
13registerMooseObject("NavierStokesTestApp", MallocKernel);
14
20
21MallocKernel::MallocKernel(const InputParameters & parameters) : Kernel(parameters) {}
22
23void
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
32Real
34{
35 return 0;
36}
registerMooseObject("NavierStokesTestApp", MallocKernel)
static InputParameters validParams()
static InputParameters validParams()
void jacobianSetup() override
Real computeQpResidual() override
MallocKernel(const InputParameters &parameters)
SystemBase & _sys
virtual libMesh::SparseMatrix< Number > & getMatrix(TagID tag)
virtual TagID systemMatrixTag() const
virtual void add(const numeric_index_type i, const numeric_index_type j, const T value)=0