collision_util_get_energy_and_momentum Interface

interface
public module subroutine collision_util_get_energy_and_momentum(self, nbody_system, param, phase)

Arguments

Type IntentOptional Attributes Name
class(collision_basic), intent(inout) :: self

Encounter collision system object

class(base_nbody_system), intent(inout) :: nbody_system

Swiftest nbody system object

class(base_parameters), intent(inout) :: param

Current Swiftest run configuration parameters

character(len=*), intent(in) :: phase

One of “before” or “after”, indicating which phase of the calculation this needs to be done