diff --git a/include/openmc/tallies/tally.h b/include/openmc/tallies/tally.h index f411e65603..dc7cd8ce27 100644 --- a/include/openmc/tallies/tally.h +++ b/include/openmc/tallies/tally.h @@ -57,7 +57,7 @@ public: int32_t n_filter_bins() const {return n_filter_bins_;} - bool get_writable() const { return writable_;} + bool writable() const { return writable_;} //---------------------------------------------------------------------------- // Other methods. diff --git a/src/tallies/tally.cpp b/src/tallies/tally.cpp index 3e9de83b19..f843874118 100644 --- a/src/tallies/tally.cpp +++ b/src/tallies/tally.cpp @@ -1227,7 +1227,7 @@ openmc_tally_get_writable(int32_t index, bool* writable) set_errmsg("Index in tallies array is out of bounds."); return OPENMC_E_OUT_OF_BOUNDS; } - *writable = model::tallies[index]->get_writable(); + *writable = model::tallies[index]->writable(); return 0; }