Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Removed unnecessary if statement from finalizer
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 1, 2022
1 parent 5daefbb commit 5db84c4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/setup/setup.f90
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,7 @@ module subroutine setup_finalize_system(self, param)
class(swiftest_parameters), intent(inout) :: param !! Current run configuration parameters

associate(system => self)
if ((param%out_type == "NETCDF_FLOAT") .or. (param%out_type == "NETCDF_DOUBLE")) then
call param%nciu%close()
end if
call param%nciu%close()
end associate

return
Expand Down

0 comments on commit 5db84c4

Please sign in to comment.