Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove comments in UDSystem.F90 #3260

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions udunits2f/UDSystem.F90
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ function construct_converter(from_unit, to_unit) result(conv)
type(UDUnit), intent(in) :: from_unit
type(UDUnit), intent(in) :: to_unit
type(c_ptr) :: cvconverter1
! logical :: convertible !wdb fixme deleteme

! Must supply units that are initialized and convertible
if(from_unit%is_free() .or. to_unit%is_free()) return
Expand All @@ -178,7 +177,8 @@ subroutine get_converter(conv, from, to, rc)
conv = get_converter_function(from, to)
_ASSERT_RC(.not. conv%is_free(), 'Failed to get converter function', UTF_CONVERTER_NOT_INITIALIZED)
_RETURN(_SUCCESS)
_UNUSED_DUMMY(status) !wdb fixme deleteme add blank line after
_UNUSED_DUMMY(status)

end subroutine get_converter

! Get converter object
Expand Down Expand Up @@ -340,13 +340,13 @@ subroutine initialize_system(system, path, encoding, rc)
integer(ut_encoding), optional, intent(in) :: encoding
integer, optional, intent(out) :: rc
integer :: status
! type(c_ptr) :: utsystem !wdb fixme deleteme

! A system can be initialized only once.
_ASSERT_RC(system%is_free(), 'UDSystem is initialized already.', UTF_INITIALIZATION_FAILURE)
system = UDSystem(path, encoding)
_RETURN(_SUCCESS)
_UNUSED_DUMMY(status)

end subroutine initialize_system

! Is the instance of the unit system initialized?
Expand Down Expand Up @@ -377,7 +377,6 @@ end subroutine free_ut_unit
! Free memory for converter
subroutine free_cv_converter(this)
class(Converter), intent(in) :: this
! type(c_ptr) :: cvconverter1 !wdb fixme deleteme

if(this%is_free()) return
call cv_free(this%get_cptr())
Expand Down
Loading