Skip to content

Commit f88657b

Browse files
committed
Release 2.5.0
1 parent bd4cce9 commit f88657b

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ It requires the version `v2.5.0` of CUTEst.
6666
With this approach, there is no need to generate a new combined library for each decoded SIF problem.
6767
Instead, you dynamically load the decoded problem library at runtime.
6868

69-
The only user-facing addition is the subroutines `load_routines_` and `unload_routines_`,
69+
The only user-facing addition is the subroutines `cutest_load_routines_` and `cutest_unload_routines_`,
7070
which allows you to specify the path to the SIF problem library.
7171

7272
At runtime, the CUTEst shared library will forward the symbols `elfun_`, `group_`, and `range_` to the specified library.

include/cutest.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* give a version number
3333
*/
3434

35-
#define CUTEST_VERSION 2.4.0
35+
#define CUTEST_VERSION 2.5.0
3636

3737
/*
3838
* Define name of main() function on a

include/cutest_c.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* give a version number
3131
*/
3232

33-
#define CUTEST_VERSION 2.4.0
33+
#define CUTEST_VERSION 2.5.0
3434

3535
/*
3636
* Define name of main() function on a

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
project(
22
'CUTEst',
33
'fortran', 'c',
4-
version: '2.4.0',
4+
version: '2.5.0',
55
meson_version: '>= 0.62.0',
66
default_options: [
77
'buildtype=release',

src/tools/cutest_trampoline.f90

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@
1111
#include "cutest_modules.h"
1212

1313
#ifdef REAL_32
14-
#define LOAD_ROUTINES_NAME "load_routines_s_"
15-
#define UNLOAD_ROUTINES_NAME "unload_routines_s_"
16-
#define SHOW_LOADED_LIBRARY_NAME "show_loaded_library_s_"
14+
#define LOAD_ROUTINES_NAME "cutest_load_routines_s_"
15+
#define UNLOAD_ROUTINES_NAME "cutest_unload_routines_s_"
16+
#define SHOW_LOADED_LIBRARY_NAME "cutest_show_loaded_library_s_"
1717
#define ELFUN_BIND_NAME "elfun_s_"
1818
#define GROUP_BIND_NAME "group_s_"
1919
#define RANGE_BIND_NAME "range_s_"
2020
#elif REAL_128
21-
#define LOAD_ROUTINES_NAME "load_routines_q_"
22-
#define UNLOAD_ROUTINES_NAME "unload_routines_q_"
23-
#define SHOW_LOADED_LIBRARY_NAME "show_loaded_library_q_"
21+
#define LOAD_ROUTINES_NAME "cutest_load_routines_q_"
22+
#define UNLOAD_ROUTINES_NAME "cutest_unload_routines_q_"
23+
#define SHOW_LOADED_LIBRARY_NAME "cutest_show_loaded_library_q_"
2424
#define ELFUN_BIND_NAME "elfun_q_"
2525
#define GROUP_BIND_NAME "group_q_"
2626
#define RANGE_BIND_NAME "range_q_"
2727
#else
28-
#define LOAD_ROUTINES_NAME "load_routines_"
29-
#define UNLOAD_ROUTINES_NAME "unload_routines_"
30-
#define SHOW_LOADED_LIBRARY_NAME "show_loaded_library_"
28+
#define LOAD_ROUTINES_NAME "cutest_load_routines_"
29+
#define UNLOAD_ROUTINES_NAME "cutest_unload_routines_"
30+
#define SHOW_LOADED_LIBRARY_NAME "cutest_show_loaded_library_"
3131
#define ELFUN_BIND_NAME "elfun_"
3232
#define GROUP_BIND_NAME "group_"
3333
#define RANGE_BIND_NAME "range_"
@@ -95,7 +95,7 @@ end subroutine cutest_dlclose
9595

9696
contains
9797
! Subroutine to load the routines from the given shared library
98-
subroutine load_routines(libname) bind(C, name=LOAD_ROUTINES_NAME)
98+
subroutine cutest_load_routines(libname) bind(C, name=LOAD_ROUTINES_NAME)
9999
character(kind=c_char), dimension(*), intent(in) :: libname
100100

101101
! Load the dynamic library
@@ -115,10 +115,10 @@ subroutine load_routines(libname) bind(C, name=LOAD_ROUTINES_NAME)
115115
call c_f_procpointer(ptr_elfun, fun_elfun)
116116
call c_f_procpointer(ptr_group, fun_group)
117117
call c_f_procpointer(ptr_range, fun_range)
118-
end subroutine load_routines
118+
end subroutine cutest_load_routines
119119

120120
! Unload the routines and reset internal state
121-
subroutine unload_routines() bind(C, name=UNLOAD_ROUTINES_NAME)
121+
subroutine cutest_unload_routines() bind(C, name=UNLOAD_ROUTINES_NAME)
122122
if (c_associated(lib_handle)) then
123123
call cutest_dlclose(lib_handle)
124124
lib_handle = c_null_ptr
@@ -131,16 +131,16 @@ subroutine unload_routines() bind(C, name=UNLOAD_ROUTINES_NAME)
131131
nullify(fun_elfun)
132132
nullify(fun_group)
133133
nullify(fun_range)
134-
end subroutine unload_routines
134+
end subroutine cutest_unload_routines
135135

136136
! Show the currently loaded library
137-
! subroutine show_loaded_library() bind(C, name=SHOW_LOADED_LIBRARY_NAME)
137+
! subroutine cutest_show_loaded_library() bind(C, name=SHOW_LOADED_LIBRARY_NAME)
138138
! if (allocated(library_path)) then
139139
! print *, "Currently loaded library: ", library_path
140140
! else
141141
! print *, "No library loaded."
142142
! end if
143-
! end subroutine show_loaded_library
143+
! end subroutine cutest_show_loaded_library
144144

145145
! Redirection subroutine for calling the 'elfun' function from the dynamic library
146146
subroutine elfun() bind(C, name=ELFUN_BIND_NAME)

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* CUTEst version 2.4.0 (30/Oct/2024 07:30 GMT)
1+
* CUTEst version 2.5.0 (16/Apr/2025 07:30 GMT)

0 commit comments

Comments
 (0)