@@ -6,9 +6,9 @@ module wenoof_alpha_rec_js
66! < Schemes*, Guang-Shan Jiang, Chi-Wang Shu, JCP, 1996, vol. 126, pp. 202--228, doi:10.1006/jcph.1996.0130.
77
88#ifdef r16p
9- use penf, only: I_P, RPP= >R16P
9+ use penf, only: I_P, RPP= >R16P, str
1010#else
11- use penf, only: I_P, RPP= >R8 P
11+ use penf, only: I_P, RPP= >R8 P, str
1212#endif
1313use wenoof_alpha_object
1414use wenoof_base_object
@@ -19,7 +19,6 @@ module wenoof_alpha_rec_js
1919private
2020public :: alpha_rec_js
2121public :: alpha_rec_js_constructor
22- public :: create_alpha_rec_js_constructor
2322
2423type, extends(alpha_object_constructor) :: alpha_rec_js_constructor
2524 ! < Jiang-Shu alpha object constructor.
@@ -39,22 +38,6 @@ module wenoof_alpha_rec_js
3938endtype alpha_rec_js
4039
4140contains
42- ! public non TBP
43- subroutine create_alpha_rec_js_constructor (S , constructor , face_left , face_right , eps )
44- ! < Create alpha constructor.
45- integer (I_P), intent (in ) :: S ! < Stencils dimension.
46- class(alpha_object_constructor), allocatable , intent (out ) :: constructor ! < Constructor.
47- logical , intent (in ), optional :: face_left ! < Activate left-face interpolations.
48- logical , intent (in ), optional :: face_right ! < Activate right-face interpolations.
49- real (RPP), intent (in ), optional :: eps ! < Small epsilon to avoid division by zero.
50-
51- allocate (alpha_rec_js_constructor :: constructor)
52- constructor% S = S
53- if (present (face_left)) constructor% face_left = face_left
54- if (present (face_right)) constructor% face_right = face_right
55- if (present (eps)) constructor% eps = eps
56- end subroutine create_alpha_rec_js_constructor
57-
5841 ! deferred public methods
5942 subroutine create (self , constructor )
6043 ! < Create alpha.
@@ -87,13 +70,16 @@ pure subroutine compute(self, beta, kappa)
8770
8871 pure function description (self ) result(string)
8972 ! < Return alpha string-descripition.
90- class(alpha_rec_js), intent (in ) :: self ! < Alpha coefficient.
91- character (len= :), allocatable :: string ! < String-description.
73+ class(alpha_rec_js), intent (in ) :: self ! < Alpha coefficient.
74+ character (len= :), allocatable :: string ! < String-description.
75+ character (len= 1 ), parameter :: nl= new_line(' a' ) ! < New line char.
9276
93- #ifndef DEBUG
94- ! error stop in pure procedure is a F2015 feature not yet supported in debug mode
95- error stop ' alpha_rec_js%description to be implemented, do not use!'
96- #endif
77+ string = ' Jiang-Shu alpha coefficients for reconstructor:' // nl
78+ string = string// ' - S = ' // trim (str(self% S))// nl
79+ string = string// ' - f1 = ' // trim (str(self% f1))// nl
80+ string = string// ' - f2 = ' // trim (str(self% f2))// nl
81+ string = string// ' - ff = ' // trim (str(self% ff))// nl
82+ string = string// ' - eps = ' // trim (str(self% eps))
9783 end function description
9884
9985 elemental subroutine destroy (self )
0 commit comments