Skip to content

Commit

Permalink
Merge pull request #209 from ADACS-Australia/dustgrowth-mpi
Browse files Browse the repository at this point in the history
Copy dustprop and dustproppred between MPI tasks when moving particles
  • Loading branch information
danieljprice authored Feb 3, 2022
2 parents 1e0ee3d + 5bbffef commit 4766afd
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 13 deletions.
25 changes: 13 additions & 12 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,32 @@ Giovanni Dipierro <[email protected]>
Enrico Ragusa <[email protected]>
Hauke Worpel <[email protected]>
Roberto Iaconi <[email protected]>
Simon Glover <[email protected]>
Thomas Reichardt <[email protected]>
Simon Glover <[email protected]>
Martina Toscani <[email protected]>
Jean-François Gonzalez <[email protected]>
Benedetta Veronesi <[email protected]>
Simone Ceppi <[email protected]>
Christopher Russell <[email protected]>
Alex Pettitt <[email protected]>
Megha Sharma <[email protected]>
Alessia Franchini <[email protected]>
Nicole Rodrigues <[email protected]>
Megha Sharma <[email protected]>
Alex Pettitt <[email protected]>
Kieran Hirsh <[email protected]>
Phantom benchmark bot <[email protected]>
Nicolas Cuello <[email protected]>
Nicole Rodrigues <[email protected]>
Chris Nixon <[email protected]>
Nicolas Cuello <[email protected]>
Phantom benchmark bot <[email protected]>
Orsola De Marco <[email protected]>
Zachary Pellow <[email protected]>
Joe Fisher <[email protected]>
Giulia Ballabio <[email protected]>
Benoit Commercon <[email protected]>
Cristiano Longarini <[email protected]>
David Trevascus <[email protected]>
Giulia Ballabio <giulia.ballabio2@studenti.unimi.it>
Joe Fisher <[email protected]>
Orsola De Marco <[email protected]>
Cristiano Longarini <cristiano.longarini@unimi.it>
Alison Young <[email protected]>
Cox, Samuel <[email protected]>
Steven Rieder <[email protected]>
Stéven Toupin <[email protected]>
Conrad Chan <[email protected]>
Maxime Lombart <[email protected]>
Jorge Cuadra <[email protected]>
Cox, Samuel <[email protected]>
Alison Young <[email protected]>
14 changes: 13 additions & 1 deletion src/main/part.F90
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module part
maxptmass,maxdvdx,nsinkproperties,mhd,maxmhd,maxBevol,&
maxp_h2,nabundances,maxtemp,periodic,&
maxgrav,ngradh,maxtypes,h2chemistry,gravity,maxp_dustfrac,&
use_dust,store_temperature,lightcurve,maxlum,nalpha,maxmhdni, &
use_dust,use_dustgrowth,store_temperature,lightcurve,maxlum,nalpha,maxmhdni, &
maxp_growth,maxdusttypes,maxdustsmall,maxdustlarge, &
maxphase,maxgradh,maxan,maxdustan,maxmhdan,maxneigh,maxprad,maxsp,&
maxTdust,store_dust_temperature,use_krome,maxp_krome, &
Expand Down Expand Up @@ -317,6 +317,10 @@ module part
+maxdusttypes & ! dustfrac
+maxdustsmall & ! dustevol
+maxdustsmall & ! dustpred
#ifdef DUSTGROWTH
+2 & ! dustprop
+2 & ! dustproppred
#endif
#endif
#ifdef H2CHEM
+nabundances & ! abundance
Expand Down Expand Up @@ -1376,6 +1380,10 @@ subroutine fill_sendbuf(i,xtemp)
call fill_buffer(xtemp, dustfrac(:,i),nbuf)
call fill_buffer(xtemp, dustevol(:,i),nbuf)
call fill_buffer(xtemp, dustpred(:,i),nbuf)
if (use_dustgrowth) then
call fill_buffer(xtemp, dustprop(:,i),nbuf)
call fill_buffer(xtemp, dustproppred(:,i),nbuf)
endif
endif
if (maxp_h2==maxp .or. maxp_krome==maxp) then
call fill_buffer(xtemp, abundance(:,i),nbuf)
Expand Down Expand Up @@ -1445,6 +1453,10 @@ subroutine unfill_buffer(ipart,xbuf)
dustfrac(:,ipart) = unfill_buf(xbuf,j,maxdusttypes)
dustevol(:,ipart) = unfill_buf(xbuf,j,maxdustsmall)
dustpred(:,ipart) = unfill_buf(xbuf,j,maxdustsmall)
if (use_dustgrowth) then
dustprop(:,ipart) = unfill_buf(xbuf,j,2)
dustproppred(:,ipart) = unfill_buf(xbuf,j,2)
endif
endif
if (maxp_h2==maxp .or. maxp_krome==maxp) then
abundance(:,ipart) = unfill_buf(xbuf,j,nabundances)
Expand Down

0 comments on commit 4766afd

Please sign in to comment.