Line data Source code
1 : /**********************************************************************/ 2 : /* DO NOT MODIFY THIS HEADER */ 3 : /* MAGPIE - Mesoscale Atomistic Glue Program for Integrated Execution */ 4 : /* */ 5 : /* Copyright 2017 Battelle Energy Alliance, LLC */ 6 : /* ALL RIGHTS RESERVED */ 7 : /**********************************************************************/ 8 : 9 : #ifdef GSL_ENABLED 10 : 11 : #include "DPAPostprocessor.h" 12 : #include "DPAUserObjectBase.h" 13 : 14 : registerMooseObject("MagpieApp", DPAPostprocessor); 15 : 16 : InputParameters 17 32 : DPAPostprocessor::validParams() 18 : { 19 32 : InputParameters params = GeneralPostprocessor::validParams(); 20 64 : params.addRequiredParam<UserObjectName>("dpa_object", "The neutronics damage object."); 21 32 : params.addClassDescription("Retrieves the value of the dpa from a DPAUserObjectBase."); 22 32 : return params; 23 0 : } 24 : 25 16 : DPAPostprocessor::DPAPostprocessor(const InputParameters & params) 26 16 : : GeneralPostprocessor(params), _damage_object(getUserObject<DPAUserObjectBase>("dpa_object")) 27 : { 28 16 : } 29 : 30 : Real 31 16 : DPAPostprocessor::getValue() const 32 : { 33 16 : return _damage_object.getDPA(); 34 : } 35 : 36 : #endif