@@ -92,7 +92,8 @@ public:
9292 * \param[in] output_time physical time of current step
9393 * \param[in] max_time physical time of last step
9494 */
95- bool hasAnyFieldOutput (int output_step, int max_step,
95+ [[nodiscard]] bool
96+ hasAnyFieldOutput (int output_step, int max_step,
9697 amrex::Real output_time, amrex::Real max_time) const
9798 {
9899 for (const auto & fd : m_field_data) {
@@ -108,7 +109,8 @@ public:
108109 * \param[in] output_time physical time of current step
109110 * \param[in] max_time physical time of last step
110111 */
111- bool hasBeamOutput (int output_step, int max_step,
112+ [[nodiscard]] bool
113+ hasBeamOutput (int output_step, int max_step,
112114 amrex::Real output_time, amrex::Real max_time) const
113115 {
114116 return m_output_beam_names.size () > 0 &&
@@ -123,7 +125,8 @@ public:
123125 * \param[in] output_time physical time of current step
124126 * \param[in] max_time physical time of last step
125127 */
126- bool hasAnyOutput (int output_step, int max_step,
128+ [[nodiscard]] bool
129+ hasAnyOutput (int output_step, int max_step,
127130 amrex::Real output_time, amrex::Real max_time) const
128131 {
129132 return hasAnyFieldOutput (output_step, max_step, output_time, max_time) ||
@@ -132,15 +135,18 @@ public:
132135
133136 /* * \brief determines if rho is requested as a diagnostic
134137 */
135- bool needsRho () const ;
138+ [[nodiscard]] bool
139+ needsRho () const ;
136140
137141 /* * \brief determines if rho for every individual plasma is requested as a diagnostic
138142 */
139- bool needsRhoIndividual () const ;
143+ [[nodiscard]] bool
144+ needsRhoIndividual () const ;
140145
141146 /* * \brief determines if the temperature parameters for every individual plasma are requested as a diagnostic
142147 */
143- bool needsTempIndividual () const ;
148+ [[nodiscard]] bool
149+ needsTempIndividual () const ;
144150
145151 /* * \brief calculate box which possibly was trimmed in case of slice IO
146152 *
0 commit comments