Improve style in response to Axel's suggestions

This commit is contained in:
Ryan S. Elliott
2021-09-17 20:17:45 -05:00
parent eb3e8e19c6
commit 029fd56c2a
2 changed files with 6 additions and 6 deletions

View File

@ -178,9 +178,9 @@ void KimInit::print_dirs(struct KIM_Collections *const collections) const
collection_list.push_back(KIM_COLLECTION_user);
collection_list.push_back(KIM_COLLECTION_system);
for (auto col = collection_list.begin(); col != collection_list.end(); ++col) {
for (auto col : collection_list) {
kim_error = KIM_Collections_CacheListOfDirectoryNames(
collections, *col, KIM_COLLECTION_ITEM_TYPE_portableModel, &dirListExtent);
collections, col, KIM_COLLECTION_ITEM_TYPE_portableModel, &dirListExtent);
if (!kim_error) {
for (int i = 0; i < dirListExtent; ++i) {
char const *name;
@ -191,9 +191,9 @@ void KimInit::print_dirs(struct KIM_Collections *const collections) const
}
input->write_echo("#\n");
input->write_echo("#=== KIM is looking for 'Simulator Models' in these directories ===\n");
for (auto col = collection_list.begin(); col != collection_list.end(); ++col) {
for (auto col : collection_list) {
kim_error = KIM_Collections_CacheListOfDirectoryNames(
collections, *col, KIM_COLLECTION_ITEM_TYPE_simulatorModel, &dirListExtent);
collections, col, KIM_COLLECTION_ITEM_TYPE_simulatorModel, &dirListExtent);
if (!kim_error) {
for (int i = 0; i < dirListExtent; ++i) {
char const *name;

View File

@ -62,8 +62,8 @@
#include "pointers.h"
// Forward declaration.
typedef struct KIM_Model KIM_Model;
typedef struct KIM_Collections KIM_Collections;
struct KIM_Model;
struct KIM_Collections;
namespace LAMMPS_NS {