LCOV - code coverage report
Current view: top level - star/private - pgstar_l_r.f90 (source / functions) Coverage Total Hit
Test: coverage.info Lines: 0.0 % 12 0
Test Date: 2025-05-08 18:23:42 Functions: 0.0 % 2 0

            Line data    Source code
       1              : ! ***********************************************************************
       2              : !
       3              : !   Copyright (C) 2014  The MESA Team
       4              : !
       5              : !   This program is free software: you can redistribute it and/or modify
       6              : !   it under the terms of the GNU Lesser General Public License
       7              : !   as published by the Free Software Foundation,
       8              : !   either version 3 of the License, or (at your option) any later version.
       9              : !
      10              : !   This program is distributed in the hope that it will be useful,
      11              : !   but WITHOUT ANY WARRANTY; without even the implied warranty of
      12              : !   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
      13              : !   See the GNU Lesser General Public License for more details.
      14              : !
      15              : !   You should have received a copy of the GNU Lesser General Public License
      16              : !   along with this program. If not, see <https://www.gnu.org/licenses/>.
      17              : !
      18              : ! ***********************************************************************
      19              : 
      20              :       module pgstar_l_r
      21              : 
      22              :       use star_private_def
      23              :       use const_def, only: dp
      24              :       use pgstar_support
      25              :       use star_pgstar
      26              : 
      27              :       implicit none
      28              : 
      29              :       contains
      30              : 
      31            0 :       subroutine L_r_Plot(id, device_id, ierr)
      32              :          integer, intent(in) :: id, device_id
      33              :          integer, intent(out) :: ierr
      34              :          type (star_info), pointer :: s
      35              :          ierr = 0
      36            0 :          call get_star_ptr(id, s, ierr)
      37            0 :          if (ierr /= 0) return
      38              : 
      39            0 :          call pgslct(device_id)
      40            0 :          call pgbbuf()
      41            0 :          call pgeras()
      42              : 
      43              :          call do_L_r_Plot(s, id, device_id, &
      44              :             s% pg% L_r_xleft, s% pg% L_r_xright, &
      45              :             s% pg% L_r_ybot, s% pg% L_r_ytop, .false., &
      46            0 :             s% pg% L_r_title, s% pg% L_r_txt_scale, ierr)
      47            0 :          if (ierr /= 0) return
      48              : 
      49            0 :          call pgebuf()
      50              : 
      51              :       end subroutine L_r_Plot
      52              : 
      53              : 
      54            0 :       subroutine do_L_r_Plot(s, id, device_id, &
      55              :             xleft, xright, ybot, ytop, subplot, &
      56              :             title, txt_scale, ierr)
      57              :          use pgstar_hist_track, only: null_decorate, do_Hist_Track
      58              :          type (star_info), pointer :: s
      59              :          integer, intent(in) :: id, device_id
      60              :          real, intent(in) :: xleft, xright, ybot, ytop, txt_scale
      61              :          logical, intent(in) :: subplot
      62              :          character (len=*), intent(in) :: title
      63              :          integer, intent(out) :: ierr
      64              :          logical, parameter :: &
      65              :             reverse_xaxis = .false., reverse_yaxis = .false.
      66              :          ierr = 0
      67              :          call do_Hist_Track(s, id, device_id, &
      68              :             xleft, xright, ybot, ytop, subplot, title, txt_scale, &
      69              :             'radius', 'luminosity', &
      70              :             'R/R\d\(2281)', 'L/L\d\(2281)', &
      71              :             s% pg% L_r_r_min, s% pg% L_r_r_max, &
      72              :             s% pg% L_r_r_margin, s% pg% L_r_dr_min, &
      73              :             s% pg% L_r_L_min, s% pg% L_r_L_max, &
      74              :             s% pg% L_r_L_margin, s% pg% L_r_dL_min, &
      75              :             s% pg% L_r_step_min, s% pg% L_r_step_max, &
      76              :             reverse_xaxis, reverse_yaxis, .false., .false., &
      77              :             s% pg% show_L_r_target_box, s% pg% L_r_target_n_sigma, &
      78              :             s% pg% L_r_target_r, s% pg% L_r_target_L, &
      79              :             s% pg% L_r_target_r_sigma, s% pg% L_r_target_L_sigma, &
      80              :             s% pg% show_L_r_annotation1, &
      81              :             s% pg% show_L_r_annotation2, &
      82              :             s% pg% show_L_r_annotation3, &
      83              :             s% pg% L_r_fname, &
      84              :             s% pg% L_r_use_decorator, &
      85              :             s% pg% L_r_pgstar_decorator, &
      86            0 :             null_decorate, ierr)
      87            0 :       end subroutine do_L_r_Plot
      88              : 
      89              :       end module pgstar_l_r
        

Generated by: LCOV version 2.0-1