Skip to content

Commit 2d825c7

Browse files
committed
formatting applied
1 parent 0c229cb commit 2d825c7

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/pgen/progenitor.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -115,16 +115,16 @@ void ProblemGenerator(MeshBlock *pmb, ParameterInput *pin) {
115115
if (is_monopole_sph) {
116116
r = std::abs(x1);
117117
} else { // Cartesian
118-
r = std::sqrt(x1 * x1 + x2 * x2 + x3 * x3);
119-
transform(x1, x2, x3, C, c2s, s2c);
120-
}
118+
r = std::sqrt(x1 * x1 + x2 * x2 + x3 * x3);
119+
transform(x1, x2, x3, C, c2s, s2c);
120+
}
121121

122122
Real lambda[2];
123123
if (iye > 0) {
124124
v(iye, k, j, i) = Ye_dev.interpToReal(r);
125125
lambda[0] = v(iye, k, j, i);
126126
}
127-
const Real u = phoebus::energy_from_rho_P(eos, mass_density_dev.interpToReal(r),
127+
const Real u = phoebus::energy_from_rho_P(eos, mass_density_dev.interpToReal(r),
128128
pressure_dev.interpToReal(r), emin,
129129
emax, lambda[0]);
130130
const Real sie = u / mass_density_dev.interpToReal(r);

src/radiation/cooling_function.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ TaskStatus CoolingFunctionCalculateFourForce(MeshBlockData<Real> *rc, const doub
166166

167167
// Light Bulb with Liebendorfer model
168168
const bool is_monopole_cart =
169-
(typeid(PHOEBUS_GEOMETRY) == typeid(Geometry::MonopoleCart));
169+
(typeid(PHOEBUS_GEOMETRY) == typeid(Geometry::MonopoleCart));
170170
const bool is_monopole_sph =
171-
(typeid(PHOEBUS_GEOMETRY) == typeid(Geometry::MonopoleSph));
172-
171+
(typeid(PHOEBUS_GEOMETRY) == typeid(Geometry::MonopoleSph));
172+
173173
auto &coords = pmb->coords;
174174
using Transformation_t = Geometry::SphericalToCartesian;
175175
auto const &geom_pkg = pmb->packages.Get("geometry");
@@ -189,14 +189,14 @@ TaskStatus CoolingFunctionCalculateFourForce(MeshBlockData<Real> *rc, const doub
189189
DEFAULT_LOOP_PATTERN, "CoolingFunctionCalculateFourForce", DevExecSpace(), kb.s,
190190
kb.e, jb.s, jb.e, ib.s, ib.e,
191191
KOKKOS_LAMBDA(const int k, const int j, const int i) {
192-
const Real x1 = coords.Xc<1>(k, j, i);
192+
const Real x1 = coords.Xc<1>(k, j, i);
193193
const Real x2 = coords.Xc<2>(k, j, i);
194194
const Real x3 = coords.Xc<3>(k, j, i);
195195
Real Cart[3];
196196
Real s2c[3][3], c2s[3][3];
197197
Real r;
198198

199-
if (is_monopole_sph){
199+
if (is_monopole_sph) {
200200
r = std::abs(x1);
201201
} else {
202202
r = std::sqrt(x1 * x1 + x2 * x2 + x3 * x3);

0 commit comments

Comments
 (0)