Closed akoen closed 8 months ago
Hi, and welcome to PyNE! :wave: Thanks for opening your first issue. We recommend that you include information such as the version of PyNE you're working with (eg, develop branch or a specific version), the platform you are operating on, the expected behavior, and the actual behavior you are bringing our attention to. The more deatil you provide, the better others in this community will be able to help you.
Describe the Bug
By redefining
isnan
asstd::isnan
inutils.h
, any further usage ofstd::isnan
is translated tostd::std::isnan
, which errors. This can cause compilation to fail in libraries that require pyne, like DAGMC. It would be best to define a new internal function/macro, perhapspyne_isnan
. https://github.com/pyne/pyne/blob/8c17fa9c1f2a08d0968d89f7b6bb70e773ed7cb9/src/utils.h#L30For inspiration see MOAB's
moab_isfinite(f)