Summary
<error appear when set atoms image with set group group-ID image -1 NULL NULL>
22 Jul 2025 - Update 2
There always an error states "ERROR: Expected integer parameter instead of 'NULL' in input script or data file (src/set.cpp:1667)" when I set the images for atoms, the command like:
include ../modulein/str/header.in
read_data ./00data/spc.data
variable param_label string no
include ../modulein/str/common_str.in
variable choosen_atoms atom mol==76
group choosen_atoms variable choosen_atoms
set group choosen_atoms image NULL -1 NULL
set group choosen_atoms image NULL NULL -1
set group choosen_atoms image -1 NULL NULL
the two fomer set command work well but the last has an error
variable choosen_atoms atom mol==76
group choosen_atoms variable choosen_atoms
3 atoms in group choosen_atoms
set group choosen_atoms image NULL -1 NULL
Setting atom values ...
3 settings made for image
set group choosen_atoms image NULL NULL -1
Setting atom values ...
3 settings made for image
set group choosen_atoms image -1 NULL NULL
ERROR: Expected integer parameter instead of 'NULL' in input script or data file (src/set.cpp:1667)
Last input line: set group choosen_atoms image -1 NULL NULL
Expected Behavior
Actual Behavior
Steps to Reproduce
**The lammps version:
| LAMMPS Stable Release |
22 Jul 2025 |
**
Summary
<error appear when set atoms image with set group group-ID image -1 NULL NULL>
22 Jul 2025 - Update 2
There always an error states "ERROR: Expected integer parameter instead of 'NULL' in input script or data file (src/set.cpp:1667)" when I set the images for atoms, the command like:
include ../modulein/str/header.in
read_data ./00data/spc.data
variable param_label string no
include ../modulein/str/common_str.in
variable choosen_atoms atom mol==76
group choosen_atoms variable choosen_atoms
set group choosen_atoms image NULL -1 NULL
set group choosen_atoms image NULL NULL -1
set group choosen_atoms image -1 NULL NULL
the two fomer set command work well but the last has an error
variable choosen_atoms atom mol==76
group choosen_atoms variable choosen_atoms
3 atoms in group choosen_atoms
set group choosen_atoms image NULL -1 NULL
Setting atom values ...
3 settings made for image
set group choosen_atoms image NULL NULL -1
Setting atom values ...
3 settings made for image
set group choosen_atoms image -1 NULL NULL
ERROR: Expected integer parameter instead of 'NULL' in input script or data file (src/set.cpp:1667)
Last input line: set group choosen_atoms image -1 NULL NULL
Expected Behavior
Actual Behavior
Steps to Reproduce
**The lammps version: