Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Fixed some io messages and fail conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Jul 7, 2021
1 parent 006401b commit ac3f372
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
14 changes: 5 additions & 9 deletions src/io/io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -264,20 +264,17 @@ module subroutine io_param_reader(self, unit, iotype, v_list, iostat, iomsg)
end if
else
if (self%lfragmentation) then
write(iomsg,*) 'This integrator does not support fragmentation.'
iostat = -1
return
write(iomsg,*) 'This integrator does not support fragmentation. This parameter will be ignored.'
end if
if (mtiny_set) then
write(iomsg,*) 'This integrator does not support MTINY'
iostat = -1
write(iomsg,*) 'This integrator does not support MTINY. This parameter will be ignored.'
return
end if
end if

if ((integrator == SYMBA) .or. (integrator == RINGMOONS) .or. (integrator == RMVS)) then
if (.not.self%lclose) then
write(iomsg,*) 'This integrator requires CHK_CLOSE to be enabled'
write(iomsg,*) 'This integrator requires CHK_CLOSE to be enabled.'
iostat = -1
return
end if
Expand All @@ -295,11 +292,10 @@ module subroutine io_param_reader(self, unit, iotype, v_list, iostat, iomsg)

! Determine if the GR flag is set correctly for this integrator
select case(integrator)
case(WHM)
case(WHM, RMVS)
write(*,*) "GR = ", self%lgr
case default
write(iomsg, *) 'GR is implemented compatible with this integrator'
iostat = -1
write(iomsg, *) 'GR is implemented compatible with this integrator. This parameter will be ignored.'
end select

iostat = 0
Expand Down
1 change: 0 additions & 1 deletion src/setup/setup.f90
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ module subroutine setup_construct_system(system, param)
case (BS)
write(*,*) 'Bulirsch-Stoer integrator not yet enabled'
case (HELIO)
write(*,*) 'Democratic Heliocentric integrator not yet enabled'
allocate(helio_nbody_system :: system)
select type(system)
class is (helio_nbody_system)
Expand Down

0 comments on commit ac3f372

Please sign in to comment.