Skip to content

Commit 48ef696

Browse files
authoredMar 4, 2025··
Merge pull request #627 from Yrisch/sinktree_hotfix
Hotfix for sink in tree new method
2 parents aae00a0 + 8450afb commit 48ef696

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/main/initial.F90

+2-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ subroutine startrun(infile,logfile,evfile,dumpfile,noread)
144144
nden_nimhd,dustevol,rhoh,gradh,apr_level,aprmassoftype,&
145145
Bevol,Bxyz,dustprop,filfac,ddustprop,ndustsmall,iboundary,eos_vars,dvdx, &
146146
n_group,n_ingroup,n_sing,nmatrix,group_info,bin_info,isionised,shortsinktree,&
147-
fxyz_ptmass_tree
147+
fxyz_ptmass_tree,isink
148148
use part, only:pxyzu,dens,metrics,rad,radprop,drad,ithick
149149
use densityforce, only:densityiterate
150150
use linklist, only:set_linklist
@@ -442,6 +442,7 @@ subroutine startrun(infile,logfile,evfile,dumpfile,noread)
442442
endif
443443

444444
if (use_sinktree) then
445+
iphase(maxpsph+1:maxp) = isink
445446
shortsinktree = 1 ! init shortsinktree to 1 to avoid any problem if nptmass change during the calculation
446447
fxyz_ptmass_tree = 0.
447448
endif

0 commit comments

Comments
 (0)
Please sign in to comment.