Skip to content

Commit 84d45cc

Browse files
author
nileshsawant
committed
formatted code with llvm@18
1 parent fa51cd1 commit 84d45cc

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Source/LBM.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,10 @@ void LBM::init_data()
142142
// start simulation from the beginning
143143
const amrex::Real time = 0.0;
144144
set_ics();
145-
InitFromScratch(time); // ns: This function is at
146-
// ./amrex/Src/AmrCore/AMReX_AmrCore.cpp:79:AmrCore::InitFromScratch
147-
// (Real time)
145+
InitFromScratch(
146+
time); // ns: This function is at
147+
// ./amrex/Src/AmrCore/AMReX_AmrCore.cpp:79:AmrCore::InitFromScratch
148+
// (Real time)
148149
average_down(amrex::IntVect(0));
149150

150151
compute_dt();
@@ -286,7 +287,7 @@ void LBM::read_parameters()
286287
m_cs =
287288
m_mesh_speed / constants::ROOT3; // ns: caution, isothermal only. Do
288289
// not use this variable generally
289-
m_cs_2 = m_cs * m_cs; // ns: Same as the above
290+
m_cs_2 = m_cs * m_cs; // ns: Same as the above
290291
}
291292
}
292293

@@ -996,8 +997,8 @@ void LBM::compute_eb_forces()
996997
m_f[lev], amrex::IntVect(0),
997998
[=] AMREX_GPU_DEVICE(
998999
int nbx, int i, int j, int AMREX_D_PICK(, /*k*/, k)) noexcept
999-
-> amrex::GpuTuple<AMREX_D_DECL(
1000-
amrex::Real, amrex::Real, amrex::Real)> {
1000+
-> amrex::GpuTuple<AMREX_D_DECL(
1001+
amrex::Real, amrex::Real, amrex::Real)> {
10011002
const amrex::IntVect iv(AMREX_D_DECL(i, j, k));
10021003
amrex::GpuArray<amrex::Real, AMREX_SPACEDIM> fs = {0.0};
10031004
if ((is_fluid_arrs[nbx](iv, 1) == 1) &&

0 commit comments

Comments
 (0)