test_recovery_m2p Module Procedure

module procedure test_recovery_m2p module subroutine test_recovery_m2p(this, parts, namefile)

Uses

    • mesh_refinement
    • gradient
    • units
    • utility
    • input_output
    • sph_variables
    • recovery
    • deactivate_particles
    • metric_on_particles
    • alive_flag
    • McLachlan_refine
    • BSSN_refine
    • tensor
    • ADM_refine
  • proc~~test_recovery_m2p~~UsesGraph proc~test_recovery_m2p test_recovery_m2p ADM_refine ADM_refine proc~test_recovery_m2p->ADM_refine BSSN_refine BSSN_refine proc~test_recovery_m2p->BSSN_refine McLachlan_refine McLachlan_refine proc~test_recovery_m2p->McLachlan_refine alive_flag alive_flag proc~test_recovery_m2p->alive_flag deactivate_particles deactivate_particles proc~test_recovery_m2p->deactivate_particles gradient gradient proc~test_recovery_m2p->gradient input_output input_output proc~test_recovery_m2p->input_output mesh_refinement mesh_refinement proc~test_recovery_m2p->mesh_refinement metric_on_particles metric_on_particles proc~test_recovery_m2p->metric_on_particles module~utility utility proc~test_recovery_m2p->module~utility recovery recovery proc~test_recovery_m2p->recovery sph_variables sph_variables proc~test_recovery_m2p->sph_variables tensor tensor proc~test_recovery_m2p->tensor units units proc~test_recovery_m2p->units constants constants module~utility->constants matrix matrix module~utility->matrix

Tests the recovery using the metric mapped from the emsh to the particles. 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 25.02.2020


Arguments

Type IntentOptional Attributes Name
class(tpo), intent(in) :: this

tpo object which this PROCEDURE is a member of

class(particles), intent(in) :: parts

particles object used to map the metric from the mesh to the particles, and to call the recovery procedures

character(len=*), intent(inout) :: namefile

Name of the formatted file where the data is printed


Calls

proc~~test_recovery_m2p~~CallsGraph proc~test_recovery_m2p test_recovery_m2p alive alive proc~test_recovery_m2p->alive allocate_adm allocate_adm proc~test_recovery_m2p->allocate_adm allocate_bssn allocate_bssn proc~test_recovery_m2p->allocate_bssn allocate_gradient allocate_gradient proc~test_recovery_m2p->allocate_gradient allocate_grid_function allocate_grid_function proc~test_recovery_m2p->allocate_grid_function allocate_metric_on_particles allocate_metric_on_particles proc~test_recovery_m2p->allocate_metric_on_particles allocate_sph_memory allocate_sph_memory proc~test_recovery_m2p->allocate_sph_memory allocate_ztmp allocate_ztmp proc~test_recovery_m2p->allocate_ztmp cons_2_phys cons_2_phys proc~test_recovery_m2p->cons_2_phys cs_fb cs_fb proc~test_recovery_m2p->cs_fb deallocate_adm deallocate_adm proc~test_recovery_m2p->deallocate_adm deallocate_bssn deallocate_bssn proc~test_recovery_m2p->deallocate_bssn deallocate_gradient deallocate_gradient proc~test_recovery_m2p->deallocate_gradient deallocate_grid_function deallocate_grid_function proc~test_recovery_m2p->deallocate_grid_function deallocate_metric_on_particles deallocate_metric_on_particles proc~test_recovery_m2p->deallocate_metric_on_particles deallocate_sph_memory deallocate_sph_memory proc~test_recovery_m2p->deallocate_sph_memory deallocate_ztmp deallocate_ztmp proc~test_recovery_m2p->deallocate_ztmp get_metric_on_particles get_metric_on_particles proc~test_recovery_m2p->get_metric_on_particles levels levels proc~test_recovery_m2p->levels nlrf_fb nlrf_fb proc~test_recovery_m2p->nlrf_fb phys_2_cons phys_2_cons proc~test_recovery_m2p->phys_2_cons pr_fb pr_fb proc~test_recovery_m2p->pr_fb read_options read_options proc~test_recovery_m2p->read_options set_units set_units proc~test_recovery_m2p->set_units theta_fb theta_fb proc~test_recovery_m2p->theta_fb u_fb u_fb proc~test_recovery_m2p->u_fb vel_u_fb vel_u_fb proc~test_recovery_m2p->vel_u_fb

Called by

proc~~test_recovery_m2p~~CalledByGraph proc~test_recovery_m2p test_recovery_m2p interface~test_recovery_m2p test_recovery_m2p interface~test_recovery_m2p->proc~test_recovery_m2p

Contents


Variables

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