Skip to content

Commit cf2732e

Browse files
authored
Remove metric conversion logic from fields_to_phys.hpp
Removed conversion logic for physical quantities based on metric type.
1 parent 52acf38 commit cf2732e

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

‎src/kernels/fields_to_phys.hpp‎

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -165,18 +165,6 @@ namespace kernel {
165165
f_fin[2] = f_int[2];
166166
}
167167
// CG E' -> E
168-
if constexpr (M::MetricType == ntt::Metric::Box) {
169-
if ((flags & PrepareOutput::ConvertToPhysCntrv) ||
170-
(flags & PrepareOutput::ConvertToPhysCov) ||
171-
(flags & PrepareOutput::ConvertToHat)) {
172-
const real_t L1 = metric.Li(1, xi_field);
173-
const real_t L2 = metric.Li(2, xi_field);
174-
const real_t L3 = metric.Li(3, xi_field);
175-
f_fin[0] *= L1;
176-
f_fin[1] *= L2;
177-
f_fin[2] *= L3;
178-
}
179-
}
180168
// CG end
181169
Fto(i1, i2, ct1) = f_fin[0];
182170
Fto(i1, i2, ct2) = f_fin[1];
@@ -241,18 +229,6 @@ namespace kernel {
241229
f_fin[2] = f_int[2];
242230
}
243231
// CG E' -> E
244-
if constexpr (M::MetricType == ntt::Metric::Box) {
245-
if ((flags & PrepareOutput::ConvertToPhysCntrv) ||
246-
(flags & PrepareOutput::ConvertToPhysCov) ||
247-
(flags & PrepareOutput::ConvertToHat)) {
248-
const real_t L1 = metric.Li(1, xi_field);
249-
const real_t L2 = metric.Li(2, xi_field);
250-
const real_t L3 = metric.Li(3, xi_field);
251-
f_fin[0] *= L1;
252-
f_fin[1] *= L2;
253-
f_fin[2] *= L3;
254-
}
255-
}
256232
// CG end
257233
Fto(i1, i2, i3, ct1) = f_fin[0];
258234
Fto(i1, i2, i3, ct2) = f_fin[1];

0 commit comments

Comments
 (0)