Skip to content

Commit 3edabe2

Browse files
committed
Don't force-inline actual_integrator()
This greatly reduces the compilation time.
1 parent 5226a1f commit 3edabe2

8 files changed

+8
-8
lines changed

integration/BackwardEuler/actual_integrator.H

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include <be_integrator.H>
66

77
template <typename BurnT>
8-
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
8+
AMREX_GPU_HOST_DEVICE AMREX_INLINE
99
void actual_integrator (BurnT& state, const Real dt, bool is_retry=false)
1010
{
1111
constexpr int int_neqs = integrator_neqs<BurnT>();

integration/BackwardEuler/actual_integrator_sdc.H

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <integrator_data.H>
1010

1111
template <typename BurnT>
12-
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
12+
AMREX_GPU_HOST_DEVICE AMREX_INLINE
1313
void actual_integrator (BurnT& state, const Real dt, bool is_retry=false)
1414
{
1515
constexpr int int_neqs = integrator_neqs<BurnT>();

integration/ForwardEuler/actual_integrator.H

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ void initialize_int_state (IntT& int_state)
156156
}
157157

158158
template <typename BurnT>
159-
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
159+
AMREX_GPU_HOST_DEVICE AMREX_INLINE
160160
void actual_integrator (BurnT& state, Real dt, bool is_retry=false)
161161
{
162162
using namespace microphysics::forward_euler;

integration/QSS/actual_integrator.H

+1-1
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ bool corrector (const BurnT& state_0, const Array1D<Real, 1, NumSpec>& f_minus_0
196196
}
197197

198198
template <typename BurnT>
199-
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
199+
AMREX_GPU_HOST_DEVICE AMREX_INLINE
200200
void actual_integrator (BurnT& state, Real dt, const bool is_retry=false)
201201
{
202202
initialize_state(state);

integration/RKC/actual_integrator.H

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <rkc.H>
1313

1414
template <typename BurnT>
15-
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
15+
AMREX_GPU_HOST_DEVICE AMREX_INLINE
1616
void actual_integrator (BurnT& state, Real dt, bool is_retry=false)
1717
{
1818
constexpr int int_neqs = integrator_neqs<BurnT>();

integration/RKC/actual_integrator_sdc.H

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
using namespace integrator_rp;
1616

1717
template <typename BurnT>
18-
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
18+
AMREX_GPU_HOST_DEVICE AMREX_INLINE
1919
void actual_integrator (BurnT& state, Real dt)
2020
{
2121
constexpr int int_neqs = integrator_neqs<BurnT>();

integration/VODE/actual_integrator.H

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
using namespace integrator_rp;
1818

1919
template <typename BurnT>
20-
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
20+
AMREX_GPU_HOST_DEVICE AMREX_INLINE
2121
void actual_integrator (BurnT& state, amrex::Real dt, bool is_retry=false)
2222
{
2323
constexpr int int_neqs = integrator_neqs<BurnT>();

integration/VODE/actual_integrator_sdc.H

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
using namespace integrator_rp;
1818

1919
template <typename BurnT>
20-
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE
20+
AMREX_GPU_HOST_DEVICE AMREX_INLINE
2121
void actual_integrator (BurnT& state, amrex::Real dt, bool is_retry=false)
2222
{
2323
constexpr int int_neqs = integrator_neqs<BurnT>();

0 commit comments

Comments
 (0)