PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900
Classes | Public Member Functions | Private Member Functions | Private Attributes | List of all members
pism::ScalarForcing Class Reference

#include <ScalarForcing.hh>

Classes

struct  Impl
 

Public Member Functions

 ScalarForcing (const Context &ctx, const std::string &option_prefix, const std::string &variable_name, const std::string &units, const std::string &output_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 &output_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 &output_units, const std::string &long_name, bool periodic)
 
double integral (double a, double b) const
 

Private Attributes

Implm_impl
 

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 38 of file ScalarForcing.hh.


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