Skip to content
Snippets Groups Projects
Commit a62b6509 authored by Steven J. Plimpton's avatar Steven J. Plimpton
Browse files

more error checks for Scafacos usage

parent b0c9fde1
No related branches found
No related tags found
No related merge requests found
RENE - there needs to be a README like the one
for lib/voronoi/README, explaining how
to grab the correct version of Scafacos.
And how to build, either via traditional make
and the Install.py script, or via CMake
......@@ -77,6 +77,8 @@ void Scafacos::init()
{
// error checks
if (!atom->q_flag) error->all(FLERR,"Kspace style requires atom attribute q");
if (domain->dimension == 2)
error->all(FLERR,"Cannot use ScaFaCoS with 2d simulation");
......@@ -86,6 +88,9 @@ void Scafacos::init()
if (atom->natoms > INT_MAX && sizeof(fcs_int) != 8)
error->all(FLERR,"Scafacos atom count exceeds 2B");
if (atom->molecular > 0)
error->all(FLERR,"Cannot use Scafacos with molecular charged systems yet");
// one-time initialization of ScaFaCoS
scale = 1.0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment