Skip to content

Commit

Permalink
Merge pull request #686 from Pressio/issue_683
Browse files Browse the repository at this point in the history
fixes 682 and 683
  • Loading branch information
fnrizzi authored Sep 25, 2024
2 parents 123e052 + 3e0d967 commit b38bb6a
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 224 deletions.
16 changes: 0 additions & 16 deletions include/pressio/ode/impl/ode_advance_n_steps.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ void advance_n_steps_with_dt_policy(StepperType & stepper,
Args && ... args)
{

#ifdef PRESSIO_ENABLE_TEUCHOS_TIMERS
auto timer = Teuchos::TimeMonitor::getStackedTimer();
timer->start("time loop");
#endif

using step_t = typename ::pressio::ode::StepCount::value_type;
IndVarType time = start_val;
observer(StepCount{0}, start_val, odeState);
Expand All @@ -99,25 +94,14 @@ void advance_n_steps_with_dt_policy(StepperType & stepper,
// which is the trivial case is a noop
guesser(stepWrap, ::pressio::ode::StepStartAt<IndVarType>(time), odeState);

#ifdef PRESSIO_ENABLE_TEUCHOS_TIMERS
timer->start("time step");
#endif
stepper(odeState,
::pressio::ode::StepStartAt<IndVarType>(time),
stepWrap, dt,
std::forward<Args>(args)...);

#ifdef PRESSIO_ENABLE_TEUCHOS_TIMERS
timer->stop("time step");
#endif

time += dt.get();
observer(::pressio::ode::StepCount(step), time, odeState);
}

#ifdef PRESSIO_ENABLE_TEUCHOS_TIMERS
timer->stop("time loop");
#endif
}


Expand Down
17 changes: 0 additions & 17 deletions include/pressio/ode/impl/ode_advance_to_target_time.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,6 @@ void to_target_time_with_step_size_policy(StepperType & stepper,
return;
}

#ifdef PRESSIO_ENABLE_TEUCHOS_TIMERS
auto timer = Teuchos::TimeMonitor::getStackedTimer();
timer->start("time loop");
#endif

using step_t = typename StepCount::value_type;

IndVarType time = start_time;
Expand Down Expand Up @@ -148,10 +143,6 @@ void to_target_time_with_step_size_policy(StepperType & stepper,

print_step_and_current_time(step, time, dt.get());

#ifdef PRESSIO_ENABLE_TEUCHOS_TIMERS
timer->start("time step");
#endif

if (enableTimeStepRecovery)
{
bool needStop = false;
Expand Down Expand Up @@ -183,10 +174,6 @@ void to_target_time_with_step_size_policy(StepperType & stepper,
std::forward<Args>(args)...);
}

#ifdef PRESSIO_ENABLE_TEUCHOS_TIMERS
timer->stop("time step");
#endif

time += dt.get();
observer(::pressio::ode::StepCount(step), time, odeState);

Expand All @@ -198,10 +185,6 @@ void to_target_time_with_step_size_policy(StepperType & stepper,

step++;
}

#ifdef PRESSIO_ENABLE_TEUCHOS_TIMERS
timer->stop("time loop");
#endif
}

}}}//end namespace pressio::ode::impl
Expand Down
2 changes: 2 additions & 0 deletions include/pressio/rom/impl/lspg_unsteady_reconstructor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
#ifndef ROM_IMPL_LSPG_UNSTEADY_RECONSTRUCTOR_HPP_
#define ROM_IMPL_LSPG_UNSTEADY_RECONSTRUCTOR_HPP_

#include <fstream>

namespace pressio{ namespace rom{ namespace impl{

template<typename reduced_state_type>
Expand Down
2 changes: 2 additions & 0 deletions include/pressio/rom/linear_rom.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
#ifndef ROM_LINEAR_ROM_API_HPP_
#define ROM_LINEAR_ROM_API_HPP_

#include <fstream>

namespace pressio{ namespace rom{ namespace linear{

namespace impl{
Expand Down
5 changes: 0 additions & 5 deletions include/pressio/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,8 @@

#include "./utils/utils_static_constants.hpp"
#include "./utils/utils_instance_or_reference_wrapper.hpp"
#include "./utils/utils_read_ascii_matrix_std_vec_vec.hpp"
#include "./utils/utils_noop.hpp"

#ifdef PRESSIO_ENABLE_TEUCHOS_TIMERS
#include "./utils/utils_teuchos_performance_monitor.hpp"
#endif

#include "./utils/logger/utils_logger.hpp"

#endif
84 changes: 0 additions & 84 deletions include/pressio/utils/utils_read_ascii_matrix_std_vec_vec.hpp

This file was deleted.

102 changes: 0 additions & 102 deletions include/pressio/utils/utils_teuchos_performance_monitor.hpp

This file was deleted.

0 comments on commit b38bb6a

Please sign in to comment.