Dear LAMMPS developers and users,
I am currently studying the LAMMPS code structures. From my naive understanding, the function input->file() takes each input line and execute immediately by parse() the command and execute_command(). However, I cannot find any function related to command `run` and `minimize` within the function `execute_command()` in input.cpp. So, which functions will be called in what order if the command is "run" or "minimize"?
I sincerely appreciate your kind help in advance.
Best,
Yanqin
Dear LAMMPS developers and users,
I am currently studying the LAMMPS code structures. From my naive understanding, the function input->file() takes each input line and execute immediately by parse() the command and execute_command(). However, I cannot find any function related to command run
and minimize
within the function execute_command()
in input.cpp. So, which functions will be called in what order if the command is “run” or “minimize”?
Run::command() and Minimize::command(), respectively.
you are overlooking this last section in Input::execute_command() which is responsible for all add-on commands in separate files.
if (command_map->find(command) != command_map->end()) {
CommandCreator command_creator = (*command_map)[command];
command_creator(lmp,narg,arg);
return 0;
}
Axel.