@@ -231,7 +231,7 @@ void Kill(PCU_t h, const int fid, Args &&... args)
231
231
{
232
232
cgp_close (fid);
233
233
// Finalize the MPI environment.
234
- PCU_Comm_Free (h);
234
+ PCU_Comm_Free (& h);
235
235
MPI_Finalize ();
236
236
cgp_error_exit ();
237
237
exit (EXIT_FAILURE);
@@ -252,7 +252,7 @@ void Kill(PCU_t h, const int fid)
252
252
{
253
253
cgp_close (fid);
254
254
// Finalize the MPI environment.
255
- PCU_Comm_Free (h);
255
+ PCU_Comm_Free (& h);
256
256
MPI_Finalize ();
257
257
cgp_error_exit ();
258
258
exit (EXIT_FAILURE);
@@ -1286,7 +1286,7 @@ apf::Mesh2 *DoIt(PCU_t h, gmi_model *g, const std::string &fname, apf::CGNSBCMap
1286
1286
};
1287
1287
1288
1288
// process meshData and find vectors (and matrices)
1289
- const auto findMatch = [&meshData, &index, &cgid](MeshData &other, std::vector<MeshDataGroup> &meshDataGroups) {
1289
+ const auto findMatch = [&meshData, &index, &cgid, &h ](MeshData &other, std::vector<MeshDataGroup> &meshDataGroups) {
1290
1290
MeshDataGroup group;
1291
1291
for (auto &md : meshData)
1292
1292
{
@@ -1723,12 +1723,6 @@ namespace apf
1723
1723
{
1724
1724
1725
1725
// caller needs to bring up and pull down mpi/pcu: mpi/pcu is required and assumed.
1726
- Mesh2 *loadMdsFromCGNS (gmi_model *g, const char *fname, apf::CGNSBCMap &cgnsBCMap, const std::vector<std::pair<std::string, std::string>> &meshData)
1727
- {
1728
- PCU_t h = PCU_Get_Global_Handle ();
1729
- return loadMdsFromCGNS (h, g, fname, cgnsBCMap, meshData);
1730
- }
1731
-
1732
1726
Mesh2 *loadMdsFromCGNS (PCU_t h, gmi_model *g, const char *fname, apf::CGNSBCMap &cgnsBCMap, const std::vector<std::pair<std::string, std::string>> &meshData)
1733
1727
{
1734
1728
#ifdef HAVE_CGNS
@@ -1744,12 +1738,6 @@ Mesh2 *loadMdsFromCGNS(PCU_t h, gmi_model *g, const char *fname, apf::CGNSBCMap
1744
1738
}
1745
1739
1746
1740
// caller needs to bring up and pull down mpi/pcu: mpi/pcu is required and assumed.
1747
- Mesh2 *loadMdsFromCGNS (gmi_model *g, const char *fname, apf::CGNSBCMap &cgnsBCMap)
1748
- {
1749
- PCU_t h = PCU_Get_Global_Handle ();
1750
- return loadMdsFromCGNS (h, g, fname, cgnsBCMap);
1751
- }
1752
-
1753
1741
Mesh2 *loadMdsFromCGNS (PCU_t h, gmi_model *g, const char *fname, apf::CGNSBCMap &cgnsBCMap)
1754
1742
{
1755
1743
#ifdef HAVE_CGNS
0 commit comments