From e780f33fed28fbd9aee951e09c9aecf42e596a97 Mon Sep 17 00:00:00 2001 From: David Grote Date: Thu, 11 Jan 2024 12:16:08 -0800 Subject: [PATCH] Fix BL_PROFILE_TINY_FLUSH (#3695) ## Summary This fixes the BL_PROFILE_TINY_FLUSH macro. The `amrex` prefix was left off of the call to `TinyProfiler::MemoryFinalize`. This produced a compilation error that `TinyProfiler` was not defined. Note that this is in code that does not have `using namespace amrex`. ## Additional background ## Checklist The proposed changes: - [x] fix a bug or incorrect behavior in AMReX - [ ] add new capabilities to AMReX - [ ] changes answers in the test suite to more than roundoff level - [ ] are likely to significantly affect the results of downstream AMReX users - [ ] include documentation in the code and/or rst files, if appropriate --- Src/Base/AMReX_BLProfiler.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Base/AMReX_BLProfiler.H b/Src/Base/AMReX_BLProfiler.H index 3b72a62788..b7f8e6a1c2 100644 --- a/Src/Base/AMReX_BLProfiler.H +++ b/Src/Base/AMReX_BLProfiler.H @@ -514,7 +514,7 @@ inline std::string BLProfiler::CommStats::CFTToString(CommFuncType cft) { #define BL_PROFILE_REGION_VAR(fname, rvname) #define BL_PROFILE_REGION_VAR_START(fname, rvname) #define BL_PROFILE_REGION_VAR_STOP(fname, rvname) -#define BL_PROFILE_TINY_FLUSH() amrex::TinyProfiler::Finalize(true); TinyProfiler::MemoryFinalize(true) +#define BL_PROFILE_TINY_FLUSH() amrex::TinyProfiler::Finalize(true); amrex::TinyProfiler::MemoryFinalize(true) #define BL_PROFILE_FLUSH() #define BL_TRACE_PROFILE_FLUSH() #define BL_TRACE_PROFILE_SETFLUSHSIZE(fsize)