Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/f/vernier_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,18 @@ subroutine vernier_init(client_comm_handle, tag)
!Local variables
character(len=:), allocatable :: local_tag

! NB: Dual calls to interface_vernier_init() ought to be unnecessary,
! since unallocated actual arguments passed to optional dummy arguments
! count as not present in downstream code. We separate the calls here
! (with and without local_tag) to accommodate a compiler bug.
if (present(tag)) then
allocate(character(len=len_trim(tag)+1) :: local_tag)
call append_null_char(tag, local_tag, len_trim(tag))
call interface_vernier_init(client_comm_handle, local_tag)
else
call interface_vernier_init(client_comm_handle)
end if

call interface_vernier_init(client_comm_handle, local_tag)

end subroutine vernier_init

!> @brief Start profiling a code region.
Expand Down