Skip to content

Commit c88f94d

Browse files
committed
undo something broken during clangtidy
1 parent 05dad1b commit c88f94d

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/observable/coupled_observables.cpp

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,9 +300,18 @@ void CoupledCoefficients::calcFromRelaxons(
300300
kappaContrib(gamma,i,j) += Ctot / kBoltzmannRy * V0(gamma,i) * V0(gamma,j) * tau;
301301

302302
// viscosities
303-
double xxxx = sqrt(M(0) * M(0)) * Vphi(gamma,0,0) * Vphi(gamma,0,0) * tau;
304-
double yyyy = sqrt(M(1) * M(1)) * Vphi(gamma,1,1) * Vphi(gamma,1,1) * tau;
305-
iiiiContrib[gamma] += (xxxx + yyyy)/2.;
303+
// ph contribution
304+
double xxxx = sqrt(A(0) * A(0)) * phVphi(gamma, 0, 0) * phVphi(gamma, 0, 0) * tau;
305+
double yyyy = sqrt(A(1) * A(1)) * phVphi(gamma, 1, 1) * phVphi(gamma, 1, 1) * tau;
306+
iiiiContrib[0][gamma] += (xxxx + yyyy) / 2.;
307+
// el contribution
308+
xxxx = sqrt(G(0) * G(0)) * elVphi(gamma, 0, 0) * elVphi(gamma, 0, 0) * tau;
309+
yyyy = sqrt(G(1) * G(1)) * elVphi(gamma, 1, 1) * elVphi(gamma, 1, 1) * tau;
310+
iiiiContrib[1][gamma] += (xxxx + yyyy) / 2.;
311+
// drag contribution
312+
xxxx = sqrt(A(0) * G(0)) * phVphi(gamma, 0, 0) * elVphi(gamma, 0, 0) * tau;
313+
yyyy = sqrt(A(1) * G(1)) * phVphi(gamma, 1, 1) * elVphi(gamma, 1, 1) * tau;
314+
iiiiContrib[2][gamma] += (xxxx + yyyy) / 2.;
306315

307316
for(auto k : {0, 1, 2}) {
308317
for(auto l : {0, 1, 2}) {

0 commit comments

Comments
 (0)