mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Use uniqe_ptr<Filter> for global filter vector
This commit is contained in:
parent
89bf3a6afb
commit
9f6801ca74
3 changed files with 29 additions and 29 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#define OPENMC_TALLIES_FILTER_H
|
||||
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
|
|
@ -23,7 +24,7 @@ extern std::vector<FilterMatch> filter_matches;
|
|||
#pragma omp threadprivate(filter_matches)
|
||||
|
||||
class Filter;
|
||||
extern std::vector<Filter*> tally_filters;
|
||||
extern std::vector<std::unique_ptr<Filter>> tally_filters;
|
||||
|
||||
//==============================================================================
|
||||
//! Stores bins and weights for filtered tally events.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue