Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add forward modelling functions for the magnetic field of a single rectangular prism on a single computation point. These are three functions for each component of the magnetic field vector and one other `magnetic_field` function that computes all three in a more optimal way. Make these functions to reuse the kernel functions defined for the gravity forward modelling. Add symmetry tests for the new functions, test if the magnetic field has zero divergance and if the `magnetic_field` function generates the same output as the three other functions. Rename `prism/_forward.py` to `prism/_gravity.py` and `test_prism.py` to `test_prism_gravity.py`.
- Loading branch information