by DaveK
Jan Evangelista Purkyně University in Ústí nad Labem Faculty of Science +420 47528 3306
During initialization of store/state command in
fix_store_state.cpp
function
FixStoreState::end_of_step()
and its sub-command
modify->addstep_compute(nextstep);
produces segmentation fault when no compute is involved in formula
Error is caused by non-initialised
n_timeflag
within modify.cpp
Suggested correction:
********************************************
modify.cpp:
a) add
n_timeflag = 0;
to function
Modify::Modify(LAMMPS *lmp) : Pointers(lmp)
b) add
if(list_timeflag == NULL) list_init_compute();
at the beggining of function
void Modify::addstep_compute(bigint newstep)
Attachment | Size |
---|---|
![]() | 9.31 KB |
arnom | Wed, 01/08/2020 - 08:46
Fixed, thank you
Fixed, thank you