1818#include < fmt/format.h>
1919
2020#include < filesystem>
21- #include < fstream>
2221#include < string>
2322#include < utility>
2423#include < vector>
@@ -53,7 +52,7 @@ class DripLine
5352
5453 // / Delete both due to const members
5554 DripLine& operator =(const DripLine&) = delete ;
56- DripLine& operator =(DripLine&&) = delete ;
55+ DripLine& operator =(DripLine&&) = delete ;
5756
5857 virtual ~DripLine () = default ;
5958
@@ -101,7 +100,10 @@ class DripLine
101100 // / Container to hold each isotope in the drop model data file
102101 struct drop_model_data
103102 {
104- drop_model_data (const int a, const int z, const double me) : A(a), Z(z), N(a - z), ME(me) {}
103+ drop_model_data (const int mass_number, const int proton_number, const double mass_excess) :
104+ A (mass_number), Z(proton_number), N(mass_number - proton_number), ME(mass_excess)
105+ {
106+ }
105107
106108 int A{ 0 };
107109 int Z{ 0 };
@@ -216,7 +218,7 @@ class DripLine
216218 *
217219 * \return The neutron number of the dripline
218220 */
219- inline int GetNeutronDripValue (const int Z ) const { return GetDripValue (Z , " Z" ); }
221+ inline int GetNeutronDripValue (const int proton_number ) const { return GetDripValue (proton_number , " Z" ); }
220222
221223 /* *
222224 * Wrapper around GetDripValue explicitly for N values and looking for Z
@@ -225,7 +227,7 @@ class DripLine
225227 *
226228 * \return The proton number of the dripline
227229 */
228- inline int GetProtonDripValue (const int N ) const { return GetDripValue (N , " N" ); }
230+ inline int GetProtonDripValue (const int neutron_number ) const { return GetDripValue (neutron_number , " N" ); }
229231
230232 /* *
231233 * Output the dripline data in a consistent format
@@ -236,9 +238,9 @@ class DripLine
236238 *
237239 * \return A std::string to be written to the data file
238240 */
239- [[nodiscard]] static inline std::string WriteDataLine (const int N , const int Z )
241+ [[nodiscard]] static inline std::string WriteDataLine (const int neutron_number , const int proton_number )
240242 {
241- return fmt::format (" {0:>3d} {1:>3d}\n " , N, Z );
243+ return fmt::format (" {0:>3d} {1:>3d}\n " , neutron_number, proton_number );
242244 }
243245
244246 /* *
0 commit comments