Skip to content

Commit

Permalink
Formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrood-nrel committed Jul 24, 2024
1 parent d12f840 commit fdd5ce6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/holeMap.C
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,8 @@ void tioga::outputHoleMap(void)

for (i = 0; i < nmesh; i++)
if (holeMap[i].existWall) {
snprintf(intstring, sizeof(intstring), "%d", 100000 + i + 100 * myid);
snprintf(
intstring, sizeof(intstring), "%d", 100000 + i + 100 * myid);
snprintf(fname, sizeof(fname), "holeMap%s.dat", &(intstring[1]));
fp = fopen(fname, "w");
fprintf(fp, "TITLE =\"Tioga output\"\n");
Expand Down Expand Up @@ -1009,7 +1010,9 @@ void tioga::outputAdaptiveHoleMap(void)
ds[1] = meta.extents_hi[1] - meta.extents_lo[1];
ds[2] = meta.extents_hi[2] - meta.extents_lo[2];

snprintf(filename, sizeof(filename), "AHM.body%d.%d.tec", m, ahm_step++);
snprintf(
filename, sizeof(filename), "AHM.body%d.%d.tec", m,
ahm_step++);
writePointsHeaderVolume(filename);

file = fopen(filename, "a");
Expand Down
3 changes: 2 additions & 1 deletion src/tioga.C
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,8 @@ void tioga::dataUpdate(int nvar, int interptype, int at_points)
for (int i = 0; i < mb->ntotalPoints; i++) {
if (itmp[ib][i] == 0 && iorphanPrint) {
if (fp == NULL) {
snprintf(ofname, sizeof(ofname), "orphan%d.%d.dat", myid, ib);
snprintf(
ofname, sizeof(ofname), "orphan%d.%d.dat", myid, ib);
fp = fopen(ofname, "w");
}
mb->outputOrphan(fp, i);
Expand Down

0 comments on commit fdd5ce6

Please sign in to comment.