Line data Source code
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 "KokkosNodalStatistics.h" 13 : 14 : class KokkosNodalVariableStatistics : public KokkosNodalStatistics 15 : { 16 : public: 17 : static InputParameters validParams(); 18 : 19 : KokkosNodalVariableStatistics(const InputParameters & parameters); 20 : 21 : KOKKOS_FUNCTION Real computeValue(Datum & datum) const; 22 : 23 : protected: 24 : /// The coupled variable used. 25 : const Moose::Kokkos::VariableValue _v; 26 : }; 27 : 28 : KOKKOS_FUNCTION inline Real 29 726 : KokkosNodalVariableStatistics::computeValue(Datum & datum) const 30 : { 31 726 : return _v(datum, 0); 32 : }