@@ -7,6 +7,7 @@ module m_result_dp_w
77 ! The manager module, which makes this all work
88 use m_error_v_manager, only: &
99 error_v_manager_get_instance = > get_instance, &
10+ error_v_manager_ensure_instance_array_size_is_at_least = > ensure_instance_array_size_is_at_least, &
1011 error_v_manager_get_available_instance_index = > get_available_instance_index, &
1112 error_v_manager_set_instance_index_to = > set_instance_index_to
1213
@@ -137,13 +138,9 @@ subroutine get_data_v( &
137138
138139 type (ResultDP) :: instance
139140
140- print * , " instance_index"
141- print * , instance_index
142141 instance = result_dp_manager_get_instance(instance_index)
143142
144143 data_v = instance % data_v
145- print * , " instance % data_v"
146- print * , instance % data_v
147144
148145 end subroutine get_data_v
149146
@@ -181,6 +178,8 @@ subroutine get_error_v( &
181178 instance = result_dp_manager_get_instance(instance_index)
182179
183180 error_v = instance % error_v
181+
182+ call error_v_manager_ensure_instance_array_size_is_at_least(1 )
184183 call error_v_manager_get_available_instance_index(error_v_instance_index)
185184 call error_v_manager_set_instance_index_to(error_v_instance_index, error_v)
186185
0 commit comments