18
18
#include < fmt/format.h>
19
19
20
20
#include < filesystem>
21
- #include < fstream>
22
21
#include < string>
23
22
#include < utility>
24
23
#include < vector>
@@ -53,7 +52,7 @@ class DripLine
53
52
54
53
// / Delete both due to const members
55
54
DripLine& operator =(const DripLine&) = delete ;
56
- DripLine& operator =(DripLine&&) = delete ;
55
+ DripLine& operator =(DripLine&&) = delete ;
57
56
58
57
virtual ~DripLine () = default ;
59
58
@@ -101,7 +100,10 @@ class DripLine
101
100
// / Container to hold each isotope in the drop model data file
102
101
struct drop_model_data
103
102
{
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
+ }
105
107
106
108
int A{ 0 };
107
109
int Z{ 0 };
@@ -216,7 +218,7 @@ class DripLine
216
218
*
217
219
* \return The neutron number of the dripline
218
220
*/
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" ); }
220
222
221
223
/* *
222
224
* Wrapper around GetDripValue explicitly for N values and looking for Z
@@ -225,7 +227,7 @@ class DripLine
225
227
*
226
228
* \return The proton number of the dripline
227
229
*/
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" ); }
229
231
230
232
/* *
231
233
* Output the dripline data in a consistent format
@@ -236,9 +238,9 @@ class DripLine
236
238
*
237
239
* \return A std::string to be written to the data file
238
240
*/
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 )
240
242
{
241
- return fmt::format (" {0:>3d} {1:>3d}\n " , N, Z );
243
+ return fmt::format (" {0:>3d} {1:>3d}\n " , neutron_number, proton_number );
242
244
}
243
245
244
246
/* *
0 commit comments