reformat unittest tree with clang-format
This commit is contained in:
@ -279,7 +279,8 @@ void generate_yaml_file(const char *outfile, const TestConfig &config)
|
||||
// init_stress
|
||||
auto stress = lmp->force->pair->virial;
|
||||
// avoid false positives on tiny stresses. force to zero instead.
|
||||
for (int i = 0; i < 6; ++i) if (fabs(stress[i]) < 1.0e-13) stress[i] = 0.0;
|
||||
for (int i = 0; i < 6; ++i)
|
||||
if (fabs(stress[i]) < 1.0e-13) stress[i] = 0.0;
|
||||
block = fmt::format("{:23.16e} {:23.16e} {:23.16e} {:23.16e} {:23.16e} {:23.16e}", stress[0],
|
||||
stress[1], stress[2], stress[3], stress[4], stress[5]);
|
||||
writer.emit_block("init_stress", block);
|
||||
@ -305,8 +306,9 @@ void generate_yaml_file(const char *outfile, const TestConfig &config)
|
||||
// run_stress
|
||||
stress = lmp->force->pair->virial;
|
||||
// avoid false positives on tiny stresses. force to zero instead.
|
||||
for (int i = 0; i < 6; ++i) if (fabs(stress[i]) < 1.0e-13) stress[i] = 0.0;
|
||||
block = fmt::format("{:23.16e} {:23.16e} {:23.16e} {:23.16e} {:23.16e} {:23.16e}", stress[0],
|
||||
for (int i = 0; i < 6; ++i)
|
||||
if (fabs(stress[i]) < 1.0e-13) stress[i] = 0.0;
|
||||
block = fmt::format("{:23.16e} {:23.16e} {:23.16e} {:23.16e} {:23.16e} {:23.16e}", stress[0],
|
||||
stress[1], stress[2], stress[3], stress[4], stress[5]);
|
||||
writer.emit_block("run_stress", block);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user