initialize the type hmap_cyl, given the parameters as arguments
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | cyl_len |
total length of cylinder |
self
FUNCTION hmap_cyl_init_params(cyl_len) RESULT(sf) ! MODULES USE MODgvec_Globals, ONLY:TWOPI IMPLICIT NONE !----------------------------------------------------------------------------------------------------------------------------------- ! INPUT VARIABLES REAL(wp), INTENT(IN) :: cyl_len !! total length of cylinder !----------------------------------------------------------------------------------------------------------------------------------- ! OUTPUT VARIABLES TYPE(t_hmap_cyl) :: sf !! self !=================================================================================================================================== SWRITE(UNIT_stdOut,'(4X,A)')'INIT HMAP :: CYLINDER WITH X1:=x, X2:=z, zeta := -2*pi*(y/cyl_len) ...' sf%cyl_len=cyl_len/TWOPI sf%initialized=.TRUE. SWRITE(UNIT_stdOut,'(4X,A)')'...DONE.' IF(.NOT.test_called) CALL hmap_cyl_test(sf) END FUNCTION hmap_cyl_init_params