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

Commit

Permalink
Changed param variable from allocatable class to fixed type. This was…
Browse files Browse the repository at this point in the history
… a hold over from when SyMBA had its own parameter type
  • Loading branch information
daminton committed Mar 28, 2023
1 parent 346ff32 commit 27fcda6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/swiftest/swiftest_driver.f90
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ program swiftest_driver
implicit none

class(swiftest_nbody_system), allocatable :: nbody_system !! Polymorphic object containing the nbody system to be integrated
class(swiftest_parameters), allocatable :: param !! Run configuration parameters
type(swiftest_parameters) :: param !! Run configuration parameters
character(len=:), allocatable :: integrator !! Integrator type code (see globals for symbolic names)
character(len=:), allocatable :: param_file_name !! Name of the file containing user-defined parameters
character(len=:), allocatable :: display_style !! Style of the output display {"STANDARD", "COMPACT", "PROGRESS"}). Default is "STANDARD"
Expand All @@ -34,7 +34,6 @@ program swiftest_driver
call swiftest_io_get_args(integrator, param_file_name, display_style)

!> Read in the user-defined parameters file and the initial conditions of the nbody_system
allocate(swiftest_parameters :: param)
param%integrator = trim(adjustl(integrator))
param%display_style = trim(adjustl(display_style))
call param%read_in(param_file_name)
Expand Down

0 comments on commit 27fcda6

Please sign in to comment.