Skip to content

Commit

Permalink
Fix cppcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
pmatalon committed Nov 18, 2024
1 parent 828c067 commit 1b41a2e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions include/samurai/samurai.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ namespace samurai
#ifdef SAMURAI_WITH_MPI
MPI_Init(&argc, &argv);
#endif
if (args::timers)
{
times::timers.start("total runtime");
}
times::timers.start("total runtime");
}

inline void initialize(int& argc, char**& argv)
Expand Down
3 changes: 2 additions & 1 deletion include/samurai/schemes/fv/FV_scheme.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,9 @@ namespace samurai
{
times::timers.start(name() + " operator");
auto explicit_scheme = make_explicit(derived_cast());
return explicit_scheme.apply_to(d, input_field);
auto output_field = explicit_scheme.apply_to(d, input_field);
times::timers.stop(name() + " operator");
return output_field;
}

void apply(std::size_t d, output_field_t& output_field, input_field_t& input_field) const
Expand Down

0 comments on commit 1b41a2e

Please sign in to comment.