|
Tempus Version of the Day
Time Integration
|
#include <cmath>#include <functional>#include <string>#include <vector>#include "Teuchos_LocalTestingHelpers.hpp"#include "Teuchos_ParameterList.hpp"#include "Teuchos_XMLParameterListHelpers.hpp"#include "Thyra_DetachedMultiVectorView.hpp"#include "Thyra_MultiVectorStdOps.hpp"#include "Thyra_VectorStdOps.hpp"#include "Tempus_IntegratorAdjointSensitivity.hpp"#include "../TestModels/SinCosModel.hpp"#include "Tempus_ConvergenceTestUtils.hpp"Go to the source code of this file.
Namespaces | |
| namespace | Tempus_Test |
Functions | |
| Teuchos::RCP< Thyra::MultiVectorBase< double > > | Tempus_Test::sinCosExactResponseSensitivity (const SinCosModel< double > &model, const std::string &responseType, const double t0, const double tf, const std::vector< double > &responseTimes) |
| Exact sensitivity dJ/dp (Jacobian form, x_space x num_p) of the "Time Integral" or "Sum Over Times" response of the SinCos model, whose response is g(x) = x. | |
| void | Tempus_Test::computeSinCosAdjointResponseErrors (const std::string &xmlFile, const std::function< void(Teuchos::ParameterList &)> &configure, const std::string &responseType, const std::vector< double > &responseTimes, const int nTimeStepSizes, const double dt0, const bool useAdjointModel, std::vector< double > &stepSizes, std::vector< double > &errors, double &stepperOrder, Teuchos::FancyOStream &out, bool &success) |
| Solve the SinCos adjoint problem with the "Time Integral" or "Sum Over Times" response for a sequence of time step sizes, and return the time step sizes and the errors of dJ/dp. | |