Skip to content

Commit 1cc4a48

Browse files
unit correction
1 parent a1560f8 commit 1cc4a48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pybind/pymodel.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ struct PyMagnetar {
2828
* @param L_0 Luminosity at t = t_0 [erg/s]
2929
* @param t_0 Time at which luminosity is L_0 [s]
3030
*/
31-
PyMagnetar(Real L_0, Real t_0) : L_0(L_0 * con::erg / con::sec), t_0(t_0 * con::sec) {}
31+
PyMagnetar(Real L_0, Real t_0) : L_0(L_0 * unit::erg / unit::sec), t_0(t_0 * unit::sec) {}
3232

3333
/**
3434
* @brief Operator function for the magnetar model

0 commit comments

Comments
 (0)