Closed coldfix closed 9 years ago
Yes, there is a header generated during configuration. Mad_version.h or something... Check the cmake scripts for madx.
Cheers, Yngve
Sent from phone with miniscule keyboard, please excuse my brevity. On 30 Jun 2014 15:02, "Thomas G." notifications@github.com wrote:
I think there should be a way to retrieve the MAD-X version programmatically. If possible the revision number would be even better.
— Reply to this email directly or view it on GitHub https://github.com/pymad/cpymad/issues/68.
Hey,
The closest thing I found so far is in the file mad_gcst.h
, which exports version_name
and version_date_mod
(although unfortunately intermixed with some useless string constants).
I will propbably open an issue and propose a patch.
Handled in fork based on newer MAD-X revision.
I think there should be a way to retrieve the MAD-X version programmatically. If possible the revision number would be even better.