|
1 | 1 | !> Wrapper for interfacing `m_result_dp` with Python |
2 | 2 | module m_result_dp_w |
3 | 3 |
|
4 | | - use kind_parameters, only: dp |
5 | 4 | use m_error_v, only: ErrorV |
6 | 5 | use m_result_dp, only: ResultDP |
7 | 6 |
|
@@ -29,6 +28,10 @@ module m_result_dp_w |
29 | 28 | subroutine build_instance(data_v, error_v_instance_index, instance_index) |
30 | 29 | !! Build an instance |
31 | 30 |
|
| 31 | + ! Annoying that this has to be injected everywhere, |
| 32 | + ! but ok it can be automated. |
| 33 | + integer, parameter :: dp = selected_real_kind(15, 307) |
| 34 | + |
32 | 35 | real(kind=dp), intent(in), optional :: data_v |
33 | 36 | !! Data |
34 | 37 |
|
@@ -124,15 +127,23 @@ subroutine get_data_v( & |
124 | 127 | data_v & |
125 | 128 | ) |
126 | 129 |
|
| 130 | + ! Annoying that this has to be injected everywhere, |
| 131 | + ! but ok it can be automated. |
| 132 | + integer, parameter :: dp = selected_real_kind(15, 307) |
| 133 | + |
127 | 134 | integer, intent(in) :: instance_index |
128 | 135 |
|
129 | 136 | real(kind=dp), intent(out) :: data_v |
130 | 137 |
|
131 | 138 | type(ResultDP) :: instance |
132 | 139 |
|
| 140 | + print *, "instance_index" |
| 141 | + print *, instance_index |
133 | 142 | instance = result_dp_manager_get_instance(instance_index) |
134 | 143 |
|
135 | 144 | data_v = instance % data_v |
| 145 | + print *, "instance % data_v" |
| 146 | + print *, instance % data_v |
136 | 147 |
|
137 | 148 | end subroutine get_data_v |
138 | 149 |
|
|
0 commit comments