test_gnewton

Module

Description

unit tests of the gnewton external force module

References:

Tejeda E., Rosswog S., 2013, MNRAS, 433, 1930 Bonnerot et al., 2016, MNRAS, 455, 2253

Owner:

Daniel Price

Runtime parameters:

None

Dependencies:

extern_gnewton, externalforces, io, options, part, physcon, testutils, timestep, units

Quick access

Variables:

rf, step_lf

Routines:

test_gnewton()

Variables

  • testgnewton/rf [private]
  • testgnewton/step_lf [private]

Subroutines and functions

subroutine  testgnewton/test_gnewton(ntests, npass)
Parameters:
  • ntests [integer,inout]

  • npass [integer,inout]

Use :

io (id(), master()), part (xyzh(), vxyzu()), timestep (c_force()), testutils (checkval(), update_test_scores()), physcon (solarm(), solarr(), c(), pi()), options (iexternalforce()), units (set_units(), udist(), utime()), extern_gnewton (get_gnewton_energy()), externalforces (externalforce(), externalforce_vdependent(), mass1(), iext_gnewton())

Call to:

set_units(), update_test_scores()