Merge branch 'master' into gpu-unittest
# Conflicts: # unittest/force-styles/test_pair_style.cpp # unittest/force-styles/tests/angle-cosine_periodic.yaml # unittest/force-styles/tests/mol-pair-born.yaml # unittest/force-styles/tests/mol-pair-born_coul_dsf.yaml # unittest/force-styles/tests/mol-pair-born_coul_long.yaml # unittest/force-styles/tests/mol-pair-born_coul_msm.yaml # unittest/force-styles/tests/mol-pair-born_coul_msm_table.yaml # unittest/force-styles/tests/mol-pair-born_coul_wolf.yaml # unittest/force-styles/tests/mol-pair-morse.yaml # unittest/force-styles/tests/mol-pair-morse_smooth_linear.yaml
This commit is contained in:
@ -267,8 +267,7 @@ void generate_yaml_file(const char *outfile, const TestConfig &config)
|
||||
|
||||
// init_forces
|
||||
block.clear();
|
||||
auto f = lmp->atom->f;
|
||||
auto tag = lmp->atom->tag;
|
||||
auto f = lmp->atom->f;
|
||||
for (int i = 1; i <= natoms; ++i) {
|
||||
const int j = lmp->atom->map(i);
|
||||
block += fmt::format("{:3} {:23.16e} {:23.16e} {:23.16e}\n", i, f[j][0], f[j][1], f[j][2]);
|
||||
@ -288,8 +287,7 @@ void generate_yaml_file(const char *outfile, const TestConfig &config)
|
||||
writer.emit_block("run_stress", block);
|
||||
|
||||
block.clear();
|
||||
f = lmp->atom->f;
|
||||
tag = lmp->atom->tag;
|
||||
f = lmp->atom->f;
|
||||
for (int i = 1; i <= natoms; ++i) {
|
||||
const int j = lmp->atom->map(i);
|
||||
block += fmt::format("{:3} {:23.16e} {:23.16e} {:23.16e}\n", i, f[j][0], f[j][1], f[j][2]);
|
||||
|
||||
Reference in New Issue
Block a user