more specific style matching for kspace
This commit is contained in:
@ -223,7 +223,7 @@ void VerletSplit::init()
|
||||
if (!force->kspace && comm->me == 0)
|
||||
error->warning(FLERR,"No Kspace calculation with verlet/split");
|
||||
|
||||
if (force->kspace_match("tip4p",0)) tip4p_flag = 1;
|
||||
if (force->kspace_match("/tip4p",0)) tip4p_flag = 1;
|
||||
else tip4p_flag = 0;
|
||||
|
||||
// currently TIP4P does not work with verlet/split, so generate error
|
||||
|
||||
@ -66,7 +66,7 @@ void VerletLRTIntel::init()
|
||||
{
|
||||
Verlet::init();
|
||||
|
||||
_intel_kspace = (PPPMIntel*)(force->kspace_match("pppm/intel", 0));
|
||||
_intel_kspace = (PPPMIntel*)(force->kspace_match("^pppm/intel", 0));
|
||||
|
||||
#ifndef LMP_INTEL_USELRT
|
||||
error->all(FLERR,
|
||||
|
||||
@ -35,6 +35,7 @@
|
||||
#include "output.h"
|
||||
#include "memory.h"
|
||||
#include "error.h"
|
||||
#include "utils.h"
|
||||
|
||||
#ifdef LMP_USER_OMP
|
||||
#include "modify.h"
|
||||
@ -101,7 +102,7 @@ void Finish::end(int flag)
|
||||
if (update->whichflag == 1 &&
|
||||
strncmp(update->integrate_style,"verlet/split",12) == 0 &&
|
||||
universe->iworld == 1) neighflag = 0;
|
||||
if (force->kspace && force->kspace_match("pppm",0)
|
||||
if (force->kspace && force->kspace_match("^pppm",0)
|
||||
&& force->kspace->fftbench) fftflag = 1;
|
||||
}
|
||||
if (flag == 2) prdflag = timeflag = histoflag = neighflag = 1;
|
||||
|
||||
Reference in New Issue
Block a user