Provide Tally writable_ setter and getters

New member functions openmc::Tally.set_writable and get_writable
act on the writable attribute. These are used in the external
API with openmc_tally_set_writable and openmc_tally_get_writable
functions.

Cleaned up some other writeable -> writable typos as well
This commit is contained in:
Andrew Johnson 2019-09-26 20:56:31 -04:00
parent 7a1a424d0f
commit 801f18b357
No known key found for this signature in database
GPG key ID: 253418E91B7F6FEB
5 changed files with 20 additions and 18 deletions

View file

@ -37,6 +37,8 @@ public:
void set_active(bool active) { active_ = active; }
void set_writable(bool writable) { writable_ = writable; }
void set_scores(pugi::xml_node node);
void set_scores(const std::vector<std::string>& scores);
@ -55,6 +57,8 @@ public:
int32_t n_filter_bins() const {return n_filter_bins_;}
bool get_writable() const { return writable_;}
//----------------------------------------------------------------------------
// Other methods.