53 perProc, ifNonZeroProc,nonZeroProcsCount)
56#include "Simulation.h"
60 integer,
intent(IN) :: count, props, attrib, numProcs
61 real,dimension(props,count),
intent(INOUT) ::storage,workspace
62 integer,dimension(numProcs),
intent(OUT) :: perProc, ifNonZeroProc
63 integer,
intent(OUT) :: nonZeroProcsCount
67 integer, dimension(numProcs) :: pntr
78 j
=int(storage(attrib,i))
81 workspace(
1:props,n)
=storage(
1:props,i)
83 perProc(j)
=perProc(j)
+1
84 if(ifNonZeroProc(j)
==0)
then
86 nonZeroProcsCount
=nonZeroProcsCount
+1
93 pntr(i)
=pntr(i
-1)
+perProc(i
-1)
97 j
=int(workspace(attrib,i))
+1
99 storage(
1:props,k)
=workspace(
1:props,i)
subroutine ut_sortOnProcs(count, props, attrib, numProcs, storage, workspace, perProc, ifNonZeroProc, nonZeroProcsCount)