https://mooseframework.inl.gov
Loading...
Searching...
No Matches
KokkosIntegralVariablePostprocessor.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
14
15template <typename Base>
17{
18public:
20
22
23 KOKKOS_FUNCTION Real computeQpIntegral(const unsigned int qp, Datum & datum) const;
24
25protected:
31 const bool _use_abs_value;
32};
33
34template <typename Base>
35KOKKOS_FUNCTION inline Real
37 Datum & datum) const
38{
39 if (_use_abs_value)
40 return Kokkos::abs(_u(datum, qp));
41 else
42 return _u(datum, qp);
43}
44
KokkosIntegralVariablePostprocessor< KokkosElementIntegralPostprocessor > KokkosElementIntegralVariablePostprocessor
KokkosIntegralVariablePostprocessor< KokkosSideIntegralPostprocessor > KokkosSideIntegralVariablePostprocessor
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
KOKKOS_FUNCTION Real computeQpIntegral(const unsigned int qp, Datum &datum) const
KokkosIntegralVariablePostprocessor(const InputParameters &parameters)
Moose::Kokkos::VariableValue _u
Holds the solution at current quadrature points.
const bool _use_abs_value
Option to use absolute variable value.
Moose::Kokkos::VariableGradient _grad_u
Holds the solution gradient at the current quadrature points.
static InputParameters validParams()
Interface for objects that need to get values of MooseVariables.
The Kokkos object that holds thread-private data in the parallel operations of any Kokkos object.
The Kokkos wrapper classes for MOOSE-like variable value access.