Skip to content

Commit

Permalink
Merge pull request #419 from danieljprice/implicit-radiation
Browse files Browse the repository at this point in the history
  • Loading branch information
danieljprice committed May 14, 2023
2 parents 78e4948 + 4db8476 commit 4f5d4eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/main/deriv.F90
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ subroutine derivs(icall,npart,nactive,xyzh,vxyzu,fxyzu,fext,divcurlv,divcurlB,&
use derivutils, only:do_timing
use cons2prim, only:cons2primall,cons2prim_everything,prim2consall
use metric_tools, only:init_metric
use radiation_implicit, only:do_radiation_implicit
use radiation_implicit, only:do_radiation_implicit,ierr_failed_to_converge
use options, only:implicit_radiation,implicit_radiation_store_drad
integer, intent(in) :: icall
integer, intent(inout) :: npart
Expand Down Expand Up @@ -170,7 +170,7 @@ subroutine derivs(icall,npart,nactive,xyzh,vxyzu,fxyzu,fext,divcurlv,divcurlB,&
!
if (do_radiation .and. implicit_radiation .and. dt > 0.) then
call do_radiation_implicit(dt,npart,rad,xyzh,vxyzu,radprop,drad,ierr)
if (ierr /= 0) call fatal('radiation','Failed to converge')
if (ierr /= 0 .and. ierr /= ierr_failed_to_converge) call fatal('radiation','Failed in radiation')
endif

!
Expand Down
2 changes: 1 addition & 1 deletion src/main/radiation_implicit.f90
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ module radiation_implicit
character(len=*), parameter :: label = 'radiation_implicit'

private
public :: do_radiation_implicit
public :: do_radiation_implicit,ierr_failed_to_converge

contains

Expand Down

0 comments on commit 4f5d4eb

Please sign in to comment.