@@ -37,8 +37,8 @@ module MAPL_MeterNode
3737 procedure :: accumulate
3838 procedure :: reset
3939
40- procedure :: begin
41- procedure :: end
40+ procedure :: begin = > node_begin
41+ procedure :: end = > node_end
4242 end type MeterNode
4343
4444
@@ -56,7 +56,7 @@ module MAPL_MeterNode
5656 procedure :: get_meter = > get_meter_iter
5757 procedure :: equals
5858 procedure :: not_equals
59- procedure :: next
59+ procedure :: next = > node_next
6060 end type MeterNodeIterator
6161
6262
@@ -110,14 +110,14 @@ end function get_name
110110
111111 function get_inclusive (this ) result(inclusive)
112112 real (kind= REAL64) :: inclusive
113- class (MeterNode), intent (in ) :: this
113+ class (MeterNode), target , intent (in ) :: this
114114 inclusive = this% meter% get_total()
115115 end function get_inclusive
116116
117117
118118 function get_exclusive (this ) result(exclusive)
119119 real (kind= REAL64) :: exclusive
120- class (MeterNode), intent (in ) :: this
120+ class (MeterNode), target , intent (in ) :: this
121121
122122 type (MeterNodevectorIterator) :: iter
123123 class (AbstractMeterNode), pointer :: child
@@ -133,7 +133,7 @@ function get_exclusive(this) result(exclusive)
133133
134134 iter = this% children% begin()
135135 do while (iter /= this% children% end ())
136- child = > iter% get ()
136+ child = > iter% of ()
137137 tmp = tmp - child% get_inclusive()
138138 call iter% next()
139139 end do
@@ -239,7 +239,7 @@ recursive integer function get_num_nodes(this) result(num_nodes)
239239 num_nodes = 1
240240 iter = this% children% begin()
241241 do while (iter /= this% children% end ())
242- child = > iter% get ()
242+ child = > iter% of ()
243243 num_nodes = num_nodes + child% get_num_nodes()
244244 call iter% next()
245245 end do
@@ -266,18 +266,18 @@ function new_MeterNodeIterator(meter_node) result(iterator)
266266 end function new_MeterNodeIterator
267267
268268
269- function begin (this ) result(iterator)
269+ function node_begin (this ) result(iterator)
270270 class (AbstractMeterNodeIterator), allocatable :: iterator
271271 class (MeterNode), target , intent (in ) :: this
272272
273273! !$ iterator = MeterNodeIterator(this)
274274 allocate (iterator, source= MeterNodeIterator(this))
275275
276- end function begin
276+ end function node_begin
277277
278278
279279
280- function end (this ) result(iterator)
280+ function node_end (this ) result(iterator)
281281 class (AbstractMeterNodeIterator), allocatable :: iterator
282282 class (MeterNode), target , intent (in ) :: this
283283
@@ -294,10 +294,10 @@ function end(this) result(iterator)
294294 print * ,' uh oh'
295295 end select
296296
297- end function end
297+ end function node_end
298298
299299
300- recursive subroutine next (this )
300+ recursive subroutine node_next (this )
301301 class (MeterNodeIterator), intent (inout ) :: this
302302 class (AbstractMeterNode), pointer :: current_child
303303
@@ -307,7 +307,7 @@ recursive subroutine next(this)
307307 if (.not. allocated (this% iterator_over_children)) then
308308 this% iterator_over_children = this% reference% children% begin()
309309 if (this% iterator_over_children /= this% reference% children% end ()) then
310- current_child = > this% iterator_over_children% get ()
310+ current_child = > this% iterator_over_children% of ()
311311 this% iterator_of_current_child = current_child% begin()
312312 this% current = > this% iterator_of_current_child% get()
313313 else
@@ -323,14 +323,14 @@ recursive subroutine next(this)
323323 if (this% iterator_over_children == this% reference% children% end ()) then ! done
324324 deallocate (this% iterator_over_children)
325325 else
326- current_child = > this% iterator_over_children% get ()
326+ current_child = > this% iterator_over_children% of ()
327327 this% iterator_of_current_child = current_child% begin() ! always at least one node
328328 this% current = > this% iterator_of_current_child% get()
329329 end if
330330 end if
331331 end if
332332
333- end subroutine next
333+ end subroutine node_next
334334
335335
336336 function get (this ) result(tree)
@@ -395,7 +395,7 @@ recursive subroutine reset(this)
395395
396396 iter = this% children% begin()
397397 do while (iter /= this% children% end ())
398- child = > iter% get ()
398+ child = > iter% of ()
399399 call child% reset()
400400 call iter% next()
401401 end do
0 commit comments