|
@@ -26,21 +26,41 @@ namespace Lemma {
|
26
|
26
|
}
|
27
|
27
|
|
28
|
28
|
LayeredEarthEM::LayeredEarthEM( const YAML::Node& node, const ctor_key& ) : LayeredEarth(node) {
|
29
|
|
-
|
30
|
|
- LayerConductivity = node["LayerConductivity"].as<VectorXcr>();
|
31
|
|
-
|
32
|
|
- LayerSusceptibility = node["LayerSusceptibility"].as<VectorXcr>();
|
33
|
|
- LayerLowFreqSusceptibility = node["LayerLowFreqSusceptibility"].as<VectorXr>();
|
34
|
|
- LayerHighFreqSusceptibility = node["LayerHighFreqSusceptibility"].as<VectorXr>();
|
35
|
|
- LayerTauSusceptibility = node["LayerTauSusceptibility"].as<VectorXr>();
|
36
|
|
- LayerBreathSusceptibility = node["LayerBreathSusceptibility"].as<VectorXr>();
|
37
|
|
-
|
38
|
|
- LayerPermitivity = node["LayerPermitivity"].as<VectorXcr>();
|
39
|
|
- LayerLowFreqPermitivity = node["LayerLowFreqPermitivity"].as<VectorXr>();
|
40
|
|
- LayerHighFreqPermitivity = node["LayerHighFreqPermitivity"].as<VectorXr>();
|
41
|
|
- LayerTauPermitivity = node["LayerTauPermitivity"].as<VectorXr>();
|
42
|
|
- LayerBreathPermitivity = node["LayerBreathPermitivity"].as<VectorXr>();
|
43
|
|
-
|
|
29
|
+ SetNumberOfLayers(NumberOfLayers);
|
|
30
|
+ LayerThickness = node["LayerThickness"].as<VectorXr>();
|
|
31
|
+ if (node["LayerConductivity"]) {
|
|
32
|
+ LayerConductivity = node["LayerConductivity"].as<VectorXcr>();
|
|
33
|
+ }
|
|
34
|
+ if (node["LayerSusceptibility"]) {
|
|
35
|
+ LayerSusceptibility = node["LayerSusceptibility"].as<VectorXcr>();
|
|
36
|
+ }
|
|
37
|
+ if (node["LayerLowFreqSusceptibility"]) {
|
|
38
|
+ LayerLowFreqSusceptibility = node["LayerLowFreqSusceptibility"].as<VectorXr>();
|
|
39
|
+ }
|
|
40
|
+ if (node["LayerHighFreqSusceptibility"]) {
|
|
41
|
+ LayerHighFreqSusceptibility = node["LayerHighFreqSusceptibility"].as<VectorXr>();
|
|
42
|
+ }
|
|
43
|
+ if (node["LayerTauSusceptibility"]) {
|
|
44
|
+ LayerTauSusceptibility = node["LayerTauSusceptibility"].as<VectorXr>();
|
|
45
|
+ }
|
|
46
|
+ if (node["LayerBreathSusceptibility"]) {
|
|
47
|
+ LayerBreathSusceptibility = node["LayerBreathSusceptibility"].as<VectorXr>();
|
|
48
|
+ }
|
|
49
|
+ if (node["LayerPermitivity"]) {
|
|
50
|
+ LayerPermitivity = node["LayerPermitivity"].as<VectorXcr>();
|
|
51
|
+ }
|
|
52
|
+ if (node["LayerLowFreqPermitivity "]) {
|
|
53
|
+ LayerLowFreqPermitivity = node["LayerLowFreqPermitivity"].as<VectorXr>();
|
|
54
|
+ }
|
|
55
|
+ if (node["LayerHighFreqPermitivity "]) {
|
|
56
|
+ LayerHighFreqPermitivity = node["LayerHighFreqPermitivity"].as<VectorXr>();
|
|
57
|
+ }
|
|
58
|
+ if (node["LayerTauPermitivity"]) {
|
|
59
|
+ LayerTauPermitivity = node["LayerTauPermitivity"].as<VectorXr>();
|
|
60
|
+ }
|
|
61
|
+ if (node["LayerBreathPermitivity"]) {
|
|
62
|
+ LayerBreathPermitivity = node["LayerBreathPermitivity"].as<VectorXr>();
|
|
63
|
+ }
|
44
|
64
|
}
|
45
|
65
|
|
46
|
66
|
LayeredEarthEM::~LayeredEarthEM() {
|