@@ -45,7 +45,8 @@ program test2
4545 real (wp),dimension (:),allocatable :: results_dpert ! ! results array - dpert
4646 real (wp),dimension (:),allocatable :: results_errors ! ! results array - errors
4747 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
4950 integer :: idx ! ! index in results arrays
5051 character (len= :),allocatable :: real_kind_str ! ! real kind for the plot title
5152 real (wp),dimension (3 ) :: color ! ! line color array
@@ -83,7 +84,7 @@ program test2
8384
8485 idx = 0
8586 i = methods(j) ! method id
86- call get_finite_diff_formula(i,formula)
87+ call get_finite_diff_formula(i,formula,name )
8788
8889 ! cycle through perturbation step sizes:
8990 do ipert = exp_star* exp_scale, exp_stop* exp_scale, exp_step
@@ -135,7 +136,7 @@ program test2
135136 ! plot for this method:
136137 call plt% add_plot(results_dpert,results_errors,&
137138 xscale= ' log' , yscale= ' log' ,&
138- label= formula,linestyle= ' .-' ,markersize= 5 ,linewidth= 2 , &
139+ label = formula,linestyle= ' .-' ,markersize= 5 ,linewidth= 2 , &
139140 color = color,&
140141 xlim = ylim,&
141142 ylim = ylim)
0 commit comments