@@ -245,7 +245,7 @@ class Sledgehamr : public amrex::AmrCore {
245245 /* * @brief Initialize project specific details. To be overriden by each
246246 * project if required.
247247 */
248- virtual void Init (){};
248+ virtual void Init () {};
249249
250250 /* * @brief Function to check whether a given level is allowed to be created
251251 * by a given time. Will always allow a level to be created by
@@ -269,7 +269,7 @@ class Sledgehamr : public amrex::AmrCore {
269269 /* * @brief Any work that should be done before a coarse level time step.
270270 * To be overriden by the project class.
271271 */
272- virtual void BeforeTimestep (const double time){};
272+ virtual void BeforeTimestep (const double time) {};
273273
274274 /* * @brief Stopping condition of the simulation. Can be overriden by the
275275 * project class.
@@ -284,7 +284,7 @@ class Sledgehamr : public amrex::AmrCore {
284284 * @param lev Current level.
285285 */
286286 virtual void SetParamsRhs (std::vector<double > ¶ms, const double time,
287- const int lev){};
287+ const int lev) {};
288288
289289 /* * @brief Function to be overriden by the project class to set user-defined
290290 * parameters that will be passed to the Rhs computation of
@@ -295,7 +295,7 @@ class Sledgehamr : public amrex::AmrCore {
295295 */
296296 virtual void SetParamsGravitationalWaveRhs (std::vector<double > ¶ms,
297297 const double time,
298- const int lev){};
298+ const int lev) {};
299299
300300 /* * @brief Function to be overriden by the project class to set user-defined
301301 * parameters that will be passed to the tagging procedure.
@@ -305,7 +305,7 @@ class Sledgehamr : public amrex::AmrCore {
305305 */
306306 virtual void SetParamsTagCellForRefinement (std::vector<double > ¶ms,
307307 const double time,
308- const int lev){};
308+ const int lev) {};
309309
310310 /* * @brief Function to be overriden by the project class to set user-defined
311311 * parameters that will be available when modifying the truncation
@@ -316,7 +316,7 @@ class Sledgehamr : public amrex::AmrCore {
316316 */
317317 virtual void SetParamsTruncationModifier (std::vector<double > ¶ms,
318318 const double time,
319- const int lev){};
319+ const int lev) {};
320320
321321 /* * @brief Function to be overriden by the project class to set user-defined
322322 * parameters that will be passed to the spectrum computation.
@@ -325,7 +325,7 @@ class Sledgehamr : public amrex::AmrCore {
325325 * @param lev Current level.
326326 */
327327 virtual void SetParamsSpectra (std::vector<double > ¶ms,
328- const double time){};
328+ const double time) {};
329329
330330 /* * @brief Function to be overriden by the project class to set user-defined
331331 * parameters that will be passed to the computation of projections.
@@ -334,7 +334,7 @@ class Sledgehamr : public amrex::AmrCore {
334334 * @param lev Current level.
335335 */
336336 virtual void SetParamsProjections (std::vector<double > ¶ms,
337- const double time){};
337+ const double time) {};
338338
339339 void CreateShadowLevel ();
340340
@@ -443,6 +443,8 @@ class Sledgehamr : public amrex::AmrCore {
443443 */
444444 bool restart_sim = false ;
445445
446+ double last_full_time = 0 ;
447+
446448 private:
447449 void DoErrorEstCpu (int lev, amrex::TagBoxArray &tags, double time);
448450 void DoErrorEstGpu (int lev, amrex::TagBoxArray &tags, double time);
0 commit comments