Path: blob/devel/ElmerGUI/Application/src/maxlimits.cpp
3203 views
/*****************************************************************************1* *2* Elmer, A Finite Element Software for Multiphysical Problems *3* *4* Copyright 1st April 1995 - , CSC - IT Center for Science Ltd., Finland *5* *6* This program is free software; you can redistribute it and/or *7* modify it under the terms of the GNU General Public License *8* as published by the Free Software Foundation; either version 2 *9* of the License, or (at your option) any later version. *10* *11* This program is distributed in the hope that it will be useful, *12* but WITHOUT ANY WARRANTY; without even the implied warranty of *13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *14* GNU General Public License for more details. *15* *16* You should have received a copy of the GNU General Public License *17* along with this program (in file fem/GPL-2); if not, write to the *18* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, *19* Boston, MA 02110-1301, USA. *20* *21*****************************************************************************/2223/*****************************************************************************24* *25* ElmerGUI maxlimits *26* *27*****************************************************************************28* *29* Authors: Mikko Lyly, Juha Ruokolainen and Peter Råback *30* Email: [email protected] *31* Web: http://www.csc.fi/elmer *32* Address: CSC - IT Center for Science Ltd. *33* Keilaranta 14 *34* 02101 Espoo, Finland *35* *36* Original Date: 15 Mar 2008 *37* *38*****************************************************************************/3940#include "maxlimits.h"4142Limit::Limit()43{44// Default limits:45max_solvers = 10;46max_equations = 10;47max_materials = 10;48max_bodyforces = 10;49max_initialconditions = 10;50max_bcs = 500;51max_bodies = 100;52max_boundaries = 500;53}5455Limit::~Limit()56{57}5859int Limit::maxEquations()60{61return max_equations;62}6364int Limit::maxMaterials()65{66return max_materials;67}6869int Limit::maxBodyforces()70{71return max_bodyforces;72}7374int Limit::maxInitialconditions()75{76return max_initialconditions;77}7879int Limit::maxBcs()80{81return max_bcs;82}8384int Limit::maxBodies()85{86return max_bodies;87}8889int Limit::maxBoundaries()90{91return max_boundaries;92}9394int Limit::maxSolvers()95{96return max_solvers;97}9899void Limit::setMaxEquations(int value)100{101max_equations = value;102}103104void Limit::setMaxMaterials(int value)105{106max_materials = value;107}108109void Limit::setMaxBodyforces(int value)110{111max_bodyforces = value;112}113114void Limit::setMaxInitialconditions(int value)115{116max_initialconditions = value;117}118119void Limit::setMaxBcs(int value)120{121max_bcs = value;122}123124void Limit::setMaxBodies(int value)125{126max_bodies = value;127}128129void Limit::setMaxBoundaries(int value)130{131max_boundaries = value;132}133134void Limit::setMaxSolvers(int value)135{136max_solvers = value;137}138139140