test_recovery Module Procedure

module procedure test_recovery module subroutine test_recovery(this, npart, pos, nlrf, u, pr, vel_u, theta, nstar)

Uses

    • utility
    • recovery
    • deactivate_particles
    • metric_on_particles
    • constants
    • tensor
  • proc~~test_recovery~~UsesGraph proc~test_recovery test_recovery constants constants proc~test_recovery->constants deactivate_particles deactivate_particles proc~test_recovery->deactivate_particles metric_on_particles metric_on_particles proc~test_recovery->metric_on_particles module~utility utility proc~test_recovery->module~utility recovery recovery proc~test_recovery->recovery tensor tensor proc~test_recovery->tensor module~utility->constants matrix matrix module~utility->matrix

Tests the recovery. Computes the conserved variables from the physical ones, and then the physical ones from the conserved ones. It then compares the variables computed with the recovery PROCEDURES, with those computed with \(\texttt{SPHINCS_ID}\).

FT 18.02.2022


Arguments

Type IntentOptional Attributes Name
class(particles), intent(inout) :: this

particles object which this PROCEDURE is a member of

integer, intent(in) :: npart

Particle number

double precision, intent(in), DIMENSION(3,npart) :: pos

Particle positions

double precision, intent(in), DIMENSION(npart) :: nlrf

Baryon density in the local rest frame on the particles

double precision, intent(in), DIMENSION(npart) :: u

Specific internal energy on the particles

double precision, intent(in), DIMENSION(npart) :: pr

Pressure on the particles

double precision, intent(in), DIMENSION(3,npart) :: vel_u

Spatial velocity in the computing frame on the particles

double precision, intent(in), DIMENSION(npart) :: theta

Generalized Lorentz factor on the particles

double precision, intent(in), DIMENSION(npart) :: nstar

Proper baryon density in the local rest frame on the particles

Canonical momentum on the particles

Canonical energy on the particles

Name of the formatted file where the data is printed


Calls

proc~~test_recovery~~CallsGraph proc~test_recovery test_recovery allocate_metric_on_particles allocate_metric_on_particles proc~test_recovery->allocate_metric_on_particles cons_2_phys cons_2_phys proc~test_recovery->cons_2_phys cs_fb cs_fb proc~test_recovery->cs_fb deallocate_metric_on_particles deallocate_metric_on_particles proc~test_recovery->deallocate_metric_on_particles g4_ll g4_ll proc~test_recovery->g4_ll nlrf_fb nlrf_fb proc~test_recovery->nlrf_fb phys_2_cons phys_2_cons proc~test_recovery->phys_2_cons pr_fb pr_fb proc~test_recovery->pr_fb proc~compute_g4 compute_g4 proc~test_recovery->proc~compute_g4 proc~determinant_sym4x4 determinant_sym4x4 proc~test_recovery->proc~determinant_sym4x4 theta_fb theta_fb proc~test_recovery->theta_fb u_fb u_fb proc~test_recovery->u_fb vel_u_fb vel_u_fb proc~test_recovery->vel_u_fb

Called by

proc~~test_recovery~~CalledByGraph proc~test_recovery test_recovery interface~test_recovery test_recovery interface~test_recovery->proc~test_recovery

Contents


Variables

Type Visibility Attributes Name Initial
integer, private :: a
logical, private, parameter :: debug = .FALSE.
double precision, private :: det
double precision, private, DIMENSION(npart) :: e_hat_rec
logical, private :: exist
character(len=:), private, ALLOCATABLE :: finalnamefile
character(len=2), private :: i_mat
integer, private :: i_matter
double precision, private, DIMENSION(npart) :: nlrf_rec
double precision, private, DIMENSION(npart) :: nstar_rec
double precision, private, DIMENSION(npart) :: pr_rec
double precision, private, DIMENSION(3,npart) :: s_l_rec
double precision, private, DIMENSION(npart) :: theta_rec
double precision, private, DIMENSION(npart) :: u_rec
integer, private, parameter :: unit_recovery = 34956
double precision, private, DIMENSION(3,npart) :: vel_u_rec