Commit 2fbc4f50 authored by Stan Moore's avatar Stan Moore
Browse files

Per-atom virial is not yet supported with pppm/dipole

parent 95ab0565
Loading
Loading
Loading
Loading
+1 −2
Original line number Original line Diff line number Diff line
@@ -12,8 +12,7 @@
------------------------------------------------------------------------- */
------------------------------------------------------------------------- */


/* ----------------------------------------------------------------------
/* ----------------------------------------------------------------------
   Contributing authors: Julien Tranchida (SNL)
   Contributing authors: Julien Tranchida (SNL), Stan Moore (SNL)
   			 Stan Moore (SNL)
------------------------------------------------------------------------- */
------------------------------------------------------------------------- */


#include <mpi.h>
#include <mpi.h>
+0 −1
Original line number Original line Diff line number Diff line
@@ -13,7 +13,6 @@


/* ----------------------------------------------------------------------
/* ----------------------------------------------------------------------
   Contributing authors: Julien Tranchida (SNL)
   Contributing authors: Julien Tranchida (SNL)
   			 Stan Moore (SNL)
------------------------------------------------------------------------- */
------------------------------------------------------------------------- */


#include <mpi.h>
#include <mpi.h>
+5 −2
Original line number Original line Diff line number Diff line
@@ -12,8 +12,7 @@
------------------------------------------------------------------------- */
------------------------------------------------------------------------- */


/* ----------------------------------------------------------------------
/* ----------------------------------------------------------------------
   Contributing author: Stan Moore (SNL)
   Contributing authors: Stan Moore (SNL), Julien Tranchida (SNL)
   			Julien Tranchida (SNL)
------------------------------------------------------------------------- */
------------------------------------------------------------------------- */


#include <mpi.h>
#include <mpi.h>
@@ -441,6 +440,10 @@ void PPPMDipole::compute(int eflag, int vflag)
  else evflag = evflag_atom = eflag_global = vflag_global =
  else evflag = evflag_atom = eflag_global = vflag_global =
         eflag_atom = vflag_atom = 0;
         eflag_atom = vflag_atom = 0;


  if (vflag_atom)
    error->all(FLERR,"Cannot (yet) compute per-atom virial "
                       "with kspace style pppm/dipole"

  if (evflag_atom && !peratom_allocate_flag) {
  if (evflag_atom && !peratom_allocate_flag) {
    allocate_peratom();
    allocate_peratom();
    cg_peratom_dipole->ghost_notify();
    cg_peratom_dipole->ghost_notify();
+4 −0
Original line number Original line Diff line number Diff line
@@ -160,6 +160,10 @@ E: PPPM grid stencil extends beyond nearest neighbor processor


This is not allowed if the kspace_modify overlap setting is no.
This is not allowed if the kspace_modify overlap setting is no.


E: Cannot (yet) compute per-atom virial with kspace style pppm/dipole

This feature is not yet supported.

E: KSpace accuracy must be > 0
E: KSpace accuracy must be > 0


The kspace accuracy designated in the input must be greater than zero.
The kspace accuracy designated in the input must be greater than zero.
+5 −2
Original line number Original line Diff line number Diff line
@@ -12,8 +12,7 @@
------------------------------------------------------------------------- */
------------------------------------------------------------------------- */


/* ----------------------------------------------------------------------
/* ----------------------------------------------------------------------
   Contributing author: Stan Moore (SNL)
   Contributing author: Julien Tranchida (SNL)
   			Julien Tranchida (SNL)
------------------------------------------------------------------------- */
------------------------------------------------------------------------- */


#include <mpi.h>
#include <mpi.h>
@@ -300,6 +299,10 @@ void PPPMDipoleSpin::compute(int eflag, int vflag)
  else evflag = evflag_atom = eflag_global = vflag_global =
  else evflag = evflag_atom = eflag_global = vflag_global =
         eflag_atom = vflag_atom = 0;
         eflag_atom = vflag_atom = 0;


  if (vflag_atom)
    error->all(FLERR,"Cannot (yet) compute per-atom virial "
                       "with kspace style pppm/dipole/spin"

  if (evflag_atom && !peratom_allocate_flag) {
  if (evflag_atom && !peratom_allocate_flag) {
    allocate_peratom();
    allocate_peratom();
    cg_peratom_dipole->ghost_notify();
    cg_peratom_dipole->ghost_notify();
Loading