Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
Source Code
subroutine test_mutual_exclusion(this)class(MpiTestMethod),intent(inout)::thisinteger,parameter::NITER=20type(MpiMutex)::mutexinteger::comm,npes,i,statusinteger::wininteger,target::countercomm=this%getMpiCommunicator()npes=this%getNumProcesses()call create_counter(comm,counter,win)mutex=MpiMutex(comm,rc=status)@assertEqual(0,status)do i=1,NITERcall mutex%acquire(rc=status)@assertEqual(0,status)call increment_counter(win)call mutex%release(rc=status)@assertEqual(0,status)end do call MPI_Barrier(comm,status)@assertEqual(0,status)if(this%getProcessRank()==0)then@assertEqual(npes*NITER,read_counter(win))end if call mutex%free_mpi_resources(rc=status)@assertEqual(0,status)call MPI_Win_free(win,status)end subroutine test_mutual_exclusion