123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
-
-
-
-
-
-
- #ifndef __LAYEREDEARTH_H
- #define __LAYEREDEARTH_H
-
- #include "earthmodel.h"
-
- namespace Lemma {
-
- const int MAXLAYERS = 10;
-
-
-
-
-
- class LayeredEarth : public EarthModel {
-
- public:
-
-
-
-
- friend std::ostream &operator<<(std::ostream &stream,
- const LayeredEarth &ob);
-
-
-
-
-
-
-
-
-
-
-
- virtual void SetNumberOfLayers(const int& nlay)=0;
-
-
-
- void SetLayerThickness(const VectorXr &thick);
-
-
-
-
- int GetNumberOfLayers( );
-
-
-
- int GetNumberOfNonAirLayers( );
-
-
-
- int GetLayerAtThisDepth(const Real& depth);
-
-
-
- Real GetLayerThickness(const int & lay);
-
-
-
- Real GetLayerDepth(const int & lay);
-
- #ifdef HAVE_YAMLCPP
-
-
- YAML::Node Serialize() const;
-
- #endif
-
- protected:
-
-
-
-
- LayeredEarth (const std::string& name);
-
- #ifdef HAVE_YAMLCPP
-
- LayeredEarth (const YAML::Node& node);
- #endif
-
-
- ~LayeredEarth ();
-
-
-
-
-
- int NumberOfLayers;
-
-
-
- int NumberOfInterfaces;
-
-
- VectorXr LayerThickness;
-
- };
-
-
-
-
-
-
-
- class EarthModelWithLessThanTwoLayers : public std::runtime_error {
- public:
- EarthModelWithLessThanTwoLayers( );
- };
-
-
-
- class EarthModelWithMoreThanMaxLayers : public std::runtime_error {
- public:
-
-
- EarthModelWithMoreThanMaxLayers( );
- };
-
-
-
- class EarthModelParametersDoNotMatchNumberOfLayers : public std::runtime_error {
- public:
-
-
- EarthModelParametersDoNotMatchNumberOfLayers ( );
- };
-
-
-
- class RequestForNonValidEarthModelParameter : public std::runtime_error {
- public:
-
-
- RequestForNonValidEarthModelParameter ( );
- };
-
- }
-
- #endif
|