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 "AddVectorPostprocessorAction.h" 11 : #include "Factory.h" 12 : #include "FEProblem.h" 13 : 14 : registerMooseAction("MooseApp", AddVectorPostprocessorAction, "add_vector_postprocessor"); 15 : 16 : InputParameters 17 5590 : AddVectorPostprocessorAction::validParams() 18 : { 19 5590 : InputParameters params = MooseObjectAction::validParams(); 20 5590 : params.addClassDescription("Add a VectorPostprocessor object to the simulation."); 21 5590 : return params; 22 0 : } 23 : 24 5387 : AddVectorPostprocessorAction::AddVectorPostprocessorAction(const InputParameters & params) 25 5387 : : MooseObjectAction(params) 26 : { 27 5387 : } 28 : 29 : void 30 5285 : AddVectorPostprocessorAction::act() 31 : { 32 5285 : if (!_problem) 33 0 : mooseError("The Problem has not been initialized yet!"); 34 : 35 5285 : _problem->addVectorPostprocessor(_type, _name, _moose_object_pars); 36 5241 : }