reduce compiler warnings
This commit is contained in:
@ -89,7 +89,7 @@ FixClientMD::~FixClientMD()
|
|||||||
|
|
||||||
int nfield;
|
int nfield;
|
||||||
int *fieldID,*fieldtype,*fieldlen;
|
int *fieldID,*fieldtype,*fieldlen;
|
||||||
int msgID = cs->recv(nfield,fieldID,fieldtype,fieldlen);
|
cs->recv(nfield,fieldID,fieldtype,fieldlen);
|
||||||
|
|
||||||
// clean-up
|
// clean-up
|
||||||
|
|
||||||
@ -173,8 +173,6 @@ void FixClientMD::min_setup(int vflag)
|
|||||||
|
|
||||||
void FixClientMD::post_force(int vflag)
|
void FixClientMD::post_force(int vflag)
|
||||||
{
|
{
|
||||||
int i,j,m;
|
|
||||||
|
|
||||||
// energy and virial setup
|
// energy and virial setup
|
||||||
|
|
||||||
if (vflag) v_setup(vflag);
|
if (vflag) v_setup(vflag);
|
||||||
@ -286,7 +284,7 @@ void FixClientMD::receive_fev(int vflag)
|
|||||||
int nfield;
|
int nfield;
|
||||||
int *fieldID,*fieldtype,*fieldlen;
|
int *fieldID,*fieldtype,*fieldlen;
|
||||||
|
|
||||||
int msgID = cs->recv(nfield,fieldID,fieldtype,fieldlen);
|
cs->recv(nfield,fieldID,fieldtype,fieldlen);
|
||||||
|
|
||||||
double *forces = (double *) cs->unpack(FORCES);
|
double *forces = (double *) cs->unpack(FORCES);
|
||||||
double **f = atom->f;
|
double **f = atom->f;
|
||||||
|
|||||||
@ -22,10 +22,6 @@
|
|||||||
using namespace LAMMPS_NS;
|
using namespace LAMMPS_NS;
|
||||||
using namespace CSLIB_NS;
|
using namespace CSLIB_NS;
|
||||||
|
|
||||||
// customize by adding a new server protocol enum
|
|
||||||
|
|
||||||
enum{MD,MC};
|
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
|
||||||
void Message::command(int narg, char **arg)
|
void Message::command(int narg, char **arg)
|
||||||
@ -38,12 +34,10 @@ void Message::command(int narg, char **arg)
|
|||||||
else error->all(FLERR,"Illegal message command");
|
else error->all(FLERR,"Illegal message command");
|
||||||
lmp->clientserver = clientserver;
|
lmp->clientserver = clientserver;
|
||||||
|
|
||||||
// customize by adding a new server protocol
|
// validate supported protocols
|
||||||
|
|
||||||
int protocol;
|
if ((strcmp(arg[1],"md") != 0) && (strcmp(arg[1],"mc") != 0))
|
||||||
if (strcmp(arg[1],"md") == 0) protocol = MD;
|
error->all(FLERR,"Unknown message protocol");
|
||||||
else if (strcmp(arg[1],"mc") == 0) protocol = MC;
|
|
||||||
else error->all(FLERR,"Unknown message protocol");
|
|
||||||
|
|
||||||
// instantiate CSlib with chosen communication mode
|
// instantiate CSlib with chosen communication mode
|
||||||
|
|
||||||
|
|||||||
@ -37,8 +37,8 @@ ServerMC::ServerMC(LAMMPS *lmp) : Pointers(lmp) {}
|
|||||||
|
|
||||||
void ServerMC::loop()
|
void ServerMC::loop()
|
||||||
{
|
{
|
||||||
int i,j,m;
|
int m;
|
||||||
double xold[3],xnew[3];
|
double xold[3];
|
||||||
tagint atomid;
|
tagint atomid;
|
||||||
|
|
||||||
CSlib *cs = (CSlib *) lmp->cslib;
|
CSlib *cs = (CSlib *) lmp->cslib;
|
||||||
|
|||||||
@ -78,7 +78,7 @@ ServerMD::~ServerMD()
|
|||||||
|
|
||||||
void ServerMD::loop()
|
void ServerMD::loop()
|
||||||
{
|
{
|
||||||
int i,j,m;
|
int j,m;
|
||||||
|
|
||||||
// cs = instance of CSlib
|
// cs = instance of CSlib
|
||||||
|
|
||||||
|
|||||||
@ -1225,7 +1225,7 @@ void Special::dihedral_trim()
|
|||||||
------------------------------------------------------------------------- */
|
------------------------------------------------------------------------- */
|
||||||
|
|
||||||
int Special::rendezvous_ids(int n, char *inbuf,
|
int Special::rendezvous_ids(int n, char *inbuf,
|
||||||
int &flag, int *&proclist, char *&outbuf,
|
int &flag, int *& /*proclist*/, char *& /*outbuf*/,
|
||||||
void *ptr)
|
void *ptr)
|
||||||
{
|
{
|
||||||
Special *sptr = (Special *) ptr;
|
Special *sptr = (Special *) ptr;
|
||||||
|
|||||||
Reference in New Issue
Block a user