|
7 | 7 | !
|
8 | 8 |
|
9 | 9 | module adios2_adios_init_mod
|
10 |
| - |
11 | 10 | #ifdef ADIOS2_HAVE_FORTRAN_SUBMODULES
|
12 | 11 | use adios2_parameters_mod
|
13 | 12 | implicit none
|
14 | 13 |
|
15 | 14 | interface adios2_init
|
16 |
| - |
17 | 15 | module subroutine adios2_init_serial(adios, ierr)
|
18 | 16 | type(adios2_adios), intent(out) :: adios
|
19 | 17 | integer, intent(out) :: ierr
|
20 | 18 | end subroutine
|
| 19 | + module subroutine adios2_init_debug_serial(adios, adios2_debug_mode, ierr) |
| 20 | + type(adios2_adios), intent(out) :: adios |
| 21 | + logical, intent(in) :: adios2_debug_mode |
| 22 | + integer, intent(out) :: ierr |
| 23 | + end subroutine |
21 | 24 | module subroutine adios2_init_config_serial(adios, config_file, ierr)
|
22 | 25 | type(adios2_adios), intent(out) :: adios
|
23 | 26 | character*(*), intent(in) :: config_file
|
24 | 27 | integer, intent(out) :: ierr
|
25 | 28 | end subroutine
|
| 29 | + module subroutine adios2_init_config_debug_serial(adios, config_file, adios2_debug_mode, ierr) |
| 30 | + type(adios2_adios), intent(out) :: adios |
| 31 | + character*(*), intent(in) :: config_file |
| 32 | + logical, intent(in) :: adios2_debug_mode |
| 33 | + integer, intent(out) :: ierr |
| 34 | + end subroutine |
26 | 35 |
|
27 |
| -# ifdef ADIOS2_HAVE_MPI_F |
28 |
| - |
| 36 | +#ifdef ADIOS2_HAVE_MPI_F |
29 | 37 | module subroutine adios2_init_mpi(adios, comm, ierr)
|
30 | 38 | type(adios2_adios), intent(out) :: adios
|
31 | 39 | integer, intent(in) :: comm
|
32 | 40 | integer, intent(out) :: ierr
|
33 | 41 | end subroutine
|
| 42 | + module subroutine adios2_init_debug_mpi(adios, comm, adios2_debug_mode, ierr) |
| 43 | + type(adios2_adios), intent(out) :: adios |
| 44 | + integer, intent(in) :: comm |
| 45 | + logical, intent(in) :: adios2_debug_mode |
| 46 | + integer, intent(out) :: ierr |
| 47 | + end subroutine |
34 | 48 | module subroutine adios2_init_config_mpi(adios, config_file, comm, ierr)
|
35 | 49 | type(adios2_adios), intent(out) :: adios
|
36 | 50 | character*(*), intent(in) :: config_file
|
37 | 51 | integer, intent(in) :: comm
|
38 | 52 | integer, intent(out) :: ierr
|
39 | 53 | end subroutine
|
40 |
| -# endif |
41 |
| - |
| 54 | + module subroutine adios2_init_config_debug_mpi(adios, config_file, comm, adios2_debug_mode, ierr) |
| 55 | + type(adios2_adios), intent(out) :: adios |
| 56 | + character*(*), intent(in) :: config_file |
| 57 | + integer, intent(in) :: comm |
| 58 | + logical, intent(in) :: adios2_debug_mode |
| 59 | + integer, intent(out) :: ierr |
| 60 | + end subroutine |
| 61 | +#endif |
42 | 62 | end interface
|
43 |
| - |
44 | 63 | #else
|
45 | 64 |
|
46 | 65 | use adios2_adios_init_serial_mod
|
47 |
| -# ifdef ADIOS2_HAVE_MPI_F |
| 66 | + |
| 67 | +#ifdef ADIOS2_HAVE_MPI_F |
48 | 68 | use adios2_adios_init_mpi_mod
|
49 |
| -# endif |
| 69 | +#endif /*ADIOS2_HAVE_MPI_F*/ |
| 70 | +#endif /*ADIOS2_HAVE_FORTRAN_SUBMODULES*/ |
50 | 71 |
|
51 |
| -#endif |
| 72 | +#if defined(__GFORTRAN__) && defined(__GNUC__) && (__GNUC__ >= 11) |
| 73 | +!GCC$ ATTRIBUTES DEPRECATED :: adios2_init_debug_serial, adios2_init_config_debug_serial |
| 74 | +#endif /*DEPRECATED*/ |
| 75 | +#ifdef ADIOS2_HAVE_MPI_F |
| 76 | +#if defined(__GFORTRAN__) && defined(__GNUC__) && (__GNUC__ >= 11) |
| 77 | +!GCC$ ATTRIBUTES DEPRECATED :: adios2_init_debug_mpi, adios2_init_config_debug_mpi |
| 78 | +#endif /*DEPRECATED*/ |
| 79 | +#endif /*ADIOS2_HAVE_MPI_F*/ |
52 | 80 |
|
53 | 81 | end module
|
0 commit comments