compiles on openSUSE 15.4 part 2
[engrid-github.git] / src / libengrid / volumedefinition.cpp
blobf5547ca112d2d612cafbd66b25273e54123a7472
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 "volumedefinition.h"
23 VolumeDefinition::VolumeDefinition()
25 this->name = "unknown";
26 this->vc = -1;
29 VolumeDefinition::VolumeDefinition(QString name, int vc)
31 this->name = name;
32 this->vc = vc;
35 void VolumeDefinition::addBC(int bc, int sign)
37 bcs[bc] = sign;
40 int VolumeDefinition::getSign(int bc)
42 if (bcs.contains(bc)) {
43 return bcs[bc];
45 return 1;