silence compiler warnings

This commit is contained in:
Axel Kohlmeyer
2024-07-28 11:49:27 -04:00
parent 5501f608f5
commit 26aba2c314
4 changed files with 8 additions and 8 deletions

View File

@ -52,12 +52,12 @@ int SWT::init(const int ntypes, const int nlocal, const int nall,
double ***costheta, const int *map, int ***e2param) { double ***costheta, const int *map, int ***e2param) {
_lj_types=ntypes; _lj_types=ntypes;
int oldparam=-1;
int onetype=-1; int onetype=-1;
int onetype3=0; int onetype3=0;
int spq=1; int spq=1;
int mtypes=0;
#ifdef USE_OPENCL #ifdef USE_OPENCL
int oldparam=-1;
int mtypes=0;
for (int ii=1; ii<ntypes; ii++) { for (int ii=1; ii<ntypes; ii++) {
int i=map[ii]; int i=map[ii];
if (i<0) continue; if (i<0) continue;

View File

@ -52,12 +52,12 @@ int TersoffT::init(const int ntypes, const int nlocal, const int nall, const int
const double* c, const double* d, const double* h, const double* gamma, const double* c, const double* d, const double* h, const double* gamma,
const double* beta, const double* powern, const double* host_cutsq) const double* beta, const double* powern, const double* host_cutsq)
{ {
int oldparam=-1;
int onetype=-1; int onetype=-1;
int onetype3=0; int onetype3=0;
int spq=0; int spq=0;
int mtypes=0;
#ifdef USE_OPENCL #ifdef USE_OPENCL
int oldparam=-1;
int mtypes=0;
for (int ii=1; ii<ntypes; ii++) { for (int ii=1; ii<ntypes; ii++) {
const int i=host_map[ii]; const int i=host_map[ii];
for (int jj=1; jj<ntypes; jj++) { for (int jj=1; jj<ntypes; jj++) {

View File

@ -52,11 +52,11 @@ int TersoffMT::init(const int ntypes, const int nlocal, const int nall, const in
const double* c5, const double* h, const double* beta, const double* powern, const double* c5, const double* h, const double* beta, const double* powern,
const double* powern_del, const double* ca1, const double* host_cutsq) const double* powern_del, const double* ca1, const double* host_cutsq)
{ {
int oldparam=-1;
int onetype=-1; int onetype=-1;
int onetype3=0; int onetype3=0;
int mtypes=0;
#ifdef USE_OPENCL #ifdef USE_OPENCL
int oldparam=-1;
int mtypes=0;
for (int ii=1; ii<ntypes; ii++) { for (int ii=1; ii<ntypes; ii++) {
const int i=host_map[ii]; const int i=host_map[ii];
for (int jj=1; jj<ntypes; jj++) { for (int jj=1; jj<ntypes; jj++) {

View File

@ -59,11 +59,11 @@ int TersoffZT::init(const int ntypes, const int nlocal, const int nall,
const double global_a_0, const double global_epsilon_0, const double global_a_0, const double global_epsilon_0,
const double* host_cutsq) const double* host_cutsq)
{ {
int oldparam=-1;
int onetype=-1; int onetype=-1;
int onetype3=0; int onetype3=0;
int mtypes=0;
#ifdef USE_OPENCL #ifdef USE_OPENCL
int oldparam=-1;
int mtypes=0;
for (int ii=1; ii<ntypes; ii++) { for (int ii=1; ii<ntypes; ii++) {
const int i=host_map[ii]; const int i=host_map[ii];
for (int jj=1; jj<ntypes; jj++) { for (int jj=1; jj<ntypes; jj++) {