Skip to content

Commit 751abc4

Browse files
committed
Remove setName again
1 parent e5f2d37 commit 751abc4

File tree

4 files changed

+2
-20
lines changed

4 files changed

+2
-20
lines changed

include/bout/field.hxx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ class Field;
3535
#include "bout/bout_types.hxx"
3636
#include "bout/boutcomm.hxx"
3737
#include "bout/boutexception.hxx"
38-
#include "bout/build_defines.hxx"
3938
#include "bout/field_data.hxx"
4039
#include "bout/region.hxx"
4140
#include "bout/traits.hxx"
@@ -668,19 +667,4 @@ inline T floor(const T& var, BoutReal f, const std::string& rgn = "RGN_ALL") {
668667

669668
#undef FIELD_FUNC
670669

671-
template <typename T, typename = bout::utils::EnableIfField<T>, class... Types>
672-
inline void setName(T& f, const std::string& name, Types... args) {
673-
#if BOUT_USE_TRACK
674-
f.name = fmt::format(name, args...);
675-
#endif
676-
}
677-
678-
template <typename T, typename = bout::utils::EnableIfField<T>, class... Types>
679-
inline T setName(T&& f, const std::string& name, Types... args) {
680-
#if BOUT_USE_TRACK
681-
f.name = fmt::format(name, args...);
682-
#endif
683-
return std::forward<T>(f);
684-
}
685-
686670
#endif /* FIELD_H */

src/mesh/coordinates.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1531,7 +1531,7 @@ Field3D Coordinates::Grad_par(const Field3D& var, CELL_LOC outloc,
15311531

15321532
ASSERT1(location == outloc || outloc == CELL_DEFAULT);
15331533

1534-
return setName(::DDY(var, outloc, method) * invSg(), "Grad_par({:s})", var.name);
1534+
return ::DDY(var, outloc, method) * invSg();
15351535
}
15361536

15371537
/////////////////////////////////////////////////////////
@@ -1590,7 +1590,7 @@ Field3D Coordinates::Div_par(const Field3D& f, CELL_LOC outloc,
15901590
f_B.yup(i) = f.yup(i) / Bxy_floc.yup(i);
15911591
f_B.ydown(i) = f.ydown(i) / Bxy_floc.ydown(i);
15921592
}
1593-
return setName(Bxy * Grad_par(f_B, outloc, method), "C:Div_par({:s})", f.name);
1593+
return xy * Grad_par(f_B, outloc, method);
15941594
}
15951595

15961596
/////////////////////////////////////////////////////////

src/solver/impls/euler/euler.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ void EulerSolver::take_step(BoutReal curtime, BoutReal dt, Array<BoutReal>& star
150150
Options& debug = *debug_ptr;
151151
for (auto& f : f3d) {
152152
f.F_var->enableTracking(fmt::format("ddt_{:s}", f.name), debug_ptr);
153-
setName(*f.var, f.name);
154153
debug[fmt::format("pre_{:s}", f.name)] = *f.var;
155154
f.var->allocate();
156155
}

src/solver/impls/pvode/pvode.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,6 @@ BoutReal PvodeSolver::run(BoutReal tout) {
393393

394394
for (auto& f : f3d) {
395395
f.F_var->enableTracking(fmt::format("ddt_{:s}", f.name), debug_ptr);
396-
setName(*f.var, f.name);
397396
}
398397
run_rhs(simtime);
399398

0 commit comments

Comments
 (0)