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 "KokkosExtraElementIDAux.h" 11 : 12 201775 : registerKokkosAuxKernel("MooseApp", KokkosExtraElementIDAux); 13 : 14 : InputParameters 15 2124 : KokkosExtraElementIDAux::validParams() 16 : { 17 2124 : InputParameters params = AuxKernel::validParams(); 18 8496 : params.addRequiredParam<std::vector<ExtraElementIDName>>("extra_id_name", 19 : "The extra ID name in the mesh"); 20 2124 : params.addClassDescription("Puts element extra IDs into an aux variable."); 21 2124 : return params; 22 0 : } 23 : 24 19 : KokkosExtraElementIDAux::KokkosExtraElementIDAux(const InputParameters & parameters) 25 14 : : AuxKernel(parameters), _index(getElementIDIndex("extra_id_name")) 26 : { 27 13 : if (isNodal()) 28 0 : paramError("variable", "This AuxKernel only supports Elemental fields"); 29 13 : }