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 : #include "KokkosElementL2Norm.h" 11 : 12 363195 : registerKokkosUserObject("MooseApp", KokkosElementL2Norm); 13 : 14 : InputParameters 15 2132 : KokkosElementL2Norm::validParams() 16 : { 17 2132 : InputParameters params = KokkosElementIntegralVariablePostprocessor::validParams(); 18 2132 : return params; 19 : } 20 : 21 17 : KokkosElementL2Norm::KokkosElementL2Norm(const InputParameters & parameters) 22 9 : : KokkosElementIntegralVariablePostprocessor(parameters) 23 : { 24 17 : } 25 : 26 : Real 27 15 : KokkosElementL2Norm::getValue() const 28 : { 29 15 : return std::sqrt(KokkosElementIntegralVariablePostprocessor::getValue()); 30 : }