00001 subroutine calc_physical_quantities_BNS_CF_mpt
00002   use phys_constant, only :  long, nmpt
00003   use def_binary_parameter, only : dis
00004   use def_matter_parameter, only : radi
00005   use def_matter_parameter_mpt
00006   use def_quantities_mpt
00007   use def_binary_parameter_mpt
00008   use grid_parameter_binary_excision 
00009   implicit none
00010   integer :: impt
00011 
00012   do impt = 1, nmpt
00013     call copy_from_mpatch_all_BNS_CF(impt)
00014     call copy_def_metric_and_matter_from_mpt(impt)
00015 
00016 
00017     if (impt==1 .or. impt==2)  then
00018       call calc_vector_x_matter(2)
00019       call calc_vector_phi_matter(2)
00020       call calc_vector_x_grav(2)
00021       call calc_vector_phi_grav(2)
00022       call excurve_CF('ns')             
00023       call excurve_CF_gridpoint         
00024 
00025       write(6,*) '----------------------------------------- dis, radi:', dis, radi
00026       call calc_rest_mass_peos      
00027       call calc_mass_peos           
00028       call calc_proper_mass_peos    
00029       call calc_ang_mom_peos        
00030 
00031       call calc_radius_CF_rsurf
00032 
00033 
00034       call calc_physq_center_peos_grid
00035       call calc_physq_cgs_peos
00036       call calc_enthalpy_xyzaxis
00037       call calc_circ_line_peos
00038       call calc_circ_surf_peos
00039       call calc_soundspeed_peos
00040       call IO_printout_grid_data_mpt(impt)
00041       call printout_NS_shape_mpt(impt)
00042 
00043     end if
00044     if (impt==nmpt) then
00045       call calc_vector_x_grav(1)
00046       call calc_vector_phi_grav(1)
00047       call excurve_CF('bh')             
00048       call excurve_CF_gridpoint_bhex    
00049 
00050 
00051       def_matter_param_real_(5,nmpt) = def_matter_param_real_(5,1)
00052       radi = def_matter_param_real_(5,nmpt)
00053       write(6,*) '----------------------------------------- dis, radi:', dis, radi
00054       call calc_mass_asympto('ns')
00055       call calc_angmom_asympto('ns')
00056       call calc_admmom_asympto('ns')
00057       def_matter_param_real_(5,nmpt) = 0.0d0
00058       radi = def_matter_param_real_(5,nmpt)
00059 
00060     end if
00061     call copy_to_mpatch_all_BNS_CF(impt)
00062     write(6,*) "CCCC resetmass, qc:", def_quantities_real_( 4,impt), def_quantities_real_(49,impt)
00063     write(6,*) "DDDD Madm asym, qc:", def_quantities_real_( 7,impt), def_quantities_real_(49,impt)
00064     write(6,*) "EEEE dis, qc      :", dis_(impt), def_quantities_real_(49,impt)
00065   end do
00066 
00067 end subroutine calc_physical_quantities_BNS_CF_mpt