Updates for building with NCrystal support (and fix CI) (#3274)

This commit is contained in:
Thomas Kittelmann 2025-02-11 15:18:27 +01:00 committed by GitHub
parent 7e033b25ad
commit 27ce2ceee3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 33 additions and 76 deletions

View file

@ -2,7 +2,6 @@
#define OPENMC_NCRYSTAL_INTERFACE_H
#ifdef NCRYSTAL
#include "NCrystal/NCRNG.hh"
#include "NCrystal/NCrystal.hh"
#endif
@ -58,19 +57,10 @@ public:
//----------------------------------------------------------------------------
// Trivial methods when compiling without NCRYSTAL
std::string cfg() const
{
return "";
}
double xs(const Particle& p) const
{
return -1.0;
}
std::string cfg() const { return ""; }
double xs(const Particle& p) const { return -1.0; }
void scatter(Particle& p) const {}
operator bool() const
{
return false;
}
operator bool() const { return false; }
#endif
private: