limited volume meshing to boundary layer only
[engrid-github.git] / src / libengrid / boundarycondition.cpp
blob473d94cace3a7ae434c0ffcd5bd60693f71ea493
1 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 // + +
3 // + This file is part of enGrid. +
4 // + +
5 // + Copyright 2008-2014 enGits GmbH +
6 // + +
7 // + enGrid is free software: you can redistribute it and/or modify +
8 // + it under the terms of the GNU General Public License as published by +
9 // + the Free Software Foundation, either version 3 of the License, or +
10 // + (at your option) any later version. +
11 // + +
12 // + enGrid is distributed in the hope that it will be useful, +
13 // + but WITHOUT ANY WARRANTY; without even the implied warranty of +
14 // + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +
15 // + GNU General Public License for more details. +
16 // + +
17 // + You should have received a copy of the GNU General Public License +
18 // + along with enGrid. If not, see <http://www.gnu.org/licenses/>. +
19 // + +
20 // ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21 #include "boundarycondition.h"
23 BoundaryCondition::BoundaryCondition()
25 m_Name = "unknown";
26 m_Type = "patch";
27 m_Code = -1;
30 BoundaryCondition::BoundaryCondition(QString name, QString type, int code)
32 m_Name = name;
33 m_Type = type;
34 m_Code = code;
37 bool BoundaryCondition::operator<(const BoundaryCondition& bc) const
39 if (m_Type < bc.m_Type) {
40 return true;
41 } else if (m_Type == bc.m_Type) {
42 if (m_Name < bc.m_Name) {
43 return true;
46 return false;