Skip to content
Snippets Groups Projects
Commit 59dabcce authored by Kurt A. O'Hearn's avatar Kurt A. O'Hearn
Browse files

sPuReMD: fix hbond list initialization when empty.

parent df5038c7
No related branches found
No related tags found
No related merge requests found
......@@ -1312,7 +1312,10 @@ static int Init_Forces( reax_system * const system,
}
Init_List_Indices( lists[BONDS], system->bonds );
Init_List_Indices( lists[HBONDS], system->hbonds );
if ( control->hbond_cut > 0.0 && workspace->num_H > 0 )
{
Init_List_Indices( lists[HBONDS], system->hbonds );
}
// if ( lists[FAR_NBRS]->format == HALF_LIST )
// {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment