From 983f0e4f0609c43c4eab51631c6761a5527763ff Mon Sep 17 00:00:00 2001 From: Zhi Date: Wed, 10 Jan 2024 16:54:39 -0500 Subject: [PATCH 1/2] fix tabs and formmating --- Source/reactions/Castro_react.cpp | 40 +++++++++++++++---------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/Source/reactions/Castro_react.cpp b/Source/reactions/Castro_react.cpp index d7bfac60d4..307029dd34 100644 --- a/Source/reactions/Castro_react.cpp +++ b/Source/reactions/Castro_react.cpp @@ -214,10 +214,10 @@ Castro::react_state(MultiFab& s, MultiFab& r, Real time, Real dt, const int stra burn_t burn_state; #ifdef NSE_NET - burn_state.mu_p = U(i,j,k,UMUP); - burn_state.mu_n = U(i,j,k,UMUN); + burn_state.mu_p = U(i,j,k,UMUP); + burn_state.mu_n = U(i,j,k,UMUN); - burn_state.y_e = -1.0_rt; + burn_state.y_e = -1.0_rt; #endif #if AMREX_SPACEDIM == 1 @@ -251,9 +251,9 @@ Castro::react_state(MultiFab& s, MultiFab& r, Real time, Real dt, const int stra burn_state.rho = U(i,j,k,URHO); - // e is used as an input for some NSE solvers + // e is used as an input for some NSE solvers - burn_state.e = U(i,j,k,UEINT) * rhoInv; + burn_state.e = U(i,j,k,UEINT) * rhoInv; // this T is consistent with UEINT because we did an EOS call before // calling this function @@ -363,12 +363,12 @@ Castro::react_state(MultiFab& s, MultiFab& r, Real time, Real dt, const int stra } } #ifdef NSE - if (store_omegadot == 1) { - reactions(i,j,k,NumSpec+NumAux+1) = burn_state.nse; - } - else { - reactions(i,j,k,1) = burn_state.nse; - } + if (store_omegadot == 1) { + reactions(i,j,k,NumSpec+NumAux+1) = burn_state.nse; + } + else { + reactions(i,j,k,1) = burn_state.nse; + } #endif } @@ -554,10 +554,10 @@ Castro::react_state(Real time, Real dt) #endif #ifdef NSE_NET - burn_state.mu_p = U_old(i,j,k,UMUP); - burn_state.mu_n = U_old(i,j,k,UMUN); + burn_state.mu_p = U_old(i,j,k,UMUP); + burn_state.mu_n = U_old(i,j,k,UMUN); - burn_state.y_e = -1.0_rt; + burn_state.y_e = -1.0_rt; #endif // Initialize some data for later. @@ -740,12 +740,12 @@ Castro::react_state(Real time, Real dt) } } #ifdef NSE - if (store_omegadot == 1) { - react_src(i,j,k,NumSpec+NumAux+1) = burn_state.nse; - } - else { - react_src(i,j,k,1) = burn_state.nse; - } + if (store_omegadot == 1) { + react_src(i,j,k,NumSpec+NumAux+1) = burn_state.nse; + } + else { + react_src(i,j,k,1) = burn_state.nse; + } #endif } From 1916de316435c65ce92f39ff2e3b33a4f16c45c3 Mon Sep 17 00:00:00 2001 From: Zhi Date: Wed, 10 Jan 2024 16:58:06 -0500 Subject: [PATCH 2/2] more fix --- Source/reactions/Castro_react.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/reactions/Castro_react.cpp b/Source/reactions/Castro_react.cpp index 307029dd34..e050e2008f 100644 --- a/Source/reactions/Castro_react.cpp +++ b/Source/reactions/Castro_react.cpp @@ -374,8 +374,8 @@ Castro::react_state(MultiFab& s, MultiFab& r, Real time, Real dt, const int stra // update the state #ifdef NSE_NET - U(i,j,k,UMUP) = burn_state.mu_p; - U(i,j,k,UMUN) = burn_state.mu_n; + U(i,j,k,UMUP) = burn_state.mu_p; + U(i,j,k,UMUN) = burn_state.mu_n; #endif for (int n = 0; n < NumSpec; ++n) { U(i,j,k,UFS+n) = U(i,j,k,URHO) * burn_state.xn[n]; @@ -692,8 +692,8 @@ Castro::react_state(Real time, Real dt) // update the state data. #ifdef NSE_NET - U_new(i,j,k,UMUP) = burn_state.mu_p; - U_new(i,j,k,UMUN) = burn_state.mu_n; + U_new(i,j,k,UMUP) = burn_state.mu_p; + U_new(i,j,k,UMUN) = burn_state.mu_n; #endif U_new(i,j,k,UEDEN) = burn_state.y[SEDEN]; U_new(i,j,k,UEINT) = burn_state.y[SEINT];