apply clang-format

This commit is contained in:
Axel Kohlmeyer
2023-08-04 12:11:59 -04:00
parent 8eb7f56491
commit a6767c85b0
9 changed files with 31 additions and 25 deletions

View File

@ -346,7 +346,7 @@ Bond *Force::new_bond(const std::string &style, int trysuffix, int &sflag)
{
if (trysuffix && lmp->suffix_enable) {
if (lmp->non_pair_suffix()) {
sflag = 1 + 2*lmp->pair_only_flag;
sflag = 1 + 2 * lmp->pair_only_flag;
std::string estyle = style + "/" + lmp->non_pair_suffix();
if (bond_map->find(estyle) != bond_map->end()) {
BondCreator &bond_creator = (*bond_map)[estyle];
@ -414,7 +414,7 @@ Angle *Force::new_angle(const std::string &style, int trysuffix, int &sflag)
{
if (trysuffix && lmp->suffix_enable) {
if (lmp->non_pair_suffix()) {
sflag = 1 + 2*lmp->pair_only_flag;
sflag = 1 + 2 * lmp->pair_only_flag;
std::string estyle = style + "/" + lmp->non_pair_suffix();
if (angle_map->find(estyle) != angle_map->end()) {
AngleCreator &angle_creator = (*angle_map)[estyle];
@ -482,7 +482,7 @@ Dihedral *Force::new_dihedral(const std::string &style, int trysuffix, int &sfla
{
if (trysuffix && lmp->suffix_enable) {
if (lmp->non_pair_suffix()) {
sflag = 1 + 2*lmp->pair_only_flag;
sflag = 1 + 2 * lmp->pair_only_flag;
std::string estyle = style + "/" + lmp->non_pair_suffix();
if (dihedral_map->find(estyle) != dihedral_map->end()) {
DihedralCreator &dihedral_creator = (*dihedral_map)[estyle];
@ -550,7 +550,7 @@ Improper *Force::new_improper(const std::string &style, int trysuffix, int &sfla
{
if (trysuffix && lmp->suffix_enable) {
if (lmp->non_pair_suffix()) {
sflag = 1 + 2*lmp->pair_only_flag;
sflag = 1 + 2 * lmp->pair_only_flag;
std::string estyle = style + "/" + lmp->non_pair_suffix();
if (improper_map->find(estyle) != improper_map->end()) {
ImproperCreator &improper_creator = (*improper_map)[estyle];
@ -618,7 +618,7 @@ KSpace *Force::new_kspace(const std::string &style, int trysuffix, int &sflag)
{
if (trysuffix && lmp->suffix_enable) {
if (lmp->non_pair_suffix()) {
sflag = 1 + 2*lmp->pair_only_flag;
sflag = 1 + 2 * lmp->pair_only_flag;
std::string estyle = style + "/" + lmp->non_pair_suffix();
if (kspace_map->find(estyle) != kspace_map->end()) {
KSpaceCreator &kspace_creator = (*kspace_map)[estyle];