Skip to content

Commit

Permalink
(test_ptmass) bug fix with previous fix for zero-mass sinks; tighten …
Browse files Browse the repository at this point in the history
…tolerances in disc tests
  • Loading branch information
danieljprice committed Dec 20, 2024
1 parent 7948ddc commit c003cb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/ptmass.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ subroutine update_ptmass(dptmass,xyzmh_ptmass,vxyz_ptmass,fxyz_ptmass,nptmass)
- xyzmh_ptmass(2,1:nptmass)*vxyz_ptmass(1,1:nptmass))
! Calculate new masses
newptmass(1:nptmass) =xyzmh_ptmass(4,1:nptmass)+dptmass(idmsi,1:nptmass)
where (newptmass1(1:nptmass) > 0)
where (newptmass(1:nptmass) > 0)
newptmass1(1:nptmass) = 1./newptmass(1:nptmass)
elsewhere
newptmass1(1:nptmass) = 1.
Expand Down
2 changes: 2 additions & 0 deletions src/tests/test_ptmass.f90
Original file line number Diff line number Diff line change
Expand Up @@ -416,12 +416,14 @@ subroutine test_binary(ntests,npass,string)
tolang = 6.e-10
endif
tolen = 1.2e-2
if (use_fourthorder) tolen = 5.e-4
case(2)
tolen = 1.2e-3
if (gravity) tolen = 3.1e-3

if (use_fourthorder) then
tolang = 2.e-11
tolen = 8.e-4
endif
case default
if (calc_gravitwaves .and. itest==1) then
Expand Down

0 comments on commit c003cb6

Please sign in to comment.