From 2a3b432859c216dafdddfc23949afe3d1e3cc2f6 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Tue, 9 Oct 2018 14:03:42 -0500 Subject: [PATCH] Style updates. --- src/plot.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/plot.cpp b/src/plot.cpp index 69dbf63ab..bdc8f6933 100644 --- a/src/plot.cpp +++ b/src/plot.cpp @@ -23,7 +23,7 @@ const int NULLRGB[3] = {0, 0, 0}; int openmc_plot_geometry() { int err; - for(auto i : n_plots) { + for (auto i : n_plots) { ObjectPlot* pl = plots[i]; std::stringstream ss; @@ -99,12 +99,11 @@ void create_ppm(ObjectPlot* pl) { // local variables int rgb[3]; int id; - for(int y = 0; y < height; y++) { + for (int y = 0; y < height; y++) { p->coord[0].xyz[out_i] = xyz[out_i] - out_pixel*(y); - for(int x = 0; x < width; x++) { + for (int x = 0; x < width; x++) { p->coord[0].xyz[in_i] = xyz[in_i] + in_pixel*(x); // position_rgb(p, pl, rgb, id); - std::copy(rgb, rgb+3, &(data[x][y][0])); } }