From a21a7e7d6423523476a29b33ff822e7526285918 Mon Sep 17 00:00:00 2001 From: zhi Date: Thu, 14 Nov 2024 00:12:37 -0500 Subject: [PATCH] add preprocessor --- Source/driver/Castro.H | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Source/driver/Castro.H b/Source/driver/Castro.H index 66a2048124..0a77218ee6 100644 --- a/Source/driver/Castro.H +++ b/Source/driver/Castro.H @@ -1381,9 +1381,10 @@ protected: /// amrex::MultiFab volume; amrex::Array area; - amrex::Array dLogArea; amrex::Vector< amrex::Vector > radius; - +#if AMREX_SPACEDIM <= 2 + amrex::Array dLogArea; +#endif /// /// For initialization of the C++ values of the runtime parameters