Skip to content

Commit

Permalink
sync with upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
akohlmey committed Mar 1, 2024
1 parent 63e206c commit 964865e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
7 changes: 0 additions & 7 deletions USER-REBOMOS/pair_rebomos.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1064,12 +1064,6 @@ void PairREBOMoS::read_file(char *filename)
rcLJmax[0][1] = 2.5*sigma[0][1];
rcLJmax[1][0] = rcLJmax[0][1];
rcLJmax[1][1] = 2.5*sigma[1][1];

rcLJmaxsq[0][0] = rcLJmax[0][0]*rcLJmax[0][0];
rcLJmaxsq[1][0] = rcLJmax[1][0]*rcLJmax[1][0];
rcLJmaxsq[0][1] = rcLJmax[0][1]*rcLJmax[0][1];
rcLJmaxsq[1][1] = rcLJmax[1][1]*rcLJmax[1][1];

}

// broadcast read-in and setup values
Expand Down Expand Up @@ -1108,7 +1102,6 @@ void PairREBOMoS::read_file(char *filename)

MPI_Bcast(&rcLJmin[0][0],4,MPI_DOUBLE,0,world);
MPI_Bcast(&rcLJmax[0][0],4,MPI_DOUBLE,0,world);
MPI_Bcast(&rcLJmaxsq[0][0],4,MPI_DOUBLE,0,world);
MPI_Bcast(&epsilon[0][0],4,MPI_DOUBLE,0,world);
MPI_Bcast(&sigma[0][0],4,MPI_DOUBLE,0,world);
}
Expand Down
8 changes: 2 additions & 6 deletions USER-REBOMOS/pair_rebomos.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ PairStyle(rebomos,PairREBOMoS);
#ifndef LMP_PAIR_REBOMOS_H
#define LMP_PAIR_REBOMOS_H

#include "pair.h"
#include "math_const.h"
#include "pair.h"

#include <cmath>

Expand All @@ -39,9 +39,6 @@ class PairREBOMoS : public Pair {
double memory_usage() override;

protected:
double cutljrebosq; // cut for when to compute
// REBO neighs of ghost atoms

double **lj1, **lj2, **lj3, **lj4; // pre-computed LJ coeffs for M,S types
double cut3rebo; // maximum distance for 3rd REBO neigh

Expand All @@ -52,15 +49,14 @@ class PairREBOMoS : public Pair {
int *REBO_numneigh; // # of pair neighbors for each atom
int **REBO_firstneigh; // ptr to 1st neighbor of each atom

double *closestdistsq; // closest owned atom dist to each ghost
double *nM, *nS; // sum of weighting fns with REBO neighs

double rcmin[2][2], rcmax[2][2], rcmaxsq[2][2], rcmaxp[2][2];
double Q[2][2], alpha[2][2], A[2][2], BIJc[2][2], Beta[2][2];
double b0[2], b1[2], b2[2], b3[2], b4[2], b5[2], b6[2];
double bg0[2], bg1[2], bg2[2], bg3[2], bg4[2], bg5[2], bg6[2];
double a0[2], a1[2], a2[2], a3[2];
double rcLJmin[2][2], rcLJmax[2][2], rcLJmaxsq[2][2];
double rcLJmin[2][2], rcLJmax[2][2];
double epsilon[2][2], sigma[2][2];

void REBO_neigh();
Expand Down

0 comments on commit 964865e

Please sign in to comment.