Skip to content

Commit

Permalink
IOSS: Reduce storage potentially; fix zoltan free call
Browse files Browse the repository at this point in the history
  • Loading branch information
gdsjaar committed Jun 10, 2024
1 parent 283ebaf commit a0a76cf
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/seacas/libraries/ioss/src/Ioss_DecompositionUtils.C
Original file line number Diff line number Diff line change
Expand Up @@ -229,23 +229,32 @@ namespace Ioss {
Zoltan_Data.vwgt = const_cast<float *>(Data(weights));

if (ignore_x && ignore_y) {
x.clear();
y.clear();
Zoltan_Data.x = Data(z);
}
else if (ignore_x && ignore_z) {
x.clear();
z.clear();
Zoltan_Data.x = Data(y);
}
else if (ignore_y && ignore_z) {
y.clear();
z.clear();
Zoltan_Data.x = Data(x);
}
else if (ignore_x) {
x.clear();
Zoltan_Data.x = Data(y);
Zoltan_Data.y = Data(z);
}
else if (ignore_y) {
y.clear();
Zoltan_Data.x = Data(x);
Zoltan_Data.y = Data(z);
}
else if (ignore_z) {
z.clear();
Zoltan_Data.x = Data(x);
Zoltan_Data.y = Data(y);
}
Expand Down Expand Up @@ -322,7 +331,7 @@ namespace Ioss {

End:
/* Clean up */
Zoltan::LB_Free_Part(&export_global_ids, &export_local_ids, &export_procs, &export_to_part);
Zoltan::LB_Free_Part(&import_global_ids, &import_local_ids, &import_procs, &import_to_part);
Zoltan::LB_Free_Part(&export_global_ids, &export_local_ids, &export_procs, &export_to_part);
#endif
}
Expand Down

0 comments on commit a0a76cf

Please sign in to comment.