|
@@ -279,6 +279,8 @@ namespace Lemma {
|
279
|
279
|
KernelManager->SetEarth(Earth);
|
280
|
280
|
// alternative is to use weak_ptr here, this is deep and internal, and we are safe.
|
281
|
281
|
KernelManager->SetDipoleSource( shared_from_this().get() , ifreq, Receivers->GetLocation(irec)[2]);
|
|
282
|
+
|
|
283
|
+ //KernelManager->SetDipoleSource( this.get() , ifreq, Receivers->GetLocation(irec)[2] );
|
282
|
284
|
kernelFreq = Freqs(ifreq); // this is never used
|
283
|
285
|
|
284
|
286
|
ReSetKernels( ifreq, Fields, Receivers, irec, Earth );
|
|
@@ -288,7 +290,8 @@ namespace Lemma {
|
288
|
290
|
|
289
|
291
|
// TODO we could make the dipoles template specializations avoiding this rats nest of switch statements. Probably
|
290
|
292
|
// not the most critical piece though
|
291
|
|
- void DipoleSource::ReSetKernels(const int& ifreq, const FIELDCALCULATIONS& Fields , std::shared_ptr<FieldPoints> Receivers, const int& irec,
|
|
293
|
+ void DipoleSource::ReSetKernels(const int& ifreq, const FIELDCALCULATIONS& Fields ,
|
|
294
|
+ std::shared_ptr<FieldPoints> Receivers, const int& irec,
|
292
|
295
|
std::shared_ptr<LayeredEarthEM> Earth ) {
|
293
|
296
|
|
294
|
297
|
Vector3r Pol = Phat;
|