simpeg
simpeg copied to clipboard
bug in MagDipole source construction with problem3D_h and variable mu
Right now, if you solve problem_h with variable magnetic permeability, the result will be nans because we are dividing by zero! (never a good idea...)
Rather than computing from bPrimary for both problems b, h, we should deal with bPrimary for problem b and hPrimary for problem h.
https://github.com/simpeg/simpeg/blob/1f4220e55c6695e729343ce228065a72b2f9f70a/SimPEG/EM/FDEM/SrcFDEM.py#L408-L413
Many thanks to Daan Hanssens for catching this!