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

@ -643,7 +643,7 @@ write_tallies()
if (!tally.name_.empty()) tally_header += ": " + tally.name_;
tallies_out << header(tally_header) << "\n\n";
if (!tally.writeable_) {
if (!tally.writable_) {
tallies_out << " Internal\n\n";
continue;
}