Skip to content

Commit

Permalink
Merge Pull Request #7928 from trilinos/Trilinos/piro-tr-time-step
Browse files Browse the repository at this point in the history
Automatically Merged using Trilinos Pull Request AutoTester
PR Title: Piro: fix incorrect calculation of trapezoid rule time step
PR Author: lxmota
  • Loading branch information
trilinos-autotester authored Aug 28, 2020
2 parents 938de38 + aee6cf9 commit 6761d1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/piro/src/Piro_TrapezoidRuleSolver_Def.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ TrapezoidRuleSolver(const Teuchos::RCP<Teuchos::ParameterList> &appParams_,
numTimeSteps = trPL->get("Num Time Steps", 10);
t_final = trPL->get("Final Time", 0.1);
t_init = trPL->get("Initial Time", 0.0);
delta_t = t_final / numTimeSteps;
delta_t = (t_final - t_init) / numTimeSteps;

*out << "\nB) Using Trapezoid Decorator and NOX Solver\n";

Expand Down

0 comments on commit 6761d1a

Please sign in to comment.