Skip to content

Commit 147c89c

Browse files
committed
Use IParser
1 parent a048818 commit 147c89c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Src/Base/AMReX_Arena.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
#include <AMReX.H>
88
#include <AMReX_BLProfiler.H>
9+
#include <AMReX_IParser.H>
910
#include <AMReX_Print.H>
1011
#include <AMReX_ParallelDescriptor.H>
1112
#include <AMReX_ParmParse.H>
@@ -364,7 +365,9 @@ Arena::Initialize (bool minimal)
364365

365366
// Overwrite the initial size with environment variables
366367
if (char const* init_size_p = std::getenv("AMREX_THE_ARENA_INIT_SIZE")) {
367-
the_arena_init_size = std::stoll(init_size_p);
368+
IParser iparser(init_size_p);
369+
auto exe = iparser.compileHost<0>();
370+
the_arena_init_size = exe();
368371
}
369372

370373
ParmParse pp("amrex");

0 commit comments

Comments
 (0)