@@ -45,7 +45,8 @@ program test2
45
45
real (wp),dimension (:),allocatable :: results_dpert ! ! results array - dpert
46
46
real (wp),dimension (:),allocatable :: results_errors ! ! results array - errors
47
47
type (pyplot) :: plt ! ! for plotting the results
48
- character (len= :),allocatable :: formula ! ! finite diff forumla for the plot legend
48
+ character (len= :),allocatable :: formula ! ! finite diff formula for the plot legend
49
+ character (len= :),allocatable :: name ! ! finite diff name for the plot legend
49
50
integer :: idx ! ! index in results arrays
50
51
character (len= :),allocatable :: real_kind_str ! ! real kind for the plot title
51
52
real (wp),dimension (3 ) :: color ! ! line color array
@@ -83,7 +84,7 @@ program test2
83
84
84
85
idx = 0
85
86
i = methods(j) ! method id
86
- call get_finite_diff_formula(i,formula)
87
+ call get_finite_diff_formula(i,formula,name )
87
88
88
89
! cycle through perturbation step sizes:
89
90
do ipert = exp_star* exp_scale, exp_stop* exp_scale, exp_step
@@ -135,7 +136,7 @@ program test2
135
136
! plot for this method:
136
137
call plt% add_plot(results_dpert,results_errors,&
137
138
xscale= ' log' , yscale= ' log' ,&
138
- label= formula,linestyle= ' .-' ,markersize= 5 ,linewidth= 2 , &
139
+ label = formula,linestyle= ' .-' ,markersize= 5 ,linewidth= 2 , &
139
140
color = color,&
140
141
xlim = ylim,&
141
142
ylim = ylim)
0 commit comments