Skip to content

Commit

Permalink
Removed int64_t not needed once other errors corrected.
Browse files Browse the repository at this point in the history
  • Loading branch information
kslong committed Oct 14, 2024
1 parent 167d2cc commit 8e62781
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/disk_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ qdisk_save (diskfile, ichoice)
ttot = pow (qdisk.t[n], 4) + pow (theat, 4);
ttot = pow (ttot, 0.25);
fprintf (qptr,
"%9.4e %9.4e %0.4e %8.3e %8.3e %8.3e %10ld %8.3e %10ld %8.3e %8.3e %8.3e %10.3e %8.3e\n",
"%9.4e %9.4e %0.4e %8.3e %8.3e %8.3e %10d %8.3e %10d %8.3e %8.3e %8.3e %10.3e %8.3e\n",
qdisk.r[n], qdisk.v[n], zdisk (qdisk.r[n]), qdisk.t[n], qdisk.g[n],
qdisk.emit[n], qdisk.nphot[n], qdisk.heat[n], qdisk.nhit[n], ratio[n], theat, qdisk.t_hit[n], qdisk.w[n], ttot);
}
Expand Down
2 changes: 1 addition & 1 deletion source/disk_photon_gen.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ disk_photon_summary (filename, mode)
x = 0;
else
x = disk.nphot[n] / (disk.r[n] - disk.r[n - 1]);
fprintf (ptr, "%d %8.2e %8.2e %8ld %8.2e %8ld\n", n, disk.r[n], disk.t[n], disk.nphot[n], x, disk.nhit[n]);
fprintf (ptr, "%d %8.2e %8.2e %8d %8.2e %8d\n", n, disk.r[n], disk.t[n], disk.nphot[n], x, disk.nhit[n]);
}

fclose (ptr);
Expand Down
4 changes: 2 additions & 2 deletions source/python.h
Original file line number Diff line number Diff line change
Expand Up @@ -760,8 +760,8 @@ struct xdisk
double ave_freq[NRINGS]; /**< The flux weighted average of frequency of photons hitting each annulus */
double w[NRINGS]; /**< The weight relative to a BB of the photons that hit the disk */
double t_hit[NRINGS]; /**< The effective T of photons hitting the disk, based on the average frequency */
int64_t nphot[NRINGS]; /**< The number of disk photons created in each annulus */
int64_t nhit[NRINGS]; /**< The number of photons which hit each annulus */
int nphot[NRINGS]; /**< The number of disk photons created in each annulus */
int nhit[NRINGS]; /**< The number of photons which hit each annulus */
};
extern struct xdisk disk, qdisk; /**< disk defines zones in the disk which in a specified frequency band emit equal amounts
of radiation. disk gets reinitialized whenever the frequency interval of interest
Expand Down

0 comments on commit 8e62781

Please sign in to comment.