41 public :: craypat_record_start, craypat_record_stop, &
42 craypat_region_begin, craypat_region_end
47 subroutine craypat_record_start
49 call pat_record(pat_state_on, ierr)
50 end subroutine craypat_record_start
53 subroutine craypat_record_stop
55 call pat_record(pat_state_off, ierr)
56 end subroutine craypat_record_stop
59 subroutine craypat_region_begin(name, region_id)
60 character(len=*) :: name
61 integer,
intent(in) :: region_id
64 call pat_record(pat_state_query, ierr)
65 if (ierr .eq. pat_state_on)
then
66 call pat_region_begin(region_id, trim(name), ierr)
69 end subroutine craypat_region_begin
72 subroutine craypat_region_end(region_id)
73 integer,
intent(in) :: region_id
76 call pat_record(pat_state_query, ierr)
77 if (ierr .eq. pat_state_on)
then
78 call pat_region_end(region_id, ierr)
81 end subroutine craypat_region_end
Interface to CrayPat F77 API.