12 #include "gtest/gtest.h" 86 mesh_params.
set<
unsigned int>(
"nx") = 2;
87 mesh_params.
set<
unsigned int>(
"ny") = 2;
88 mesh_params.
set<
unsigned int>(
"nz") = 2;
90 _mesh->setMeshBase(
_mesh->buildMeshBaseObject());
95 problem_params.
set<std::string>(
"_object_name") =
"name2";
103 template <
typename T>
107 std::shared_ptr<MooseApp>
_app;
112 template <
typename T>
115 const std::string & name,
119 mooseAssert(objects.size() == 1,
"Doesn't work with threading");
std::string name(const ElemQuality q)
std::shared_ptr< FEProblem > _fe_problem
T & addObject(const std::string &type, const std::string &name, InputParameters ¶ms)
std::shared_ptr< MooseApp > _app
Generic factory class for build all sorts of objects.
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
MooseObjectUnitTest(const std::string &app_name)
std::unique_ptr< MooseMesh > _mesh
std::shared_ptr< MooseObject > create(const std::string &obj_name, const std::string &name, const InputParameters ¶meters, THREAD_ID tid=0, bool print_deprecated=true)
InputParameters getValidParams(const std::string &name) const
Get valid parameters for the object.
Base class for building basic unit tests for MOOSE objects that can live alone (like user objects...
MooseMesh wraps a libMesh::Mesh object and enhances its capabilities by caching additional data and s...
This is a "smart" enum class intended to replace many of the shortcomings in the C++ enum type It sho...
std::shared_ptr< MooseApp > createMooseApp(const std::string &default_app_name, int argc, char *argv[])
Create a MooseApp from command-line arguments.
MOOSE now contains C++17 code, so give a reasonable error message stating what the user can do to add...
std::unique_ptr< MooseObject > createUnique(const std::string &obj_name, const std::string &name, const InputParameters ¶meters, THREAD_ID tid=0, bool print_deprecated=true)
Build an object (must be registered) - THIS METHOD IS DEPRECATED (Use create<T>()) ...