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

This commit is contained in:
sjplimp 2011-09-19 22:49:18 +00:00
parent 57b20547cd
commit 4e7b605fa1
2 changed files with 7 additions and 7 deletions

View File

@ -28,17 +28,17 @@ namespace GPU_EXTRA {
MPI_Allreduce(&error_flag, &all_success, 1, MPI_INT, MPI_MIN, world);
if (all_success != 0) {
if (all_success == -1)
error->all("Accelerated style in input script but no fix gpu.");
error->all("Accelerated style in input script but no fix gpu");
else if (all_success == -2)
error->all("Could not find/initialize a specified accelerator device.");
error->all("Could not find/initialize a specified accelerator device");
else if (all_success == -3)
error->all("Insufficient memory on accelerator.");
error->all("Insufficient memory on accelerator");
else if (all_success == -4)
error->all("GPU library not compiled for this accelerator.");
error->all("GPU library not compiled for this accelerator");
else if (all_success == -5)
error->all("Double precision is not supported on this accelerator.");
error->all("Double precision is not supported on this accelerator");
else
error->all("Unknown error in GPU library.");
error->all("Unknown error in GPU library");
}
}

View File

@ -16,7 +16,7 @@
// every LAMMPS class inherits from Pointers to access lammps.h ptrs
// these variables are auto-initialized by Pointer class constructor
// *& variables are really pointers to the pointers in lammps.h
// & enables them to be accessed directly in any class, e.g. error->all()
// & enables them to be accessed directly in any class, e.g. atom->x
#ifndef LMP_POINTERS_H
#define LMP_POINTERS_H