Skip to content

Commit

Permalink
Merge pull request danieljprice#344 from sahl95/master
Browse files Browse the repository at this point in the history
Shortened "mcfost_uses_PdV_and_" to "mcfost_uses_PdV"
  • Loading branch information
danieljprice committed Jan 12, 2023
2 parents 92a05f1 + ae05c71 commit e9294f1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/main/options.f90
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ module options

! mcfost
logical, public :: use_mcfost, use_Voronoi_limits_file, use_mcfost_stellar_parameters, mcfost_computes_Lacc
logical, public :: mcfost_uses_PdV_and_Lshock
logical, public :: mcfost_uses_PdV
character(len=80), public :: Voronoi_limits_file

! radiation
Expand Down Expand Up @@ -143,7 +143,7 @@ subroutine set_default_options
use_mcfost = .false.
use_mcfost_stellar_parameters = .false.
mcfost_computes_Lacc = .false.
mcfost_uses_PdV_and_Lshock = .true.
mcfost_uses_PdV = .true.

! radiation
if (do_radiation) then
Expand Down
8 changes: 4 additions & 4 deletions src/main/readwrite_infile.F90
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module readwrite_infile
icooling,psidecayfac,overcleanfac,hdivbbmax_max,alphamax,calc_erot,rhofinal_cgs, &
use_mcfost,use_Voronoi_limits_file,Voronoi_limits_file,use_mcfost_stellar_parameters,&
exchange_radiation_energy,limit_radiation_flux,iopacity_type,mcfost_computes_Lacc,&
mcfost_uses_PdV_and_Lshock
mcfost_uses_PdV
use timestep, only:dtwallmax,tolv,xtol,ptol
use viscosity, only:irealvisc,shearparam,bulkvisc
use part, only:hfact,ien_type
Expand Down Expand Up @@ -236,7 +236,7 @@ subroutine write_infile(infile,logfile,evfile,dumpfile,iwritein,iprint)
'Fix the stellar parameters to mcfost values or update using sink mass',iwritein)
call write_inopt(mcfost_computes_Lacc,'mcfost_computes_Lacc',&
'Should mcfost compute the accretion luminosity',iwritein)
call write_inopt(mcfost_uses_PdV_and_Lshock,'mcfost_uses_PdV_and_Lshock',&
call write_inopt(mcfost_uses_PdV,'mcfost_uses_PdV',&
'Should mcfost use the PdV work and shock heating?',iwritein)
#endif

Expand Down Expand Up @@ -500,8 +500,8 @@ subroutine read_infile(infile,logfile,evfile,dumpfile)
read(valstring,*,iostat=ierr) use_mcfost_stellar_parameters
case('mcfost_computes_Lacc')
read(valstring,*,iostat=ierr) mcfost_computes_Lacc
case('mcfost_uses_PdV_and_Lshock')
read(valstring,*,iostat=ierr) mcfost_uses_PdV_and_Lshock
case('mcfost_uses_PdV')
read(valstring,*,iostat=ierr) mcfost_uses_PdV
#endif
case('gas-rad_exchange')
read(valstring,*,iostat=ierr) exchange_radiation_energy
Expand Down
4 changes: 2 additions & 2 deletions src/utils/analysis_mcfost.f90
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ subroutine do_analysis(dumpfile,num,xyzh,vxyzu,particlemass,npart,time,iunit)
use dim, only:use_dust,lightcurve,maxdusttypes,use_dustgrowth,do_radiation
use eos, only:temperature_coef,gmw,gamma
use options, only:use_dustfrac,use_mcfost,use_Voronoi_limits_file,Voronoi_limits_file, &
use_mcfost_stellar_parameters, mcfost_computes_Lacc, mcfost_uses_PdV_and_Lshock
use_mcfost_stellar_parameters, mcfost_computes_Lacc, mcfost_uses_PdV
use physcon, only:cm,gram,c,steboltz

character(len=*), intent(in) :: dumpfile
Expand Down Expand Up @@ -96,7 +96,7 @@ subroutine do_analysis(dumpfile,num,xyzh,vxyzu,particlemass,npart,time,iunit)
dustfluidtype = 2
endif

if (lightcurve .and. mcfost_uses_PdV_and_Lshock) then
if (lightcurve .and. mcfost_uses_PdV) then
nlum = npart
else
nlum = 0
Expand Down

0 comments on commit e9294f1

Please sign in to comment.