World Builder  1.1.0-pre
A geodynamic initial conditions generator
invalid.cc
Go to the documentation of this file.
1 /*
2  Copyright (C) 2018-2024 by the authors of the World Builder code.
3 
4  This file is part of the World Builder.
5 
6  This program is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Lesser General Public License as published
8  by the Free Software Foundation, either version 2 of the License, or
9  (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 Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public License
17  along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19 
22 
23 
24 namespace WorldBuilder
25 {
26  namespace CoordinateSystems
27  {
29  {
30  this->world = world_;
31  }
32 
34  = default;
35 
36  void
38  {}
39 
40 
43  {
45  }
46 
47 
50  {
51  return DepthMethod::none;
52  }
53 
54 
55  std::array<double,3>
56  Invalid::cartesian_to_natural_coordinates(const std::array<double,3> & /*position*/) const
57  {
58  return {{NaN::DQNAN,NaN::DQNAN,NaN::DQNAN}};
59  }
60 
61 
62  std::array<double,3>
63  Invalid::natural_to_cartesian_coordinates(const std::array<double,3> & /*position*/) const
64  {
65  return {{NaN::DQNAN,NaN::DQNAN,NaN::DQNAN}};
66  }
67 
68 
69  double
70  Invalid::distance_between_points_at_same_depth(const Point<3> & /*point_1*/, const Point<3> & /*point_2*/) const
71  {
72  return NaN::DQNAN;
73  }
74 
75 
76  double
78  {
79  return NaN::DQNAN;
80  }
81 
85  //WB_REGISTER_COORDINATE_SYSTEM(Invalid, invalid)
86  } // namespace CoordinateSystems
87 } // namespace WorldBuilder
88 
double distance_between_points_at_same_depth(const Point< 3 > &point_1, const Point< 3 > &point_2) const override final
Definition: invalid.cc:70
DepthMethod depth_method() const override final
Definition: invalid.cc:49
Invalid(WorldBuilder::World *world)
Definition: invalid.cc:28
const double DQNAN
Definition: nan.h:32
std::array< double, 3 > natural_to_cartesian_coordinates(const std::array< double, 3 > &position) const override final
Definition: invalid.cc:63
CoordinateSystem natural_coordinate_system() const override final
Definition: invalid.cc:42
void parse_entries(Parameters &prm) override final
Definition: invalid.cc:37
std::array< double, 3 > cartesian_to_natural_coordinates(const std::array< double, 3 > &position) const override final
Definition: invalid.cc:56
virtual double max_model_depth() const override final
Definition: invalid.cc:77