Move res_scat_nuclides to C++

This commit is contained in:
Paul Romano 2018-11-06 06:28:36 -06:00
parent b65ad32422
commit a800f2976b
8 changed files with 81 additions and 46 deletions

View file

@ -9,6 +9,10 @@
namespace openmc {
//==============================================================================
// Library class
//==============================================================================
class Library {
public:
// Types, enums
@ -30,14 +34,21 @@ public:
std::string path_;
};
//==============================================================================
// Global variable declarations
//==============================================================================
extern std::vector<Library> libraries;
using LibraryKey = std::pair<Library::Type, std::string>;
extern std::map<LibraryKey, std::size_t> library_dict;
//==============================================================================
// Non-member functions
//==============================================================================
extern "C" void read_cross_sections_xml();
void read_ce_cross_sections_xml();
}
} // namespace openmc
#endif // OPENMC_CROSS_SECTIONS_H

View file

@ -77,6 +77,7 @@ extern "C" int n_max_batches; //!< Maximum number of batches
extern "C" int res_scat_method; //!< resonance upscattering method
extern "C" double res_scat_energy_min; //!< Min energy in [eV] for res. upscattering
extern "C" double res_scat_energy_max; //!< Max energy in [eV] for res. upscattering
extern std::vector<std::string> res_scat_nuclides; //!< Nuclides using res. upscattering treatment
extern "C" int run_mode; //!< Run mode (eigenvalue, fixed src, etc.)
extern std::unordered_set<int> sourcepoint_batch; //!< Batches when source should be written
extern std::unordered_set<int> statepoint_batch; //!< Batches when state should be written