From 776dc344117c776126a5310ececfcea336ddbfeb Mon Sep 17 00:00:00 2001 From: Stan Gerald Moore Date: Mon, 4 Apr 2022 12:27:42 -0600 Subject: [PATCH] Add missing vars --- src/OPENMP/fix_qeq_reaxff_omp.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/OPENMP/fix_qeq_reaxff_omp.cpp b/src/OPENMP/fix_qeq_reaxff_omp.cpp index ee9748d354..63dd28aa77 100644 --- a/src/OPENMP/fix_qeq_reaxff_omp.cpp +++ b/src/OPENMP/fix_qeq_reaxff_omp.cpp @@ -483,10 +483,10 @@ void FixQEqReaxFFOMP::sparse_matvec(sparse_matrix *A, double *x, double *b) { int i, j, itr_j; int ii; - int nthreads = comm->nthreads; int nlocal = atom->nlocal; int nall = atom->nlocal + atom->nghost; + int nthreads = comm->nthreads; #if defined(_OPENMP) int tid = omp_get_thread_num(); #else @@ -813,6 +813,8 @@ void FixQEqReaxFFOMP::dual_sparse_matvec(sparse_matrix *A, double *x1, double *x int i, j, itr_j; int ii; int indxI, indxJ; + int nlocal = atom->nlocal; + int nall = atom->nlocal + atom->nghost; int nthreads = comm->nthreads; #if defined(_OPENMP) @@ -903,6 +905,8 @@ void FixQEqReaxFFOMP::dual_sparse_matvec(sparse_matrix *A, double *x, double *b) int i, j, itr_j; int ii; int indxI, indxJ; + int nlocal = atom->nlocal; + int nall = atom->nlocal + atom->nghost; int nthreads = comm->nthreads; #if defined(_OPENMP)