Flow123d  JS_before_hm-919-g5f1bbbf
field_common.hh
Go to the documentation of this file.
1 /*!
2  *
3  * Copyright (C) 2015 Technical University of Liberec. All rights reserved.
4  *
5  * This program is free software; you can redistribute it and/or modify it under
6  * the terms of the GNU General Public License version 3 as published by the
7  * Free Software Foundation. (http://www.gnu.org/licenses/gpl-3.0.en.html)
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12  *
13  *
14  * @file field_common.hh
15  * @brief
16  */
17 
18 #ifndef FIELD_COMMON_HH_
19 #define FIELD_COMMON_HH_
20 
21 #include <algorithm> // for sort, unique
22 #include <boost/exception/detail/error_info_impl.hpp> // for error_info
23 #include <boost/exception/info.hpp> // for operator<<
24 #include <limits> // for numeric_limits
25 #include <memory> // for shared_ptr
26 #include <ostream> // for operator<<
27 #include <string> // for string, basic_...
28 #include <utility> // for make_pair, pair
29 #include <vector> // for vector, allocator
30 #include "fields/field_algo_base.hh" // for FieldResult
31 #include "fields/field_flag.hh" // for FieldFlag, Fie...
32 #include "fields/field_values.hh" // for FieldEnum
33 #include "tools/unit_si.hh" // for UnitSI
34 #include "input/accessors.hh" // for Record, Array ...
35 #include "input/input_exception.hh" // for ExcInputMessage
36 #include "input/type_base.hh" // for Array, Type
37 #include "input/type_generic.hh" // for Instance
38 #include "input/type_record.hh" // for Record
39 #include "input/type_selection.hh" // for Selection
40 #include "io/output_time.hh" // for OutputTime
41 #include "mesh/region.hh" // for Region (ptr only)
42 #include "system/asserts.hh" // for Assert, ASSERT
43 #include "system/exc_common.hh" // for EI_Message
44 #include "system/exceptions.hh" // for operator<<
45 #include "system/flag_array.hh" // for FlagArray<>::Mask
46 #include "tools/time_governor.hh" // for TimeGovernor (...
47 
48 class Mesh;
49 class Observe;
50 class EvalPoints;
51 class ElementCacheMap;
52 
53 
54 using namespace std;
55 
56 namespace IT=Input::Type;
57 
58 /**
59  * Left and right time limit, used in the @p set_time() method.
60  * Assigned values allow to index an array.
61  */
62 enum class LimitSide {
63  left=0,
64  right=1
65 };
66 
67 
68 
69 /**
70  * @brief Common abstract parent of all Field<...> classes.
71  *
72  * We need common ancestor in order to keep a list of all fields in one EqData object and allow
73  * collective operations like @p set_time or @p init_from_input.
74  */
75 class FieldCommon {
76 
77 public:
78  TYPEDEF_ERR_INFO(EI_Time, double);
79  TYPEDEF_ERR_INFO(EI_Field, std::string);
80  DECLARE_INPUT_EXCEPTION(ExcNonascendingTime,
81  << "Non-ascending time: " << EI_Time::val << " for field " << EI_Field::qval << ".\n");
82  DECLARE_INPUT_EXCEPTION(ExcMissingDomain,
83  << "Missing domain specification (region or r_id) in the field descriptor:");
84  DECLARE_EXCEPTION(ExcFieldMeshDifference,
85  << "Two copies of the field " << EI_Field::qval << "call set_mesh with different arguments.\n");
86 
87 
88 
89  /// Store data of one initialization message.
90  struct MessageData {
91  /// Constructor
92  MessageData(std::string default_value, std::string field_name, std::string region_list)
93  : default_value_(default_value), field_name_(field_name), region_list_(region_list) {};
94 
95  std::string default_value_; ///< Default value of the field.
96  std::string field_name_; ///< Parameter name_ of the field.
97  std::string region_list_; ///< List of regions separated by comma.
98  };
99 
100  /**
101  * Set name of the field. In fact there are two attributes set by this method.
102  *
103  * The first is name used to identify the field as part of a FieldSet or MultiField objects.
104  * This name is permanent and can be set only by this method. Can be accessed by @p name() method.
105  * This name is also used at output.
106  *
107  * The second is @p input_name_ that determines appropriate key name in the input field descriptor.
108  * This name is also set by this method, but is stored in the internal shared space which
109  * is overwritten during call of copy_from method or assignment operator. Can be accessed by @p input_name() mathod.
110  *
111  */
112  FieldCommon &name(const string & name)
113  { name_=shared_->input_name_ = name;
114  return *this;
115  }
116  /**
117  * Set description of the field, used for description of corresponding key in documentation.
118  */
119  FieldCommon & description(const string & description)
120  { shared_->input_description_ = description; return *this;}
121  /**
122  * Set default value for the field's key from which the default constant valued field will be constructed.
123  *
124  * During the first call of the @p set_time method, we check that the field is defined on all regions.
125  * On regions where it is not set yet, we use given @p dflt string to get particular instance of
126  * FieldBase<> (see @p check_initialized_region_fields_).
127  * The default string is interpreted in the same way as if it appears in the input file
128  * as the value of the field. In particular it can be whole record with @p TYPE of the field etc.
129  * Most common choice is however mere constant.
130  */
131  FieldCommon & input_default(const string &input_default)
132  { shared_->input_default_ = input_default; return *this;}
133  /**
134  * @brief Set basic units of the field.
135  *
136  * Currently, we use it only during output and we represents units just by a string.
137  *
138  * TODO:
139  * Particular class for representing and conversion of various units would be more appropriate.
140  * This can allow specification of the units on the inptu, automatic conversion and the same on the output.
141  * Possibly this allow using Boost::Units library, however, it seems to introduce lot of boilerplate code.
142  * But can increase correctness of the calculations.
143  */
144  FieldCommon & units(const UnitSI & units)
145  { shared_->units_ = units; return *this;}
146 
147  /**
148  * Set limits of value of the field.
149  */
150  FieldCommon & set_limits(double min, double max = std::numeric_limits<double>::max())
151  {
152  ASSERT(min < max)(min)(max).error("Invalid field limits!");
153  shared_->limits_ = std::make_pair(min, max);
154  return *this;
155  }
156 
157  /**
158  * For the fields returning "Enum", we have to pass the Input::Type::Selection object to
159  * the field implementations.
160  *
161  * We must save raw pointer since selection may not be yet initialized (during static initialization phase).
162  */
164  {
165  shared_->input_element_selection_=element_selection;
166  return *this;
167  }
168 
169  /**
170  * Output discrete space used in the output() method. Can be different for different field copies.
171  * one can choose between:
172  * data constant on elements, linear data given in nodes, and discontinuous linear data.
173  *
174  * If not set explicitly by this method, the default value is OutputTime::ELEM_DATA
175  */
177  { if (rt!=OutputTime::UNDEFINED) type_of_output_data_ = rt; return *this; }
178 
179  /**
180  * Set given mask to the field flags, ignoring default setting.
181  * Default setting is declare_input & equation_input & allow_output.
182  */
183  FieldCommon & flags(FieldFlag::Flags::Mask mask)
184  { flags_ = FieldFlag::Flags(mask); return *this; }
185 
186  /**
187  * Add given mask to the field flags.
188  */
189  FieldCommon & flags_add(FieldFlag::Flags::Mask mask)
190  { flags().add(mask); return *this; }
191 
192  /**
193  * Set vector of component names.
194  * Set number of components for run-time sized vectors. This is used latter when we construct
195  * objects derived from FieldBase<...>.
196  *
197  * n_comp_ is constant zero for fixed values, this zero is set by Field<...> constructors
198  */
199  void set_components(const std::vector<string> &names) {
200  // Test of unique values in names vector for MultiField
201  if (multifield_) {
202  std::vector<string> cpy = names;
203  std::sort( cpy.begin(), cpy.end() );
204  cpy.erase( std::unique( cpy.begin(), cpy.end() ), cpy.end() );
205  if (names.size() != cpy.size()) {
206  THROW( Input::ExcInputMessage() << EI_Message("The field " + this->input_name()
207  + " has set non-unique names of components.") );
208  }
209  shared_->n_comp_ = names.size();
210  } else {
211  shared_->n_comp_ = (shared_->n_comp_ ? names.size() : 0);
212  }
213 
214  shared_->comp_names_ = names;
215  }
216 
217 
218  /**
219  * Set internal mesh pointer.
220  */
221  virtual void set_mesh(const Mesh &mesh) = 0;
222  /**
223  * Set the data list from which field will read its input. It is list of "field descriptors".
224  * When reading from the input list we consider only field descriptors containing key of
225  * named by the field name. These field descriptors has to have times forming ascending sequence.
226  *
227  * The list is used by set_time method to set field on individual regions to actual FieldBase descendants.
228  */
229  virtual void set_input_list(const Input::Array &list, const TimeGovernor &tg) =0;
230 
231  /**
232  * Getters.
233  */
234  const std::string &input_name() const
235  { return shared_->input_name_;}
236 
237  const std::string &name() const
238  { return name_;}
239 
240  const std::string description() const
241  {return shared_->input_description_;}
242 
243  const std::string &input_default() const
244  { return shared_->input_default_;}
245 
246  const UnitSI &units() const
247  {
248  ASSERT(shared_->units_.is_def())(name()).error("Getting undefined unit.\n");
249  return shared_->units_;
250  }
251 
252  std::pair<double, double> limits() const
253  {
254  return shared_->limits_;
255  }
256 
258  { return type_of_output_data_; }
259 
260  bool is_bc() const
261  { return shared_->bc_;}
262 
263  unsigned int n_comp() const
264  { return shared_->comp_names_.size();}
265 
266  const Mesh * mesh() const
267  { return shared_->mesh_;}
268 
270  { return flags_; }
271 
273  { return flags_; }
274 
275  /**
276  * Returns time set by last call of set_time method.
277  * Can be different for different field copies.
278  */
279  double time() const
280  { return last_time_; }
281 
282  /**
283  * Returns true if the field change algorithm for the current time set through the @p set_time method.
284  * This happen for all times in the field descriptors on the input of this particular field.
285  */
286  bool is_jump_time() {
287  return is_jump_time_;
288  }
289 
290  /**
291  * Returns number of field descriptors containing the field.
292  */
293  unsigned int input_list_size() const {
294  return shared_->input_list_.size();
295  }
296 
297  /**
298  * If the field on given region @p reg exists and is of type FieldConstant<...> the method method returns true
299  * otherwise it returns false.
300  * Then one can call ElementAccessor<spacedim>(mesh(), reg ) to construct an ElementAccessor @p elm
301  * pointing to "virtual" element on which Field::value returns constant value.
302  * Unlike the Field<>::field_result method, this one provides no value, so it have common header (arguments, return type) and
303  * could be part of FieldCommon and FieldSet which is useful in some applications.
304  *
305  * TODO:Current implementation use virtual functions and can be prohibitively slow if called for every element. If this
306  * becomes necessary it is possible to incorporate such test into set_time method and in this method just return precomputed result.
307  */
308  virtual bool is_constant(Region reg) =0;
309 
310 
311  /**
312  * @brief Indicates special field states.
313  *
314  * Extension of the previous method. Return possible values from the enum @p FieldResult, see description there.
315  * The initial state is @p field_none, if the field is correctly set on all regions of the @p region_set given as parameter
316  * we return state @p field_other or even more particular result.
317  *
318  * Special field values spatially constant. Could allow optimization of tensor multiplication and
319  * tensor or vector addition. field_result_ should be set in constructor and in set_time method of particular Field implementation.
320  * We return value @p result_none, if the field is not initialized on the region of the given element accessor @p elm.
321  * Other possible results are: result_zeros, result_eye, result_ones, result_constant, result_other
322  * see @p FieldResult for explanation.
323  *
324  * Multifield return most particular value that holds for all its subfields.
325  *
326  *
327  */
328  virtual FieldResult field_result( RegionSet region_set) const =0;
329 
330  /**
331  * Return specification of the field value type in form of the string:
332  * [ <element type>, NRows, NCols]
333  *
334  * Result is valid JSON (and/or flow style YAML).
335  * For multifields not implemented.
336  */
337  virtual std::string get_value_attribute() const =0;
338 
339  /**
340  * Returns true if set_time_result_ is not @p TimeStatus::constant.
341  * Returns the same value as last set_time method.
342  */
343  bool changed() const
344  {
345  ASSERT( set_time_result_ != TimeStatus::unknown ).error("Invalid time status.");
346  return ( (set_time_result_ == TimeStatus::changed) );
347  }
348 
349  /**
350  * Common part of the field descriptor. To get finished record
351  * one has to add keys for individual fields. This is done automatically
352  * using FieldSet::get_input_type().
353  */
354  static IT::Record field_descriptor_record(const string& record_name);
355 
356  /**
357  * Create description of field descriptor record.
358  */
359  static const std::string field_descriptor_record_description(const string& record_name);
360 
361  /**
362  * Returns input type for particular field instance, this is reference to a static member input_type of the corresponding @p FieldBase
363  * class (i.e. with the same template parameters). This is used in FieldSet::make_field_descriptor_type.
364  */
365  virtual IT::Instance get_input_type() =0;
366 
367  /**
368  * Returns input type for MultiField instance.
369  * TODO: temporary solution, see @p multifield_
370  */
371  virtual IT::Array get_multifield_input_type() =0;
372 
373  /**
374  * Pass through the input array @p input_list_, collect all times where the field could change and
375  * put appropriate time marks into global TimeMarks object.
376  * Introduced time marks have both given @p mark_type and @p type_input() type.
377  *
378  * Further development:
379  * - we have to distinguish "jump" times and "smooth" times
380  */
381  void mark_input_times(const TimeGovernor &tg);
382 
383  /**
384  * Abstract method to update field to the new time level.
385  * Implemented by in class template Field<...>.
386  *
387  * Return true if the value of the field was changed on some region.
388  * The returned value is also stored in @p changed_during_set_time data member.
389  *
390  * Default values helps when creating steady field. Note that default TimeGovernor constructor
391  * set time to 0.0.
392  *
393  * Different field copies can be set to different times.
394  *
395  * TODO: update following:
396  * Set side of limit when calling @p set_time
397  * with jump time, i.e. time where the field change implementation on some region.
398  * Wee assume that implementations prescribe only smooth fields.
399  * This method invalidate result of
400  * @p changed() so it should be called just before @p set_time.
401  * Can be different for different field copies.
402  */
403  virtual bool set_time(const TimeStep &time, LimitSide limit_side) =0;
404 
405  /**
406  * Check that @p other is instance of the same Field<..> class and
407  * perform assignment. Polymorphic copy.
408  *
409  * The copy is performed only if *this have set flag 'input_copy'.
410  * If *this have set also the flag 'decare_input' the copy is performed only if the
411  * input_list is empty.
412  */
413  virtual void copy_from(const FieldCommon & other) =0;
414 
415  /**
416  * Output the field.
417  * The parameter @p output_fields is checked for value named by the field name. If the key exists,
418  * then the output of the field is performed. If the key do not appear in the input, no output is done.
419  */
420  virtual void field_output(std::shared_ptr<OutputTime> stream) =0;
421 
422  /**
423  * Perform the observe output of the field.
424  * The Observe object passed by the parameter is called with the particular Field<> as the parameter
425  * to evaluate the field in observation points and store the values in the OutputData arrays.
426  */
427  virtual void observe_output(std::shared_ptr<Observe> observe) =0;
428 
429 
430  /**
431  * Sets @p component_index_
432  */
433  void set_component_index(unsigned int idx)
434  {
435  this->component_index_ = idx;
436  }
437 
438  /**
439  * Return @p multifield_ flag.
440  * TODO: temporary solution
441  */
442  inline bool is_multifield() const
443  {
444  return this->multifield_;
445  }
446 
447  /**
448  * Allocate data cache of dimension appropriate to subset object.
449  */
450  virtual void cache_allocate(std::shared_ptr<EvalPoints> eval_points) = 0;
451 
452  /**
453  * Read data to cache for appropriate elements given by ElementCacheMap object.
454  */
455  virtual void cache_update(ElementCacheMap &cache_map) = 0;
456 
457 
458  /**
459  * Print stored messages to table.
460  *
461  * Return true if messages_data_ vector is nonempty and clear its.
462  */
463  static bool print_message_table(ostream& stream, std::string equation_name);
464 
465  /**
466  * Virtual destructor.
467  */
468  virtual ~FieldCommon();
469 
470 
471 protected:
472  /**
473  * Private default constructor. Should be used only through
474  * Field<...>
475  */
476  FieldCommon();
477 
478  /**
479  * Private copy constructor. Should be used only through
480  * Field<...>
481  */
482  FieldCommon(const FieldCommon & other);
483 
484  /**
485  * Invalidate last time in order to force set_time method
486  * update region_fields_.
487  */
489  {
490  last_time_ = -numeric_limits<double>::infinity();
491  }
492 
493  /**
494  * Setters for essential field properties.
495  */
496  /**
497  * Data shared among copies of the same field.
498  *
499  * This allow field copies in different equations with different time setting, but
500  * sharing common input field descriptor array and common history.
501  */
502  struct SharedData {
503  /**
504  * Empty constructor.
505  */
507  : list_idx_(0), limits_(std::make_pair(-std::numeric_limits<double>::max(), std::numeric_limits<double>::max())) {};
508 
509  /**
510  * True for boundary fields.
511  */
512  bool bc_;
513  /**
514  * Number of components for fields that return variable size vectors. Zero in other cases.
515  */
516  unsigned int n_comp_;
517  /**
518  * Names of field components.
519  */
521  /**
522  * Name of the particular field. Used to name the key in the Field list Record.
523  */
524  std::string input_name_;
525  /**
526  * Description of corresponding key in the Field list Record.
527  */
528  std::string input_description_;
529  /**
530  * Units of the field values. Currently just a string description.
531  */
533  /**
534  * For Enum valued fields this is the input type selection that should be used
535  * to read possible values of the field (e.g. for FieldConstant the key 'value' has this selection input type).
536  *
537  * Is empty selection for for non-enum values fields.
538  */
540  /**
541  * Possible default value of the field.
542  */
544  /**
545  * Pointer to the mesh on which the field lives.
546  */
547  const Mesh *mesh_;
548 
549  /**
550  * Vector of input field descriptors from which the field is set.
551  */
553 
554  /**
555  * Index to current position of input field descriptor.
556  */
557  unsigned int list_idx_;
558 
559  /**
560  * True after check_initialized_region_fields_ is called. That happen at first call of the set_time method.
561  */
563 
564  /**
565  * For which values of an enum valued field we do not
566  * check the field. User is responsible, that the value will not be called
567  * on such regions.
568  */
570 
571  /**
572  * Allow set minimal and maximal limit value of Field.
573  */
574  std::pair<double, double> limits_;
575 
576 
577  };
578 
579  /**
580  * Name that identifies the field in the field_set. By default this is same as
581  * shared_->input_name_.
582  */
583  std::string name_;
584 
585  /**
586  * Data shared among copies of the same input field.
587  */
588  std::shared_ptr<SharedData> shared_;
589 
590  /**
591  * Result of last set time method
592  */
593  enum class TimeStatus {
594  changed, //< Field changed during last set time call.
595  constant, //< Field doesn't change.
596  unknown //< Before first call of set_time.
597  };
598 
599  // TODO: Merge time information: set_time_result_, last_time_, last_limit_side_, is_jump_time into
600  // a single structure with single getter.
601  /**
602  * Status of @p history.
603  */
605 
606  /**
607  * Last set time. Can be different for different field copies.
608  * Store also time limit, since the field may be discontinuous.
609  */
610  double last_time_ = -numeric_limits<double>::infinity();
611  LimitSide last_limit_side_ = LimitSide::left;
612 
613  /**
614  * Set to true by the @p set_time method the field algorithm change on any region.
615  * Accessible through the @p is_jump_time method.
616  */
618 
619  /**
620  * Output data type used in the output() method. Can be different for different field copies.
621  */
623 
624  /**
625  * Specify if the field is part of a MultiField and which component it is
626  */
627  unsigned int component_index_;
628 
629  /**
630  * Flag determining if object is Multifield or Field.
631  * TODO: temporary solution, goal is to make these two classes to behave similarly
632  */
634 
635  /**
636  * Maximum number of FieldBase objects we store per one region.
637  */
638  static const unsigned int history_length_limit_=3;
639 
640  /// Field flags. Default setting is "an equation input field, that can read from user input, and can be written to output"
642 
643  /// Vector of data of initialization messages.
645 
646  /**
647  * Stream output operator
648  */
649  friend std::ostream &operator<<(std::ostream &stream, const FieldCommon &field) {
650 
651  vector<string> limit_side_str = {"left", "right"};
652 
653  stream
654  << "field name:" << field.name()
655  << " n. comp.:" << field.n_comp()
656  << " last time:" << field.last_time_
657  << " last limit side:" << limit_side_str[(unsigned int) field.last_limit_side_];
658  return stream;
659  }
660 
661 public:
662 
663  /// Manually mark flag that the field has been changed.
665  { set_time_result_ = TimeStatus::changed; }
666 };
667 
668 
669 
670 
671 
672 
673 
674 #endif /* FIELD_COMMON_HH_ */
std::string input_description_
Common abstract parent of all Field<...> classes.
Definition: field_common.hh:75
std::pair< double, double > limits_
bool is_jump_time_
Accessor to input data conforming to declared Array.
Definition: accessors.hh:567
FieldCommon & input_selection(Input::Type::Selection element_selection)
static constexpr Mask allow_output
The field can output. Is part of generated output selection. (default on)
Definition: field_flag.hh:37
FieldFlag::Flags get_flags() const
FieldCommon & flags_add(FieldFlag::Flags::Mask mask)
OutputTime::DiscreteSpace get_output_type() const
std::string name_
#define DECLARE_EXCEPTION(ExcName, Format)
Macro for simple definition of exceptions.
Definition: exceptions.hh:158
unsigned int component_index_
std::pair< double, double > limits() const
Store data of one initialization message.
Definition: field_common.hh:90
Definitions of ASSERTS.
vector< Input::Record > input_list_
Directing class of FieldValueCache.
Definition: mesh.h:78
Helper class that stores data of generic types.
Definition: type_generic.hh:89
double last_time_
const std::string & input_default() const
#define ASSERT(expr)
Allow use shorter versions of macro names if these names is not used with external library...
Definition: asserts.hh:347
Basic time management functionality for unsteady (and steady) solvers (class Equation).
FieldCommon & units(const UnitSI &units)
Set basic units of the field.
const std::string description() const
Basic time management class.
Class for declaration of inputs sequences.
Definition: type_base.hh:346
std::string default_value_
Default value of the field.
Definition: field_common.hh:93
std::shared_ptr< SharedData > shared_
double time() const
friend std::ostream & operator<<(std::ostream &stream, const FieldCommon &field)
std::string field_name_
Parameter name_ of the field.
Definition: field_common.hh:96
const std::string & name() const
FieldFlag::Flags & flags()
FieldCommon & input_default(const string &input_default)
const UnitSI & units() const
void set_time_result_changed()
Manually mark flag that the field has been changed.
MessageData(std::string default_value, std::string field_name, std::string region_list)
Constructor.
Definition: field_common.hh:92
unsigned int input_list_size() const
bool is_multifield() const
LimitSide last_limit_side_
#define TYPEDEF_ERR_INFO(EI_Type, Type)
Macro to simplify declaration of error_info types.
Definition: exceptions.hh:194
std::vector< FieldEnum > no_check_values_
FieldResult
bool is_jump_time()
#define DECLARE_INPUT_EXCEPTION(ExcName, Format)
Macro for simple definition of input exceptions.
FieldCommon & description(const string &description)
Class holds local coordinations of evaluating points (bulk and sides) specified by element dimension...
Definition: eval_points.hh:43
static std::vector< MessageData > messages_data_
Vector of data of initialization messages.
void set_component_index(unsigned int idx)
IT::Selection input_element_selection_
const Mesh * mesh() const
FieldCommon & name(const string &name)
unsigned int n_comp() const
bool changed() const
void set_components(const std::vector< string > &names)
Record type proxy class.
Definition: type_record.hh:182
void set_history_changed()
FieldCommon & set_limits(double min, double max=std::numeric_limits< double >::max())
FlagArray< FieldFlag > Flags
Definition: field_flag.hh:26
FieldCommon & flags(FieldFlag::Flags::Mask mask)
const std::string & input_name() const
static constexpr Mask equation_input
The field is data parameter of the owning equation. (default on)
Definition: field_flag.hh:33
Class for representation SI units of Fields.
Definition: unit_si.hh:40
bool is_bc() const
#define THROW(whole_exception_expr)
Wrapper for throw. Saves the throwing point.
Definition: exceptions.hh:53
Representation of one time step..
TimeStatus set_time_result_
std::string region_list_
List of regions separated by comma.
Definition: field_common.hh:97
Template for classes storing finite set of named values.
LimitSide
Definition: field_common.hh:62
FieldCommon & output_type(OutputTime::DiscreteSpace rt)
static constexpr Mask declare_input
The field can be set from input. The key in input field descriptor is declared. (default on) ...
Definition: field_flag.hh:35
std::vector< std::string > comp_names_