Line data Source code
1 : ! ***********************************************************************
2 : !
3 : ! Copyright (C) 2013 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_dPg_dnu
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 dPg_dnu_Plot(id, device_id, ierr)
32 : integer, intent(in) :: id, device_id
33 : integer, intent(out) :: ierr
34 :
35 : type (star_info), pointer :: s
36 :
37 : ierr = 0
38 0 : call get_star_ptr(id, s, ierr)
39 0 : if (ierr /= 0) return
40 :
41 0 : call pgslct(device_id)
42 0 : call pgbbuf()
43 0 : call pgeras()
44 :
45 : call do_dPg_dnu_Plot(s, id, device_id, &
46 : s% pg% dPg_dnu_xleft, s% pg% dPg_dnu_xright, &
47 : s% pg% dPg_dnu_ybot, s% pg% dPg_dnu_ytop, .false., &
48 0 : s% pg% dPg_dnu_title, s% pg% dPg_dnu_txt_scale, ierr)
49 :
50 0 : call pgebuf()
51 :
52 : end subroutine dPg_dnu_Plot
53 :
54 :
55 0 : subroutine do_dPg_dnu_Plot(s, id, device_id, &
56 : xleft, xright, ybot, ytop, subplot, 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 : 'delta_nu', 'delta_Pg', &
70 : 'delta nu', 'delta Pg', &
71 : s% pg% dPg_dnu_delta_nu_min, s% pg% dPg_dnu_delta_nu_max, &
72 : s% pg% dPg_dnu_delta_nu_margin, s% pg% dPg_dnu_d_delta_nu_min, &
73 : s% pg% dPg_dnu_delta_Pg_min, s% pg% dPg_dnu_delta_Pg_max, &
74 : s% pg% dPg_dnu_delta_Pg_margin, s% pg% dPg_dnu_d_delta_Pg_min, &
75 : s% pg% dPg_dnu_step_min, s% pg% dPg_dnu_step_max, &
76 : reverse_xaxis, reverse_yaxis, .false., .false., &
77 : .false., 0, 0.0, 0.0, 0.0, 0.0, &
78 : s% pg% show_dPg_dnu_annotation1, &
79 : s% pg% show_dPg_dnu_annotation2, &
80 : s% pg% show_dPg_dnu_annotation3, &
81 : s% pg% dPg_dnu_fname, &
82 : s% pg% dPg_dnu_use_decorator, s% pg% dPg_dnu_pgstar_decorator, &
83 0 : null_decorate, ierr)
84 0 : end subroutine do_dPg_dnu_Plot
85 :
86 : end module pgstar_dPg_dnu
|