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.
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 instant_probe_mainimplicit nonereal,allocatable::send_buf(:),recv_buf(:)integer::vncharacter(80)::varnameif(.not.lprobedump)return! Only rank 0 tracks record numberif(myid==0)nrecprobe=nrecprobe+1allocate(send_buf(nprobe))allocate(recv_buf(nprobe))! Always write time first (Rank 0)if(myid==0)then call check(nf90_put_var(ncidprobe,varid_time,timee,start=(/nrecprobe/)))end if! Loop over all requested variablesdo vn=1,nprobevarsvarname=probevars(3*vn-2:3*vn-1)send_buf=0.0recv_buf=0.0call instant_gather_probe_var(varname,send_buf)! Reduce to Rank 0call MPI_REDUCE(send_buf,recv_buf,nprobe,my_real,MPI_SUM,0,comm3d,mpierr)if(myid==0)then! Use start/count to append to time dimensioncall check(nf90_put_var(ncidprobe,varid_vals(vn),recv_buf,&start=(/1,nrecprobe/),count=(/nprobe,1/)))end if end do if(myid==0)then call check(nf90_sync(ncidprobe))end if deallocate(send_buf,recv_buf)end subroutine instant_probe_main