File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ module m_get_wavelength
1313 real (kind= dp), parameter , public :: speed_of_light = 2.99792e8_dp
1414 ! ! Speed of light [m/s]
1515
16- public :: get_wavelength
16+ public :: inner_get_wavelength
1717
1818contains
1919
20- pure function get_wavelength (frequency ) result(wavelength)
20+ pure function inner_get_wavelength (frequency ) result(wavelength)
2121 ! ! Get wavelength of light for a given frequency
2222 !
2323 ! Trying with FORD style docstrings for now
@@ -31,6 +31,6 @@ pure function get_wavelength(frequency) result(wavelength)
3131
3232 wavelength = speed_of_light / frequency
3333
34- end function get_wavelength
34+ end function inner_get_wavelength
3535
3636end module m_get_wavelength
Original file line number Diff line number Diff line change 99! > so there will be one extra file compared to what we have here.
1010module m_get_wavelength_w ! Convention to date: just suffix wrappers with _w
1111
12- use m_get_wavelength, only: o_get_wavelength = > get_wavelength
12+ use m_get_wavelength, only: inner_get_wavelength
1313 ! We won't always need the renaming trick,
1414 ! but here we do as the wrapper function
1515 ! and the original function should have the same name.
@@ -34,7 +34,7 @@ pure function get_wavelength(frequency) result(wavelength)
3434 real (kind= dp) :: wavelength
3535 ! ! Corresponding wavelength
3636
37- wavelength = o_get_wavelength (frequency)
37+ wavelength = inner_get_wavelength (frequency)
3838
3939 end function get_wavelength
4040
You can’t perform that action at this time.
0 commit comments