@@ -210,99 +210,14 @@ subroutine read_settings_xml_f(root_ptr) bind(C)
210210
211211 integer :: i
212212 integer :: n
213- integer , allocatable :: temp_int_array(:)
214213 type (XMLNode) :: root
215- type (XMLNode) :: node_sp
216214 type (XMLNode) :: node_res_scat
217215 type (XMLNode) :: node_vol
218216 type (XMLNode), allocatable :: node_vol_list(:)
219217
220218 ! Get proper XMLNode type given pointer
221219 root % ptr = root_ptr
222220
223- ! Check if the user has specified to write state points
224- if (check_for_node(root, " state_point" )) then
225-
226- ! Get pointer to state_point node
227- node_sp = root % child(" state_point" )
228-
229- ! Determine number of batches at which to store state points
230- if (check_for_node(node_sp, " batches" )) then
231- n_state_points = node_word_count(node_sp, " batches" )
232- else
233- n_state_points = 0
234- end if
235-
236- if (n_state_points > 0 ) then
237- ! User gave specific batches to write state points
238- allocate (temp_int_array(n_state_points))
239- call get_node_array(node_sp, " batches" , temp_int_array)
240- do i = 1 , n_state_points
241- call statepoint_batch % add(temp_int_array(i))
242- end do
243- deallocate (temp_int_array)
244- else
245- ! If neither were specified, write state point at last batch
246- n_state_points = 1
247- call statepoint_batch % add(n_batches)
248- end if
249- else
250- ! If no <state_point> tag was present, by default write state point at
251- ! last batch only
252- n_state_points = 1
253- call statepoint_batch % add(n_batches)
254- end if
255-
256- ! Check if the user has specified to write source points
257- if (check_for_node(root, " source_point" )) then
258-
259- ! Get pointer to source_point node
260- node_sp = root % child(" source_point" )
261-
262- ! Determine number of batches at which to store source points
263- if (check_for_node(node_sp, " batches" )) then
264- n_source_points = node_word_count(node_sp, " batches" )
265- else
266- n_source_points = 0
267- end if
268-
269- if (n_source_points > 0 ) then
270- ! User gave specific batches to write source points
271- allocate (temp_int_array(n_source_points))
272- call get_node_array(node_sp, " batches" , temp_int_array)
273- do i = 1 , n_source_points
274- call sourcepoint_batch % add(temp_int_array(i))
275- end do
276- deallocate (temp_int_array)
277- else
278- ! If neither were specified, write source points with state points
279- n_source_points = n_state_points
280- do i = 1 , n_state_points
281- call sourcepoint_batch % add(statepoint_batch % get_item(i))
282- end do
283- end if
284- else
285- ! If no <source_point> tag was present, by default we keep source bank in
286- ! statepoint file and write it out at statepoints intervals
287- n_source_points = n_state_points
288- do i = 1 , n_state_points
289- call sourcepoint_batch % add(statepoint_batch % get_item(i))
290- end do
291- end if
292-
293- ! If source is not seperate and is to be written out in the statepoint file,
294- ! make sure that the sourcepoint batch numbers are contained in the
295- ! statepoint list
296- if (.not. source_separate) then
297- do i = 1 , n_source_points
298- if (.not. statepoint_batch % contains (sourcepoint_batch % &
299- get_item(i))) then
300- call fatal_error(' Sourcepoint batches are not a subset&
301- & of statepoint batches.' )
302- end if
303- end do
304- end if
305-
306221 ! Resonance scattering parameters
307222 if (check_for_node(root, " resonance_scattering" )) then
308223 node_res_scat = root % child(" resonance_scattering" )
0 commit comments