Minor bug within create_atoms.cpp

Submitted by Di Peng on Fri, 06/29/2018 - 15:21

I found a minor bug in create_atoms.cpp when using "create_atoms" command with style "random".

The syntax of args should be "N seed region-ID" while the source file misleads N as seed (Line 129-130).

The corrected code of lines 129-130 is:

seed_char = new char [strlen(arg[3])+1];
strcpy(seed_char, arg[3]);

modified cpp file is attached.

AttachmentSize
Binary Data Corrected source code5.62 KB
arnom's picture

arnom | Thu, 07/19/2018 - 09:19

Thank you for reporting the bug. It has already been fixed on our side and will be released with LIGGGHTS 4.0

DCS team member & LIGGGHTS(R) core developer