monitor_set_Print Subroutine

private impure subroutine monitor_set_Print(this, print_labels)

Prints content of monitors.

Type Bound

monitor_set

Arguments

Type IntentOptional Attributes Name
class(monitor_set), intent(inout) :: this

Set of monitor objects

logical, intent(in), optional :: print_labels

True if we want to print the labels


Calls

proc~~monitor_set_print~~CallsGraph proc~monitor_set_print monitor_set%monitor_set_Print proc~parallel_obj_rankisroot parallel_obj%parallel_obj_RankIsRoot proc~monitor_set_print->proc~parallel_obj_rankisroot

Source Code

    impure subroutine monitor_set_Print(this,print_labels)
      !> Prints content of monitors.
      implicit none
      class(monitor_set), intent(inout) :: this                                !! Set of monitor objects
      logical,            intent(in),    &
                               optional :: print_labels                        !! True if we want to print the labels
      ! Work variables
      integer :: n

      associate(mpi => this%parallel)
        if (mpi%RankIsRoot()) then
          if (present(print_labels)) then
            do n=1,size(this%m)
              call this%m(n)%Print(print_labels)
            end do
          else
            do n=1,size(this%m)
              call this%m(n)%Print(.false.)
            end do
          end if
        end if
      end associate

      return
    end subroutine monitor_set_Print