Program Listing for File LinearFreezing.hpp¶
↰ Return to documentation for file (src/include/LinearFreezing.hpp)
#ifndef SRC_INCLUDE_LINEARFREEZING_HPP
#define SRC_INCLUDE_LINEARFREEZING_HPP
#include "IFreezingPoint.hpp"
#include "constants.hpp"
namespace Nextsim {
class LinearFreezing : public IFreezingPoint {
public:
// ~LinearFreezing() = default;
inline double operator()(double sss) const override
{
// μ is positive, so a negative sign is needed so that the freezing point is below zero.
return -Water::mu * sss;
}
};
}
#endif /* SRC_INCLUDE_LINEARFREEZING_HPP */