Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: simplified Parallel_2d interface #4237

Merged
merged 12 commits into from
May 30, 2024
Prev Previous commit
Next Next commit
compromise to pyabacus compilation
jinzx10 committed May 28, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit abc15a4dcba6b4c44e584d38ff9cf34403fc360e
10 changes: 6 additions & 4 deletions source/module_base/blacs_connector.h
Original file line number Diff line number Diff line change
@@ -29,9 +29,6 @@
#ifndef BLACS_CONNECTOR_H
#define BLACS_CONNECTOR_H

#ifdef __MPI
#include <mpi.h>

extern "C"
{
void Cblacs_pinfo(int *myid, int *nprocs);
@@ -44,9 +41,14 @@ extern "C"
int Cblacs_pnum(int icontxt, int prow, int pcol);
void Cblacs_pcoord(int icontxt, int pnum, int *prow, int *pcol);
void Cblacs_exit(int icontxt);
int Csys2blacs_handle(MPI_Comm SysCtxt);
}

#ifdef __MPI
#include <mpi.h>
extern "C"
{
int Csys2blacs_handle(MPI_Comm SysCtxt);
}
#endif // __MPI

#endif