From cc93154afedbe7f7a560af4dc4bdf01cf5a59e37 Mon Sep 17 00:00:00 2001
From: Remy Prechelt <prechelt@hawaii.edu>
Date: Wed, 2 Jun 2021 10:30:33 -1000
Subject: [PATCH] Delete duplicated field in ParticleWriter.

---
 corsika/detail/modules/writers/ParticleWriterParquet.inl | 2 --
 corsika/modules/writers/ParticleWriterParquet.hpp        | 6 +++---
 2 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/corsika/detail/modules/writers/ParticleWriterParquet.inl b/corsika/detail/modules/writers/ParticleWriterParquet.inl
index 5fdd9ba51..e6508fac4 100644
--- a/corsika/detail/modules/writers/ParticleWriterParquet.inl
+++ b/corsika/detail/modules/writers/ParticleWriterParquet.inl
@@ -37,8 +37,6 @@ namespace corsika {
                      parquet::ConvertedType::NONE);
     output_.addField("z", parquet::Repetition::REQUIRED, parquet::Type::FLOAT,
                      parquet::ConvertedType::NONE);
-    output_.addField("z", parquet::Repetition::REQUIRED, parquet::Type::FLOAT,
-                     parquet::ConvertedType::NONE);
     output_.addField("weight", parquet::Repetition::REQUIRED, parquet::Type::FLOAT,
                      parquet::ConvertedType::NONE);
 
diff --git a/corsika/modules/writers/ParticleWriterParquet.hpp b/corsika/modules/writers/ParticleWriterParquet.hpp
index 05b49cce8..6fa0bdd8c 100644
--- a/corsika/modules/writers/ParticleWriterParquet.hpp
+++ b/corsika/modules/writers/ParticleWriterParquet.hpp
@@ -51,15 +51,15 @@ namespace corsika {
      */
     void write(Code const& pid, units::si::HEPEnergyType const& energy,
                units::si::LengthType const& x, units::si::LengthType const& y,
-               units::si::LengthType const& z,
-               const double weight);
+               units::si::LengthType const& z, const double weight);
 
     /**
      * Write a Code::Nucleus particle to the file.
      */
     void write(unsigned int const A, unsigned int const Z,
                units::si::HEPEnergyType const& energy, units::si::LengthType const& x,
-               units::si::LengthType const& y, units::si::LengthType const& z, const double weight);
+               units::si::LengthType const& y, units::si::LengthType const& z,
+               const double weight);
 
     /**
      * Return collected library-level summary for output.
-- 
GitLab