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

Commit

Permalink
removed unnecessary step setting cb%c_lm to 0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
anand43 committed Feb 8, 2024
1 parent ba2ca2d commit 6592a7e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/swiftest/swiftest_io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -3351,14 +3351,7 @@ module subroutine swiftest_io_read_in_system(self, nc, param)
if (ierr /=0) call base_util_exit(FAILURE,param%display_unit)
end if

param%lshgrav = allocated(self%cb%c_lm) !! .and. (size(self%cb%c_lm) /= 0)

if(param%lshgrav) then
! Replace elements of c_lm smaller than epsilon with 0.0
WHERE (abs(self%cb%c_lm) < EPSILON(0.0_DP))
self%cb%c_lm = 0.0_DP
END WHERE
end if
param%lshgrav = allocated(self%cb%c_lm)

param%loblatecb = ((self%cb%j2rp2 /= 0.0_DP) .or. (self%cb%j4rp4 /= 0.0_DP)) .and. (.not. param%lshgrav)
if (.not.param%loblatecb .and. .not.param%lshgrav) then
Expand Down

0 comments on commit 6592a7e

Please sign in to comment.