Panzer Version of the Day
Loading...
Searching...
No Matches
Panzer_MaterialModelEntry.cpp
Go to the documentation of this file.
1// @HEADER
2// *****************************************************************************
3// Panzer: A partial differential equation assembly
4// engine for strongly coupled complex multiphysics systems
5//
6// Copyright 2011 NTESS and the Panzer contributors.
7// SPDX-License-Identifier: BSD-3-Clause
8// *****************************************************************************
9// @HEADER
10
12
13//=======================================================================
14//=======================================================================
17
18//=======================================================================
19//=======================================================================
21MaterialModelEntry(const std::string factory_name) :
22 m_factory_name(factory_name)
23{ }
24
25//=======================================================================
26//=======================================================================
28MaterialModelEntry(const std::string factory_name,
29 const Teuchos::ParameterList& p) :
30 m_factory_name(factory_name),
31 m_params(p)
32{ }
33
34//=======================================================================
35//=======================================================================
37{
38 return m_factory_name;
39}
40
41//=======================================================================
42//=======================================================================
43const Teuchos::ParameterList& panzer::MaterialModelEntry::params() const
44{
45 return m_params;
46}
47
48//=======================================================================
49//=======================================================================
51{
52 m_factory_name = e.m_factory_name;
53 m_params = e.m_params;
54}
55
56//=======================================================================
57//=======================================================================
59{
60 return ( (m_factory_name == e.m_factory_name) &&
61 (this->m_params == e.m_params) );
62}
63
64//=======================================================================
65//=======================================================================
67{
68 return (!(this->operator==(e)));
69}
70
71//=======================================================================
72//=======================================================================
73void panzer::MaterialModelEntry::print(std::ostream& os) const
74{
75 os << "Material Model Entry: " << m_factory_name;
76}
77
78//=======================================================================
79//=======================================================================
80std::ostream&
82{
83 m.print(os);
84 return os;
85}
Class the holds parsed input data for material models.
bool operator==(const MaterialModelEntry &e) const
void print(std::ostream &os) const
void operator=(const MaterialModelEntry &e)
const Teuchos::ParameterList & params() const
bool operator!=(const MaterialModelEntry &e) const
std::ostream & operator<<(std::ostream &os, const AssemblyEngineInArgs &in)