mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Updates to the LibMesh methods for adding variables and writing.
This commit is contained in:
parent
2c1d6162d7
commit
6973ce28d0
5 changed files with 77 additions and 39 deletions
|
|
@ -282,6 +282,16 @@ public:
|
|||
|
||||
std::string bin_label(int bin) const override;
|
||||
|
||||
//! Add a variable to the libmesh mesh instance
|
||||
virtual void add_score(const std::string& var_name) = 0;
|
||||
|
||||
//! Set the value of a bin for a variable on the libmesh mesh instance
|
||||
virtual void set_score_data(const std::string& var_name,
|
||||
std::vector<double> values,
|
||||
std::vector<double> std_dev) const = 0;
|
||||
|
||||
virtual void write(std::string filename) const = 0;
|
||||
|
||||
std::string filename_;
|
||||
};
|
||||
|
||||
|
|
@ -495,15 +505,17 @@ public:
|
|||
|
||||
bool intersects(Position& r0, Position r1, int* ijk) const;
|
||||
|
||||
void write(const std::string& filename) const;
|
||||
void write(std::string filename) const override;
|
||||
|
||||
void to_hdf5(hid_t group) const;
|
||||
|
||||
//! Add a variable to the libmesh mesh instance
|
||||
void add_variable(const std::string& var_name);
|
||||
void add_score(const std::string& var_name) override;
|
||||
|
||||
//! Set the value of a bin for a variable on the libmesh mesh instance
|
||||
void set_variable(const std::string& var_name, int bin, double value);
|
||||
void set_score_data(const std::string& var_name,
|
||||
std::vector<double> values,
|
||||
std::vector<double> std_dev) const override;
|
||||
|
||||
private:
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ void read_source_bank(hid_t group_id, std::vector<Particle::Bank>& sites, bool d
|
|||
void write_tally_results_nr(hid_t file_id);
|
||||
void restart_set_keff();
|
||||
|
||||
#ifdef DAGMC
|
||||
#ifdef LIBMESH
|
||||
void write_unstructured_mesh_results();
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue