|
@@ -49,8 +49,6 @@ namespace Lemma {
|
49
|
49
|
//--------------------------------------------------------------------------------------
|
50
|
50
|
KernelV0::KernelV0 (const YAML::Node& node, const ctor_key& key) : MerlinObject(node, key) {
|
51
|
51
|
|
52
|
|
- std::cout << "DESERIALIZING" << std::endl;
|
53
|
|
-
|
54
|
52
|
//node["PulseType"] = "FID";
|
55
|
53
|
Larmor = node["Larmor"].as<Real>();
|
56
|
54
|
Temperature = node["Temperature"].as<Real>();
|
|
@@ -215,9 +213,9 @@ namespace Lemma {
|
215
|
213
|
EMEarths[tx]->AttachLayeredEarthEM(SigmaModel);
|
216
|
214
|
EMEarths[tx]->AttachFieldPoints( cpoints );
|
217
|
215
|
EMEarths[tx]->SetFieldsToCalculate(H);
|
218
|
|
- // TODO query for method, altough with flat antennae, this is fastest
|
219
|
|
- //EMEarths[tx]->SetHankelTransformMethod(FHTKEY201);
|
220
|
|
- EMEarths[tx]->SetHankelTransformMethod(ANDERSON801);
|
|
216
|
+ // TODO query for method
|
|
217
|
+ //EMEarths[tx]->SetHankelTransformMethod(ANDERSON801);
|
|
218
|
+ EMEarths[tx]->SetHankelTransformMethod(HankelType);
|
221
|
219
|
EMEarths[tx]->SetTxRxMode(TX);
|
222
|
220
|
TxRx[tx]->SetCurrent(1.);
|
223
|
221
|
}
|
|
@@ -230,9 +228,9 @@ namespace Lemma {
|
230
|
228
|
EMEarths[rx]->AttachLayeredEarthEM(SigmaModel);
|
231
|
229
|
EMEarths[rx]->AttachFieldPoints( cpoints );
|
232
|
230
|
EMEarths[rx]->SetFieldsToCalculate(H);
|
233
|
|
- // TODO query for method, altough with flat antennae, this is fastest
|
234
|
|
- //EMEarths[rx]->SetHankelTransformMethod(FHTKEY201);
|
235
|
|
- EMEarths[rx]->SetHankelTransformMethod(ANDERSON801);
|
|
231
|
+ // TODO query for method
|
|
232
|
+ //EMEarths[rx]->SetHankelTransformMethod(ANDERSON801);
|
|
233
|
+ EMEarths[rx]->SetHankelTransformMethod(HankelType);
|
236
|
234
|
EMEarths[rx]->SetTxRxMode(RX);
|
237
|
235
|
TxRx[rx]->SetCurrent(1.);
|
238
|
236
|
}
|
|
@@ -240,12 +238,14 @@ namespace Lemma {
|
240
|
238
|
|
241
|
239
|
std::cout << "Calculating K0 kernel\n";
|
242
|
240
|
Kern = MatrixXcr::Zero( Interfaces.size()-1, PulseI.size() );
|
|
241
|
+ //for (ilay=0; ilay<Interfaces.size()-1; ++ilay) {
|
243
|
242
|
for (ilay=0; ilay<Interfaces.size()-1; ++ilay) {
|
244
|
243
|
std::cout << "Layer " << ilay << "\tfrom " << Interfaces(ilay) <<" to "
|
245
|
244
|
<< Interfaces(ilay+1) << std::endl;
|
246
|
245
|
Size(2) = Interfaces(ilay+1) - Interfaces(ilay);
|
247
|
246
|
Origin(2) = Interfaces(ilay);
|
248
|
247
|
IntegrateOnOctreeGrid( vtkOutput );
|
|
248
|
+ //std::cout << "Kernel row " << Kern.row(ilay);
|
249
|
249
|
}
|
250
|
250
|
std::cout << "\nFinished KERNEL\n";
|
251
|
251
|
}
|