avoid dereferencing reaxff object when no reaxff pair style in use
This commit is contained in:
@ -344,7 +344,7 @@ void FixQEqReaxFF::allocate_matrix()
|
||||
int mincap;
|
||||
double safezone;
|
||||
|
||||
if (reaxflag) {
|
||||
if (reaxflag && reaxff) {
|
||||
mincap = reaxff->api->system->mincap;
|
||||
safezone = reaxff->api->system->safezone;
|
||||
} else {
|
||||
|
||||
@ -370,7 +370,7 @@ void FixQtpieReaxFF::allocate_matrix()
|
||||
int mincap;
|
||||
double safezone;
|
||||
|
||||
if (reaxflag) {
|
||||
if (reaxflag && reaxff) {
|
||||
mincap = reaxff->api->system->mincap;
|
||||
safezone = reaxff->api->system->safezone;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user