Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ElmerCSC
GitHub Repository: ElmerCSC/elmerfem
Path: blob/devel/ElmerGUI/Application/src/maxlimits.cpp
3203 views
1
/*****************************************************************************
2
* *
3
* Elmer, A Finite Element Software for Multiphysical Problems *
4
* *
5
* Copyright 1st April 1995 - , CSC - IT Center for Science Ltd., Finland *
6
* *
7
* This program is free software; you can redistribute it and/or *
8
* modify it under the terms of the GNU General Public License *
9
* as published by the Free Software Foundation; either version 2 *
10
* of the License, or (at your option) any later version. *
11
* *
12
* This program 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 this program (in file fem/GPL-2); if not, write to the *
19
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *
20
* Boston, MA 02110-1301, USA. *
21
* *
22
*****************************************************************************/
23
24
/*****************************************************************************
25
* *
26
* ElmerGUI maxlimits *
27
* *
28
*****************************************************************************
29
* *
30
* Authors: Mikko Lyly, Juha Ruokolainen and Peter Råback *
31
* Email: [email protected] *
32
* Web: http://www.csc.fi/elmer *
33
* Address: CSC - IT Center for Science Ltd. *
34
* Keilaranta 14 *
35
* 02101 Espoo, Finland *
36
* *
37
* Original Date: 15 Mar 2008 *
38
* *
39
*****************************************************************************/
40
41
#include "maxlimits.h"
42
43
Limit::Limit()
44
{
45
// Default limits:
46
max_solvers = 10;
47
max_equations = 10;
48
max_materials = 10;
49
max_bodyforces = 10;
50
max_initialconditions = 10;
51
max_bcs = 500;
52
max_bodies = 100;
53
max_boundaries = 500;
54
}
55
56
Limit::~Limit()
57
{
58
}
59
60
int Limit::maxEquations()
61
{
62
return max_equations;
63
}
64
65
int Limit::maxMaterials()
66
{
67
return max_materials;
68
}
69
70
int Limit::maxBodyforces()
71
{
72
return max_bodyforces;
73
}
74
75
int Limit::maxInitialconditions()
76
{
77
return max_initialconditions;
78
}
79
80
int Limit::maxBcs()
81
{
82
return max_bcs;
83
}
84
85
int Limit::maxBodies()
86
{
87
return max_bodies;
88
}
89
90
int Limit::maxBoundaries()
91
{
92
return max_boundaries;
93
}
94
95
int Limit::maxSolvers()
96
{
97
return max_solvers;
98
}
99
100
void Limit::setMaxEquations(int value)
101
{
102
max_equations = value;
103
}
104
105
void Limit::setMaxMaterials(int value)
106
{
107
max_materials = value;
108
}
109
110
void Limit::setMaxBodyforces(int value)
111
{
112
max_bodyforces = value;
113
}
114
115
void Limit::setMaxInitialconditions(int value)
116
{
117
max_initialconditions = value;
118
}
119
120
void Limit::setMaxBcs(int value)
121
{
122
max_bcs = value;
123
}
124
125
void Limit::setMaxBodies(int value)
126
{
127
max_bodies = value;
128
}
129
130
void Limit::setMaxBoundaries(int value)
131
{
132
max_boundaries = value;
133
}
134
135
void Limit::setMaxSolvers(int value)
136
{
137
max_solvers = value;
138
}
139
140