Majoranapp
A C++ library for studying MZM in non-interacting systems
DimensionsWarning.hpp
Go to the documentation of this file.
1 #ifndef INFO_DIMENSIONSWARNING_HPP
2 #define INFO_DIMENSIONSWARNING_HPP
3 
4 #include "Basics.hpp"
5 
10 {
11 public:
19  static void DimensionsWarningOnly1D(int length, int width, int height)
20  {
21  if (width > 1 or height > 1)
22  {
23  BasicsInfo::Warning("One dimensional model is selected. ",
24  "Width and Height values are ignored!");
25  }
26  }
27 
35  static void DimensionsWarningOnly2D(int length, int width, int height)
36  {
37  if (height > 1)
38  {
39  BasicsInfo::Warning("Two dimensional model is selected. ",
40  "Height value is ignored!");
41  }
42  }
43 };
44 
45 #endif
A few warnings for parsed dimensions.
Definition: DimensionsWarning.hpp:9
static void DimensionsWarningOnly1D(int length, int width, int height)
checks if height and width are equal 0
Definition: DimensionsWarning.hpp:19
static void DimensionsWarningOnly2D(int length, int width, int height)
checks if height is equal 0
Definition: DimensionsWarning.hpp:35
static void Warning(std::string text, std::string note="")
Warning sent to std::cout.
Definition: Basics.hpp:102