Cloned SEACAS for EXODUS library with extra build files for internal package management.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

22 lines
834 B

/*
* Copyright(C) 1999-2020 National Technology & Engineering Solutions
* of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
* NTESS, the U.S. Government retains certain rights in this software.
*
* See packages/seacas/LICENSE for details
*/
/* Combine the old assignment value with the new partition. */
void merge_assignments(int *assignment, /* assignment list for graph */
int *subassign, /* subgraph assignment list */
int *subsets, /* mapping from local to global sets */
int subnvtxs, /* number of vtxs in subgraph */
int *loc2glob /* subgraph -> graph numbering map */
)
{
int i; /* loop counter */
for (i = 1; i <= subnvtxs; i++) {
assignment[loc2glob[i]] = subsets[subassign[i]];
}
}