Wrapper to shellg to be used with cartesian coordinates.
Note
In the original code, this was an ENTRY point in shellg and didn't include all the outputs.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(shellig_type), | intent(inout) | :: | me | |||
real(kind=wp), | intent(in), | dimension(3) | :: | v |
cartesian coordinates in earth radii (6371.2 km) * x-axis pointing to equator at 0 longitude * y-axis pointing to equator at 90 long. * z-axis pointing to north pole |
|
real(kind=wp), | intent(in) | :: | dimo |
dipol moment in gauss (normalized to earth radius) |
||
real(kind=wp), | intent(out) | :: | fl |
l-value |
||
integer, | intent(out) | :: | icode |
|
||
real(kind=wp), | intent(out) | :: | b0 |
magnetic field strength in gauss |
subroutine shellc(me, v, dimo, fl, icode, b0) class(shellig_type), intent(inout) :: me real(wp), dimension(3), intent(in) :: v !! cartesian coordinates in earth radii (6371.2 km) !! * x-axis pointing to equator at 0 longitude !! * y-axis pointing to equator at 90 long. !! * z-axis pointing to north pole real(wp), intent(in) :: dimo !! dipol moment in gauss (normalized to earth radius) real(wp), intent(out) :: fl !! l-value integer, intent(out) :: icode !! * =1 normal completion !! * =2 unphysical conjugate point (fl meaningless) !! * =3 shell parameter greater than limit up to !! which accurate calculation is required; !! approximation is used. real(wp), intent(out) :: b0 !! magnetic field strength in gauss real(wp) :: glat, glon, alt !! not used call me%shellg(glat, glon, alt, dimo, fl, icode, b0, v) end subroutine shellc