Repair all MPI-driven parallel executables
This commit is contained in:
@@ -81,6 +81,17 @@ $(OBJ_DIR)/%.o: %.$(SRC_EXT)
|
||||
$(LIB_DIR)/lib$(VERSION).a : $(OBJECTS)
|
||||
ar -cr $(LIB_DIR)/lib$(VERSION).a $(OBJECTS)
|
||||
|
||||
|
||||
###########################################
|
||||
# Parallel version
|
||||
|
||||
.PHONE: parallel
|
||||
parallel : $(EXECUTABLES_PAR)
|
||||
|
||||
$(EXECUTABLES_PAR): $(BIN_DIR)/%: $(SRC_DIR)/EXECS/%.$(SRC_EXT) $(LIB_DIR)/lib$(VERSION).a
|
||||
$(COMPILE_MPI) $< -o $@ -l$(VERSION)
|
||||
|
||||
|
||||
###########################################
|
||||
# Cleanup
|
||||
|
||||
@@ -89,6 +100,7 @@ clean :
|
||||
/bin/rm -f $(OBJECTS)
|
||||
/bin/rm -f $(LIB_DIR)/lib$(VERSION).a
|
||||
/bin/rm -f $(EXECUTABLES)
|
||||
/bin/rm -f $(EXECUTABLES_PAR)
|
||||
|
||||
|
||||
###########################################
|
||||
|
||||
@@ -15,6 +15,7 @@ Purpose: Parallel version of ABACUS using MPICH.
|
||||
#include "ABACUS.h"
|
||||
#include "mpi.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace ABACUS;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
@@ -15,6 +15,7 @@ Purpose: Parallel version of ABACUS using MPICH.
|
||||
#include "ABACUS.h"
|
||||
//#include "mpi.h" // not needed for Prepare
|
||||
|
||||
using namespace std;
|
||||
using namespace ABACUS;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
||||
@@ -15,6 +15,7 @@ Purpose: Parallel version of ABACUS using MPICH.
|
||||
#include "ABACUS.h"
|
||||
#include "mpi.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace ABACUS;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
||||
@@ -14,6 +14,7 @@ Purpose: Parallel version of ABACUS using MPICH.
|
||||
|
||||
#include "ABACUS.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace ABACUS;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
||||
@@ -15,6 +15,7 @@ Purpose: Parallel version of ABACUS using MPICH.
|
||||
#include "ABACUS.h"
|
||||
//#include "mpi.h" // not needed for Prepare
|
||||
|
||||
using namespace std;
|
||||
using namespace ABACUS;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
||||
@@ -15,6 +15,7 @@ Purpose: Parallel version of ABACUS using MPICH.
|
||||
#include "ABACUS.h"
|
||||
#include "mpi.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace ABACUS;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
||||
@@ -15,6 +15,7 @@ Purpose: Parallel version of ABACUS using MPICH.
|
||||
#include "ABACUS.h"
|
||||
//#include "mpi.h" // not needed for Prepare
|
||||
|
||||
using namespace std;
|
||||
using namespace ABACUS;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
||||
@@ -15,6 +15,7 @@ Purpose: Parallel version of ABACUS using MPICH.
|
||||
#include "ABACUS.h"
|
||||
//#include "mpi.h" // not needed for Prepare
|
||||
|
||||
using namespace std;
|
||||
using namespace ABACUS;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
||||
@@ -15,6 +15,7 @@ Purpose: Parallel version of ABACUS using MPICH.
|
||||
#include "ABACUS.h"
|
||||
#include "mpi.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace ABACUS;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
||||
@@ -15,6 +15,7 @@ Purpose: Parallel version of ABACUS using MPICH.
|
||||
#include "ABACUS.h"
|
||||
//#include "mpi.h" // not needed for Prepare
|
||||
|
||||
using namespace std;
|
||||
using namespace ABACUS;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
||||
@@ -15,6 +15,7 @@ Purpose: Parallel version of ABACUS using MPICH.
|
||||
#include "ABACUS.h"
|
||||
//#include "mpi.h" // not needed for Prepare
|
||||
|
||||
using namespace std;
|
||||
using namespace ABACUS;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
||||
@@ -15,6 +15,7 @@ Purpose: Parallel version of ABACUS using MPICH.
|
||||
#include "ABACUS.h"
|
||||
#include "mpi.h"
|
||||
|
||||
using namespace std;
|
||||
using namespace ABACUS;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
||||
@@ -15,6 +15,7 @@ Purpose: Parallel version of ABACUS using MPICH.
|
||||
#include "ABACUS.h"
|
||||
//#include "mpi.h" // not needed for Prepare or Wrapup
|
||||
|
||||
using namespace std;
|
||||
using namespace ABACUS;
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
|
||||
Reference in New Issue
Block a user