PISM, A Parallel Ice Sheet Model
Public Member Functions | Private Member Functions | Private Attributes | List of all members
pism::ScalarForcing Class Reference

#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)
 
ScalarForcingoperator= (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
 

Detailed Description

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.


The documentation for this class was generated from the following files: