PISM, A Parallel Ice Sheet Model
stable v2.0.6 committed by Constantine Khrulev on 2023-01-23 15:14:38 -0900
|
#include <ScalarForcing.hh>
Public Member Functions | |
ScalarForcing (const Context &ctx, const std::string &option_prefix, const std::string &variable_name, const std::string &units, const std::string &glaciological_units, const std::string &long_name) | |
ScalarForcing (const Context &ctx, const std::string &filename, const std::string &variable_name, const std::string &units, const std::string &glaciological_units, const std::string &long_name, bool periodic) | |
~ScalarForcing () | |
double | value (double t) const |
double | average (double t, double dt) const |
Private Member Functions | |
ScalarForcing (const ScalarForcing &other) | |
ScalarForcing & | operator= (const ScalarForcing &) |
void | initialize (const Context &ctx, const std::string &filename, const std::string &variable_name, const std::string &units, const std::string &glaciological_units, const std::string &long_name, bool periodic) |
double | integral (double a, double b) const |
Private Attributes | |
double | m_period |
double | m_period_start |
std::vector< double > | m_times |
std::vector< double > | m_values |
gsl_interp_accel * | m_acc |
gsl_spline * | m_spline |
This class helps with loading and using scalar forcings such as scalar temperature offsets.
It processes command-line options, reads data from a file, and gets data corresponding to a time interval [t, t+dt].
Definition at line 40 of file ScalarForcing.hh.