git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13931 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
16
src/main.cpp
16
src/main.cpp
@ -14,7 +14,7 @@
|
||||
#include "mpi.h"
|
||||
#include "lammps.h"
|
||||
#include "input.h"
|
||||
#include "string.h"
|
||||
#include "stdio.h"
|
||||
|
||||
using namespace LAMMPS_NS;
|
||||
|
||||
@ -26,10 +26,18 @@ int main(int argc, char **argv)
|
||||
{
|
||||
MPI_Init(&argc,&argv);
|
||||
|
||||
LAMMPS *lammps = new LAMMPS(argc,argv,MPI_COMM_WORLD);
|
||||
try {
|
||||
LAMMPS *lammps = new LAMMPS(argc,argv,MPI_COMM_WORLD);
|
||||
|
||||
lammps->input->file();
|
||||
delete lammps;
|
||||
lammps->input->file();
|
||||
delete lammps;
|
||||
}
|
||||
|
||||
catch(...) {
|
||||
int me;
|
||||
MPI_Comm_rank(MPI_COMM_WORLD,&me);
|
||||
fprintf(stderr,"Unknown exception caught on rank %d\n",me);
|
||||
}
|
||||
|
||||
MPI_Barrier(MPI_COMM_WORLD);
|
||||
MPI_Finalize();
|
||||
|
||||
Reference in New Issue
Block a user