Flow123d
release_2.2.0-22-g936454a
|
Go to the source code of this file.
Classes | |
class | FieldSet |
Container for various descendants of FieldCommonBase. More... | |
Macros | |
#define | ADD_FIELD(name, ...) this->add_field(&name, string(#name), __VA_ARGS__) |
* Copyright (C) 2015 Technical University of Liberec. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation. (http://www.gnu.org/licenses/gpl-3.0.en.html)
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
Definition in file field_set.hh.
#define ADD_FIELD | ( | name, | |
... | |||
) | this->add_field(&name, string(#name), __VA_ARGS__) |
(OBSOLETE) Macro to simplify call of FieldSet::add_field method. Two forms are supported:
ADD_FIELD(some_field, description); ADD_FIELD(some_field, description, Default);
The first form adds name "some_field" to the field member some_field, also adds description of the field. No default value is specified, so the user must initialize the field on all regions (This is checked in the Field<..>::set_time method)
The second form adds also default value to the field, that is Default(".."), or Default::read_time(), other default value specifications are meaningless. The automatic conversion to FieldConst is used, e.g. Default::("0.0") is automatically converted to { TYPE="FieldConst", value=[ 0.0 ] } for a vector valued field, so you get zero vector on output on regions with default value.
Definition at line 269 of file field_set.hh.