www.mooseframework.org
GeneralUserObject.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 "GeneralUserObject.h"
11 
14 {
17 
18  return params;
19 }
20 
22  : UserObject(parameters),
24  TransientInterface(this)
25 {
26 }
27 
28 void
30 {
31  mooseError("GeneralUserObjects do not execute using threads, this function does nothing and "
32  "should not be used.");
33 }
34 
35 void
37 {
38  mooseError("GeneralUserObjects do not execute subdomainSetup method, this function does nothing "
39  "and should not be used.");
40 }
static InputParameters validParams()
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
static InputParameters validParams()
Interface for objects that needs transient capabilities.
virtual void threadJoin(const UserObject &) override
This method is not used and should not be used in a custom GeneralUserObject.
virtual void subdomainSetup() override
Gets called when the subdomain changes (i.e.
const std::set< SubdomainID > EMPTY_BLOCK_IDS
Definition: MooseTypes.h:596
An interface for accessing Materials.
const std::set< BoundaryID > EMPTY_BOUNDARY_IDS
Definition: MooseTypes.h:597
GeneralUserObject(const InputParameters &parameters)
void mooseError(Args &&... args) const
Emits an error prefixed with object name and type.
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
Base class for user-specific data.
Definition: UserObject.h:39
static InputParameters validParams()
Definition: UserObject.C:18