|
1 |
| -#! Integer kinds to be considered during templating |
2 |
| -#:set INT_KINDS = ["int8", "int16", "int32", "int64"] |
3 |
| - |
4 |
| -#! Real kinds to be considered during templating |
5 |
| -#:set REAL_KINDS = ["sp", "dp", "qp"] |
| 1 | +#:include "common.fypp" |
6 | 2 |
|
7 | 3 | !! Licensing:
|
8 | 4 | !!
|
@@ -95,7 +91,7 @@ contains
|
95 | 91 | ! Allocate a buffer to use as scratch memory.
|
96 | 92 | array_size = size( array, kind=int_size )
|
97 | 93 | allocate( buf(0:array_size/2-1), stat=stat )
|
98 |
| - if ( stat /= 0 ) error stop "Allocation of buffer failed." |
| 94 | + if ( stat /= 0 ) error stop "${k1}$_ord_sort: Allocation of buffer failed." |
99 | 95 | call merge_sort( array, buf )
|
100 | 96 | end if
|
101 | 97 |
|
@@ -436,7 +432,7 @@ contains
|
436 | 432 | ! Allocate a buffer to use as scratch memory.
|
437 | 433 | array_size = size( array, kind=int_size )
|
438 | 434 | allocate( buf(0:array_size/2-1), stat=stat )
|
439 |
| - if ( stat /= 0 ) error stop "Allocation of buffer failed." |
| 435 | + if ( stat /= 0 ) error stop "${k1}$_ord_sort: Allocation of buffer failed." |
440 | 436 | call merge_sort( array, buf )
|
441 | 437 | end if
|
442 | 438 |
|
@@ -776,7 +772,7 @@ contains
|
776 | 772 | array_size = size( array, kind=int_size )
|
777 | 773 | allocate( character(len=len(array)) :: buf(0:array_size/2-1), &
|
778 | 774 | stat=stat )
|
779 |
| - if ( stat /= 0 ) error stop "Allocation of buffer failed." |
| 775 | + if ( stat /= 0 ) error stop "${k1}$_ord_sort: Allocation of buffer failed." |
780 | 776 | call merge_sort( array, buf )
|
781 | 777 | end if
|
782 | 778 |
|
@@ -1113,7 +1109,7 @@ contains
|
1113 | 1109 | ! Allocate a buffer to use as scratch memory.
|
1114 | 1110 | array_size = size( array, kind=int_size )
|
1115 | 1111 | allocate( buf(0:array_size/2-1), stat=stat )
|
1116 |
| - if ( stat /= 0 ) error stop "Allocation of buffer failed." |
| 1112 | + if ( stat /= 0 ) error stop "${k1}$_ord_sort: Allocation of buffer failed." |
1117 | 1113 | call merge_sort( array, buf )
|
1118 | 1114 | end if
|
1119 | 1115 |
|
|
0 commit comments