more code formatting consistency changes for loops and conditionals

This commit is contained in:
Axel Kohlmeyer
2020-12-30 09:27:47 -05:00
parent 28de7e351a
commit 51a20175c9
171 changed files with 744 additions and 747 deletions

View File

@ -1170,7 +1170,7 @@ int FixIntel::set_host_affinity(const int nomp)
p = popen(cmd, "r");
if (p == nullptr) return -1;
ncores = 0;
while(fgets(readbuf, 512, p)) {
while (fgets(readbuf, 512, p)) {
proc_list[ncores] = atoi(readbuf);
ncores++;
}
@ -1224,7 +1224,7 @@ int FixIntel::set_host_affinity(const int nomp)
p = popen(cmd, "r");
if (p == nullptr) return -1;
while(fgets(readbuf, 512, p)) {
while (fgets(readbuf, 512, p)) {
lwp = atoi(readbuf);
int first = coi_cores + node_rank * mpi_cores;
CPU_ZERO(&cpuset);
@ -1260,7 +1260,7 @@ int FixIntel::set_host_affinity(const int nomp)
p = popen(cmd, "r");
if (p == nullptr) return -1;
while(fgets(readbuf, 512, p)) {
while (fgets(readbuf, 512, p)) {
lwp = atoi(readbuf);
nlwp++;
if (nlwp <= plwp) continue;