Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Source Code
subroutine cartesian_to_spherical(vec_car,vec_sph)! angles in raddouble precision,intent(in)::vec_car(1:3)double precision,intent(inout)::vec_sph(1:3)vec_sph(1)=dsqrt(vec_car(1)**2+vec_car(2)**2+vec_car(3)**2)vec_sph(2)=dacos(vec_car(3)/vec_sph(1))vec_sph(3)=atan2(vec_car(2),vec_car(3))end subroutine cartesian_to_spherical