@@ -10,7 +10,7 @@ module m_result_manager
1010 type (ResultGen), allocatable , dimension (:) :: instance_array
1111
1212 public :: build_instance, finalise_instance,&
13- set_instance_index_to, get_available_instance_index,get_instance,&
13+ set_instance_index_to, get_available_instance_index, get_instance,&
1414 force_claim_instance_index, check_index_claimed, &
1515 ensure_instance_array_size_is_at_least, deallocate_instance_array
1616
@@ -191,7 +191,7 @@ function check_index_claimed(instance_index) result(res_check_index_claimed)
191191 if (.not. allocated (instance_array)) then
192192
193193 msg = " instance_available in NOT allocated"
194- res_check_index_claimed = ResultGen (tag= T_ERR,error_v= ErrorV(code= 3 , message= msg))
194+ call res_check_index_claimed % build (tag= T_ERR,error_v= ErrorV(code= 3 , message= msg))
195195
196196 return
197197 end if
@@ -200,20 +200,20 @@ function check_index_claimed(instance_index) result(res_check_index_claimed)
200200
201201 if (instance_index < 1 .or. instance_index > size (instance_array)) then
202202 msg = " Requested index is: " // trim (adjustl (idx_str)) // " ==> out of boundary"
203- res_check_index_claimed = ResultGen (tag= T_ERR,error_v= ErrorV(code= 3 , message= msg))
203+ call res_check_index_claimed % build (tag= T_ERR,error_v= ErrorV(code= 3 , message= msg))
204204
205205 return
206206 end if
207207
208208 if (instance_array(instance_index)% tag== T_NONE) then
209209
210210 msg = " Index " // trim (adjustl (idx_str)) // " has not been claimed"
211- res_check_index_claimed = ResultGen (tag= T_ERR,error_v= ErrorV(code= 3 , message= msg))
211+ call res_check_index_claimed % build (tag= T_ERR,error_v= ErrorV(code= 3 , message= msg))
212212
213213 return
214214 end if
215215
216- res_check_index_claimed = ResultGen (tag= T_CLAIM)
216+ call res_check_index_claimed % build (tag= T_CLAIM)
217217
218218 end function check_index_claimed
219219
0 commit comments