From be5a9fd0f58c99554abb5da2ae3df1863f0241ac Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Tue, 24 Jan 2017 15:16:13 +0000
Subject: [PATCH] Typos

---
 examples/main.c | 2 +-
 src/serial_io.c | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/examples/main.c b/examples/main.c
index 9cb2142817..959343de40 100644
--- a/examples/main.c
+++ b/examples/main.c
@@ -394,7 +394,7 @@ int main(int argc, char *argv[]) {
                    MPI_COMM_WORLD, MPI_INFO_NULL, dry_run);
 #else
   read_ic_serial(ICfileName, &us, dim, &parts, &gparts, &sparts, &Ngas, &Ngpart,
-                 &Nsparts, &periodic, &flag_entropy_ICs, with_hydro,
+                 &Nspart, &periodic, &flag_entropy_ICs, with_hydro,
                  (with_external_gravity || with_self_gravity), with_stars,
                  myrank, nr_nodes, MPI_COMM_WORLD, MPI_INFO_NULL, dry_run);
 #endif
diff --git a/src/serial_io.c b/src/serial_io.c
index fc54e348ca..a456d4faf3 100644
--- a/src/serial_io.c
+++ b/src/serial_io.c
@@ -46,6 +46,7 @@
 #include "io_properties.h"
 #include "kernel_hydro.h"
 #include "part.h"
+#include "stars_io.h"
 #include "units.h"
 
 /*-----------------------------------------------------------------------------
@@ -952,7 +953,7 @@ void write_output_serial(struct engine* e, const char* baseName,
             break;
 
           case STAR:
-            N = Nstars;
+            Nparticles = Nstars;
             star_write_particles(sparts, list, &num_fields);
             break;
 
-- 
GitLab