
Go to the source code of this file.
| void errexit | ( | char * | f_str, | |
| ... | ||||
| ) |
Definition at line 20 of file util.c.
References abort().
Referenced by BetterVBalance(), BSearch(), Coarsen2Way(), Coordinate_Partition(), GKmalloc(), Init2WayPartition(), InitMultisection(), MCCoarsen2Way(), MocInit2WayPartition(), MocInit2WayPartition2(), MocRefine2Way(), MocRefine2Way2(), and Refine2Way().
| void myprintf | ( | CtrlType * | ctrl, | |
| char * | f_str, | |||
| ... | ||||
| ) |
Definition at line 41 of file util.c.
References controldef::mype.
Referenced by CheckMGraph(), Mc_Local_CreateCoarseGraph(), Mc_LocalMatch_HEM(), and Moc_GlobalMatch_Balance().
| void rprintf | ( | CtrlType * | ctrl, | |
| char * | f_str, | |||
| ... | ||||
| ) |
Definition at line 62 of file util.c.
References controldef::comm, MPI_Barrier(), and controldef::mype.
Referenced by Adaptive_Partition(), Balance_Partition(), KWayNodeRefine(), Mc_LocalMatch_HEM(), Moc_Global_CreateCoarseGraph(), Moc_Global_Partition(), Moc_GlobalMatch_Balance(), Moc_KWayAdaptiveRefine(), Moc_KWayBalance(), Moc_KWayFM(), Moc_MoveGraph(), Moc_SetUpGraph(), Order_Partition(), ParallelTotalVReMap(), ParMETIS_V3_AdaptiveRepart(), ParMETIS_V3_PartGeomKway(), ParMETIS_V3_PartKway(), ParMETIS_V3_PartMeshKway(), ParMETIS_V3_RefineKway(), and SetUp().
| void* GKmalloc | ( | int | nbytes, | |
| char * | msg | |||
| ) |
| void GKfree | ( | void ** | ptr1, | |
| ... | ||||
| ) |
Definition at line 186 of file util.c.
Referenced by ismalloc(), Mc_Local_CreateCoarseGraph(), Moc_Diffusion(), Moc_DynamicSelectQueue(), Moc_Global_CreateCoarseGraph(), and ParMETIS_V3_Mesh2Dual().
Definition at line 200 of file util.c.
Referenced by Balance_Partition(), BalanceMyLink(), Bnd2WayBalance(), CompressGraph(), Compute2WayNodePartitionParams(), Compute2WayPartitionParams(), ComputeKWayBalanceBoundary(), ComputeKWayBoundary(), ComputeKWayPartitionParams(), ComputeKWayVolGains(), ComputePartitionBalance(), ComputePartitionInfo(), ComputePartitionInfoBipartite(), ComputeSubDomainGraph(), ComputeVolKWayBalanceBoundary(), ComputeVolKWayBoundary(), ComputeVolKWayPartitionParams(), ComputeVolSubDomainGraph(), ConstructMinCoverSeparator(), ConstructMinCoverSeparator0(), CreateCoarseGraph(), CreateCoarseGraph_NVW(), CreateCoarseGraphNoMask(), CSR_Match_SHEM(), EliminateComponents(), EliminateSubDomainEdges(), EliminateVolComponents(), EliminateVolSubDomainEdges(), ExtractGraph(), FindVtxPerm(), FM_2WayEdgeRefine(), FM_2WayNodeBalance(), FM_2WayNodeRefine(), FM_2WayNodeRefine2(), FM_2WayNodeRefineEqWgt(), FPQueueInit(), FPQueueReset(), General2WayBalance(), Greedy_KWayEdgeBalance(), Greedy_KWayEdgeBalanceMConn(), Greedy_KWayEdgeRefine(), Greedy_KWayVolBalance(), Greedy_KWayVolBalanceMConn(), GrowBisection(), GrowBisectionNode(), idxsmalloc(), LabelSeparators(), Match_HEM(), Match_RM(), Match_RM_NVW(), Match_SHEM(), Mc_LocalMatch_HEM(), MCGreedy_KWayEdgeBalanceHorizontal(), MCMatch_HEM(), MCMatch_RM(), MCMatch_SBHEM(), MCMatch_SHEBM(), MCMatch_SHEM(), METIS_NodeNDP(), METIS_PartMeshDual(), METIS_PartMeshNodal(), Moc_Diffusion(), Moc_Global_CreateCoarseGraph(), Moc_Serial_Balance2Way(), Moc_Serial_Compute2WayPartitionParams(), Moc_Serial_FM_2WayRefine(), MocCompute2WayPartitionParams(), MocComputeKWayBalanceBoundary(), MocComputeKWayPartitionParams(), MocFM_2WayEdgeRefine(), MocFM_2WayEdgeRefine2(), MocGeneral2WayBalance(), MocGeneral2WayBalance2(), MocGrowBisection(), MocGrowBisection2(), MocGrowBisectionNew2(), MocInit2WayBalance2(), MocProject2WayPartition(), MocProjectKWayPartition(), MultilevelOrder(), ParallelReMapGraph(), ParallelTotalVReMap(), ParMETIS_V3_AdaptiveRepart(), ParMETIS_V3_Mesh2Dual(), ParMETIS_V3_PartGeom(), ParMETIS_V3_PartGeomKway(), ParMETIS_V3_PartKway(), ParMETIS_V3_RefineKway(), PartSort(), PQueueInit(), PQueueReset(), Project2WayPartition(), ProjectInfoBack(), ProjectKWayPartition(), ProjectVolKWayPartition(), PruneGraph(), RandomBisection(), RedoMyLink(), SetUp(), SetUpConnectGraph(), SetUpGraph(), SplitGraphOrder(), SplitGraphOrderCC(), VolSetUpGraph(), and WavefrontDiffusion().
Definition at line 215 of file util.c.
References max().
Referenced by Bnd2WayBalance(), ComputeElementBalance(), ComputePartitionBalance(), ComputePartitionInfo(), ComputePartitionInfoBipartite(), ComputeVolume(), EliminateSubDomainEdges(), EliminateVolSubDomainEdges(), FM_2WayEdgeRefine(), General2WayBalance(), Greedy_KWayEdgeBalance(), Greedy_KWayEdgeBalanceMConn(), Greedy_KWayEdgeRefine(), Greedy_KWayVolBalance(), Greedy_KWayVolBalanceMConn(), Mc_ComputeMoveStatistics(), MCGreedy_KWayEdgeBalanceHorizontal(), Order_Partition(), ParallelTotalVReMap(), ParMETIS_V3_Mesh2Dual(), Random_KWayEdgeRefine(), Random_KWayEdgeRefineMConn(), Random_KWayVolRefine(), Random_KWayVolRefineMConn(), SetUpMesh(), and WavefrontDiffusion().
Definition at line 229 of file util.c.
References min().
Referenced by ComputePartitionInfo(), ComputePartitionInfoBipartite(), Greedy_KWayEdgeBalance(), Greedy_KWayEdgeBalanceMConn(), Greedy_KWayEdgeRefine(), Greedy_KWayVolBalance(), Greedy_KWayVolBalanceMConn(), ParMETIS_V3_Mesh2Dual(), Random_KWayEdgeRefine(), Random_KWayEdgeRefineMConn(), Random_KWayVolRefine(), Random_KWayVolRefineMConn(), SetUpMesh(), and WavefrontDiffusion().
Definition at line 243 of file util.c.
Referenced by Adaptive_Partition(), Coarsen2Way(), CompactGraph(), Compute2WayPartitionParams(), ComputeElementBalance(), ComputePartitionBalance(), ComputePartitionInfo(), ComputePartitionInfoBipartite(), CreateCoarseGraph(), CreateCoarseGraph_NVW(), CreateCoarseGraphNoMask(), EliminateComponents(), EliminateSubDomainEdges(), EliminateVolComponents(), EliminateVolSubDomainEdges(), FM_2WayNodeBalance(), Greedy_KWayEdgeBalance(), Greedy_KWayEdgeBalanceMConn(), Greedy_KWayEdgeRefine(), Greedy_KWayVolBalance(), Greedy_KWayVolBalanceMConn(), GrowBisection(), GrowBisectionNode(), IsBalanced(), Mc_ComputeMoveStatistics(), MCCoarsen2Way(), METIS_EdgeComputeSeparator(), METIS_EdgeND(), METIS_NodeComputeSeparator(), METIS_NodeND(), METIS_NodeNDP(), METIS_NodeWND(), METIS_WPartGraphKway(), METIS_WPartGraphKway2(), METIS_WPartGraphRecursive(), METIS_WPartGraphVKway(), MlevelNestedDissection(), MlevelNestedDissectionCC(), MlevelNestedDissectionP(), MlevelRecursiveBisection(), Moc_Diffusion(), Moc_Global_CreateCoarseGraph(), MocGrowBisection(), MocGrowBisection2(), MocGrowBisectionNew2(), MocRandomBisection(), ParMETIS_V3_AdaptiveRepart(), ParMETIS_V3_RefineKway(), Random_KWayEdgeRefine(), Random_KWayEdgeRefineMConn(), Random_KWayVolRefine(), Random_KWayVolRefineMConn(), RandomBisection(), RedoMyLink(), and SerialRemap().
Definition at line 284 of file util.c.
Referenced by BetterBalance(), ConjGrad2(), and Serial_BetterBalance().
| void ikeyvalsort_org | ( | int | n, | |
| KeyValueType * | nodes | |||
| ) |
| int IncKeyValueCmp | ( | const void * | v1, | |
| const void * | v2 | |||
| ) |
Definition at line 340 of file util.c.
References KeyValueType::key, n1, n2, and KeyValueType::val.
Referenced by ikeyvalsort_org().
| void dkeyvalsort | ( | int | n, | |
| KeyValueType * | nodes | |||
| ) |
| int DecKeyValueCmp | ( | const void * | v1, | |
| const void * | v2 | |||
| ) |
Definition at line 364 of file util.c.
References KeyValueType::key, n1, and n2.
Referenced by dkeyvalsort().
Definition at line 410 of file util.c.
Referenced by Bnd2WayBalance(), EstimateCFraction(), FastRandomPermute(), FM_2WayEdgeRefine(), FM_2WayNodeBalance(), FM_2WayNodeRefine(), FM_2WayNodeRefine2(), FM_2WayNodeRefine_OneSided(), FM_2WayNodeRefineEqWgt(), General2WayBalance(), Greedy_KWayEdgeBalance(), Greedy_KWayEdgeBalanceMConn(), Greedy_KWayEdgeRefine(), Greedy_KWayVolBalance(), Greedy_KWayVolBalanceMConn(), Match_HEM(), Match_RM(), Match_RM_NVW(), Match_SHEM(), MCGreedy_KWayEdgeBalanceHorizontal(), MCMatch_HEM(), MCMatch_RM(), MCMatch_SBHEM(), MCMatch_SHEBM(), MCMatch_SHEM(), MCRandom_KWayEdgeRefineHorizontal(), Moc_GlobalMatch_Balance(), Moc_KWayAdaptiveRefine(), Moc_KWayBalance(), Moc_KWayFM(), MocFM_2WayEdgeRefine(), MocFM_2WayEdgeRefine2(), MocGeneral2WayBalance(), MocGeneral2WayBalance2(), MocInit2WayBalance(), MocInit2WayBalance2(), MocRandomBisection(), Random_KWayEdgeRefine(), Random_KWayEdgeRefineMConn(), Random_KWayVolRefine(), Random_KWayVolRefineMConn(), RandomBisection(), RedoMyLink(), and SplitGraphOrderCC().
Definition at line 433 of file util.c.
References RandomPermute().
Referenced by Mc_LocalMatch_HEM(), Moc_GlobalMatch_Balance(), Moc_KWayAdaptiveRefine(), Moc_KWayBalance(), Moc_KWayFM(), and WavefrontDiffusion().
Definition at line 462 of file util.c.
Referenced by ParMETIS_SerialNodeND(), and ParMETIS_V3_NodeND().
Definition at line 471 of file util.c.
Referenced by METIS_mCPartGraphKway(), METIS_WPartGraphKway(), and METIS_WPartGraphVKway().
Definition at line 483 of file util.c.
Referenced by BalanceMyLink(), CheckInputs(), ComputeLoad(), fsmalloc(), Moc_ComputeParallelBalance(), Moc_ComputePartitionBalance(), Moc_ComputePartitionParams(), Moc_ComputeSerialPartitionParams(), Moc_Diffusion(), Moc_KWayAdaptiveRefine(), Moc_KWayFM(), Moc_Serial_Compute2WayPartitionParams(), MocCompute2WayPartitionParams(), MocComputeKWayPartitionParams(), PartitionSmallGraph(), RedoMyLink(), and WavefrontDiffusion().
Definition at line 498 of file util.c.
References max().
Referenced by METIS_PartMeshDual(), and METIS_PartMeshNodal().
Definition at line 512 of file util.c.
References max().
Referenced by Moc_Diffusion(), and Moc_Global_Partition().
Definition at line 560 of file util.c.
References max().
Referenced by ComputePartitionInfo(), and ComputePartitionInfoBipartite().
Definition at line 605 of file util.c.
Referenced by Adaptive_Partition(), BalanceMyLink(), Moc_Diffusion(), Moc_Global_Partition(), Moc_KWayAdaptiveRefine(), Moc_KWayBalance(), Moc_KWayFM(), and RedoMyLink().
Definition at line 620 of file util.c.
References max().
Referenced by MCGreedy_KWayEdgeBalanceHorizontal(), MCRandom_KWayEdgeRefineHorizontal(), Moc_ComputePartitionBalance(), Moc_Diffusion(), Moc_Serial_Balance2Way(), Moc_Serial_FM_2WayRefine(), Moc_Serial_Init2WayBalance(), MocFM_2WayEdgeRefine(), MocFM_2WayEdgeRefine2(), MocGeneral2WayBalance(), MocGeneral2WayBalance2(), MocInit2WayBalance(), MocInit2WayBalance2(), MocRandomBisection(), and WavefrontDiffusion().
Definition at line 652 of file util.c.
Referenced by Moc_Serial_Balance2Way(), and MocGeneral2WayBalance().
Definition at line 681 of file util.c.
References min().
Referenced by MCGreedy_KWayEdgeBalanceHorizontal(), MCRandom_KWayEdgeRefineHorizontal(), and Moc_Diffusion().
Definition at line 695 of file util.c.
Referenced by ComputePartitionInfo(), ComputePartitionInfoBipartite(), SetUpGraph(), and VolSetUpGraph().
Definition at line 720 of file util.c.
Referenced by Balance_Partition(), ComputeLoad(), MCMlevelRecursiveBisection2(), MlevelRecursiveBisection(), Moc_ComputePartitionBalance(), Moc_InitPartition_RB(), and WavefrontDiffusion().
Definition at line 734 of file util.c.
Referenced by MCCoarsen2Way(), Moc_ComputeRefineStats(), and Moc_Global_Partition().
Definition at line 748 of file util.c.
Referenced by Balance_Partition(), MCMlevelRecursiveBisection2(), MlevelRecursiveBisection(), and Moc_InitPartition_RB().
| int myvalkeycompare | ( | const void * | fptr, | |
| const void * | sptr | |||
| ) |
Definition at line 889 of file util.c.
References KVType::val.
Referenced by CSR_Match_SHEM(), Moc_DynamicSelectQueue(), and Moc_HashVwgts().
| int imyvalkeycompare | ( | const void * | fptr, | |
| const void * | sptr | |||
| ) |
Definition at line 928 of file util.c.
References GKmalloc(), and sset().
Referenced by Balance_Partition(), Moc_InitPartition_RB(), and ParMETIS_V3_NodeND().
Definition at line 940 of file util.c.
Referenced by Moc_ComputeSerialPartitionParams(), Moc_Serial_Balance2Way(), Moc_Serial_Compute2WayPartitionParams(), Moc_Serial_FM_2WayRefine(), Moc_Serial_Init2WayBalance(), and Moc_SerialKWayAdaptRefine().
1.5.5