mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Move res_scat_nuclides to C++
This commit is contained in:
parent
b65ad32422
commit
a800f2976b
8 changed files with 81 additions and 46 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue