mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
51 lines
1.2 KiB
C++
51 lines
1.2 KiB
C++
#ifndef OPENMC_BANK_H
|
|
#define OPENMC_BANK_H
|
|
|
|
#include <cstdint>
|
|
|
|
#include "openmc/particle.h"
|
|
#include "openmc/position.h"
|
|
#include "openmc/shared_array.h"
|
|
#include "openmc/vector.h"
|
|
|
|
namespace openmc {
|
|
|
|
//==============================================================================
|
|
// Global variables
|
|
//==============================================================================
|
|
|
|
namespace simulation {
|
|
|
|
extern vector<SourceSite> source_bank;
|
|
|
|
extern SharedArray<SourceSite> surf_source_bank;
|
|
|
|
extern SharedArray<CollisionTrackSite> collision_track_bank;
|
|
|
|
extern SharedArray<SourceSite> fission_bank;
|
|
|
|
extern vector<vector<int>> ifp_source_delayed_group_bank;
|
|
|
|
extern vector<vector<double>> ifp_source_lifetime_bank;
|
|
|
|
extern vector<vector<int>> ifp_fission_delayed_group_bank;
|
|
|
|
extern vector<vector<double>> ifp_fission_lifetime_bank;
|
|
|
|
extern vector<int64_t> progeny_per_particle;
|
|
|
|
} // namespace simulation
|
|
|
|
//==============================================================================
|
|
// Non-member functions
|
|
//==============================================================================
|
|
|
|
void sort_fission_bank();
|
|
|
|
void free_memory_bank();
|
|
|
|
void init_fission_bank(int64_t max);
|
|
|
|
} // namespace openmc
|
|
|
|
#endif // OPENMC_BANK_H
|