Line data Source code
1 : /********************************************************************/ 2 : /* SOFTWARE COPYRIGHT NOTIFICATION */ 3 : /* Cardinal */ 4 : /* */ 5 : /* (c) 2021 UChicago Argonne, LLC */ 6 : /* ALL RIGHTS RESERVED */ 7 : /* */ 8 : /* Prepared by UChicago Argonne, LLC */ 9 : /* Under Contract No. DE-AC02-06CH11357 */ 10 : /* With the U. S. Department of Energy */ 11 : /* */ 12 : /* Prepared by Battelle Energy Alliance, LLC */ 13 : /* Under Contract No. DE-AC07-05ID14517 */ 14 : /* With the U. S. Department of Energy */ 15 : /* */ 16 : /* See LICENSE for full restrictions */ 17 : /********************************************************************/ 18 : 19 : #pragma once 20 : 21 : #include "GeneralPostprocessor.h" 22 : 23 : #include "NekBase.h" 24 : 25 : /** 26 : * This postprocessor is used strictly for testing the construction 27 : * of NekRSMesh in terms of the number of elements constructed and the 28 : * node coordinates of those elements. This object solely exists because 29 : * MOOSE's unit testing system is difficult to adapt to test objects that 30 : * depend on a mesh (including the mesh objects themselves). See 31 : * 32 : * https://github.com/idaholab/moose/discussions/16181 33 : * 34 : * for more information on the motivation for this object. 35 : */ 36 : class NekMeshInfoPostprocessor : public GeneralPostprocessor, public NekBase 37 : { 38 : public: 39 : NekMeshInfoPostprocessor(const InputParameters & parameters); 40 : 41 : static InputParameters validParams(); 42 : 43 1112 : virtual void initialize() override {} 44 1112 : virtual void execute() override {} 45 : 46 : virtual Real getValue() const override; 47 : 48 : private: 49 : /// Type of value to compute 50 : const MooseEnum _test_type; 51 : 52 : /// element for which to read mesh information 53 : const libMesh::Elem * _element; 54 : 55 : /// element-local node for which to read mesh information 56 : const libMesh::dof_id_type * _node; 57 : };