Skip to content

Commit

Permalink
cgns: support spack install
Browse files Browse the repository at this point in the history
see #391
  • Loading branch information
cwsmith committed Aug 24, 2024
1 parent 3e9f07b commit 4aa2326
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions apf/apfCGNS.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1051,11 +1051,11 @@ void WriteCGNS(const char *prefix, apf::Mesh *m, const apf::CGNSBCMap &cgnsBCMap
auto communicator = PCU_Get_Comm();
cgp_mpi_comm(communicator);
//
cgp_pio_mode(CGNS_ENUMV(CGP_INDEPENDENT));
cgp_pio_mode(CGP_INDEPENDENT);

CGNS cgns;
cgns.fname = std::string(prefix);
if (cgp_open(prefix, CGNS_ENUMV(CG_MODE_WRITE), &cgns.index))
if (cgp_open(prefix, CG_MODE_WRITE, &cgns.index))
cgp_error_exit();

{
Expand Down
4 changes: 2 additions & 2 deletions mds/mdsCGNS.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1056,8 +1056,8 @@ apf::Mesh2 *DoIt(gmi_model *g, const std::string &fname, apf::CGNSBCMap &cgnsBCM
int cgid = -1;
auto comm = PCU_Get_Comm();
cgp_mpi_comm(comm);
cgp_pio_mode(CGNS_ENUMV(CGP_INDEPENDENT));
cgp_open(fname.c_str(), CGNS_ENUMV(CG_MODE_READ), &cgid);
cgp_pio_mode(CGP_INDEPENDENT);
cgp_open(fname.c_str(), CG_MODE_READ, &cgid);

int nbases = -1;
cg_nbases(cgid, &nbases);
Expand Down

0 comments on commit 4aa2326

Please sign in to comment.