Line data Source code
1 : /**********************************************************************/ 2 : /* DO NOT MODIFY THIS HEADER */ 3 : /* Swift, a Fourier spectral solver for MOOSE */ 4 : /* */ 5 : /* Copyright 2024 Battelle Energy Alliance, LLC */ 6 : /* ALL RIGHTS RESERVED */ 7 : /**********************************************************************/ 8 : 9 : #include "TensorPostprocessor.h" 10 : #include "TensorProblem.h" 11 : 12 : template <class T> 13 : InputParameters 14 568 : TensorPostprocessorTempl<T>::validParams() 15 : { 16 568 : InputParameters params = T::validParams(); 17 568 : params.addClassDescription("A normal Postprocessor acting on a Tensor buffer."); 18 1136 : params.addRequiredParam<TensorInputBufferName>("buffer", "The buffer this compute is operating on"); 19 568 : return params; 20 0 : } 21 : 22 : template <class T> 23 282 : TensorPostprocessorTempl<T>::TensorPostprocessorTempl(const InputParameters & parameters) 24 : : T(parameters), 25 : DomainInterface(this), 26 564 : _tensor_problem(TensorProblem::cast(this, this->_fe_problem)), 27 564 : _u(_tensor_problem.getBuffer(this->template getParam<TensorInputBufferName>("buffer"))) 28 : { 29 282 : } 30 : 31 : template class TensorPostprocessorTempl<GeneralPostprocessor>; 32 : template class TensorPostprocessorTempl<GeneralVectorPostprocessor>;