https://mooseframework.inl.gov
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 
15 template <typename Base>
17 {
18 public:
20 
22 
23  KOKKOS_FUNCTION Real computeQpIntegral(const unsigned int qp, Datum & datum) const;
24 
25 protected:
31  const bool _use_abs_value;
32 };
33 
34 template <typename Base>
35 KOKKOS_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 
MetaPhysicL::DualNumber< V, D, asd > abs(const MetaPhysicL::DualNumber< V, D, asd > &a)
Definition: EigenADReal.h:50
The Kokkos object that holds thread-private data in the parallel operations of any Kokkos object...
Definition: KokkosDatum.h:23
static InputParameters validParams()
KOKKOS_FUNCTION Real computeQpIntegral(const unsigned int qp, Datum &datum) const
Moose::Kokkos::VariableValue _u
Holds the solution at current quadrature points.
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
KokkosIntegralVariablePostprocessor< KokkosSideIntegralPostprocessor > KokkosSideIntegralVariablePostprocessor
Moose::Kokkos::VariableGradient _grad_u
Holds the solution gradient at the current quadrature points.
KokkosIntegralVariablePostprocessor< KokkosElementIntegralPostprocessor > KokkosElementIntegralVariablePostprocessor
The Kokkos wrapper classes for MOOSE-like variable value access.
const bool _use_abs_value
Option to use absolute variable value.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
Interface for objects that need to get values of MooseVariables.
KokkosIntegralVariablePostprocessor(const InputParameters &parameters)