www.mooseframework.org
ThreadedGeneralUserObject.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 
11 
13  : GeneralUserObject(parameters)
14 {
15 #if !defined(LIBMESH_HAVE_OPENMP) && !defined(LIBMESH_HAVE_TBB_API)
16  mooseError(name(),
17  ": You cannot use threaded general user objects with pthreads. To enable this "
18  "functionality configure libMesh with OpenMP or TBB.");
19 #endif
20 }
21 
22 void
24 {
25  mooseError("ThreadedGeneralUserObject failed to override threadJoin");
26 }
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
void mooseError(Args &&... args) const
Definition: MooseObject.h:147
ThreadedGeneralUserObject(const InputParameters &parameters)
virtual void threadJoin(const UserObject &) override
This method is not used and should not be used in a custom GeneralUserObject.
const std::string & name() const
Get the name of the object.
Definition: MooseObject.h:59
Base class for user-specific data.
Definition: UserObject.h:37