git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@13931 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2015-08-21 22:55:12 +00:00
parent 63534501c2
commit 3841dd58ca
35 changed files with 140 additions and 81 deletions

View File

@ -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();