Ice Sheet System Model  4.18
Code documentation
Functions
CuffeyTemperate.cpp File Reference
#include <math.h>
#include "./elements.h"
#include "../Numerics/numerics.h"

Go to the source code of this file.

Functions

IssmDouble CuffeyTemperate (IssmDouble temperature, IssmDouble waterfraction, IssmDouble stressexp)
 

Function Documentation

◆ CuffeyTemperate()

IssmDouble CuffeyTemperate ( IssmDouble  temperature,
IssmDouble  waterfraction,
IssmDouble  stressexp 
)

Definition at line 11 of file CuffeyTemperate.cpp.

11  {
12 
13  return Cuffey(temperature)*pow(1+181.25*max(0., min(0.01, waterfraction)), -1./stressexp);
14 
15 }
Cuffey
IssmDouble Cuffey(IssmDouble temperature)
Definition: Cuffey.cpp:11
min
IssmDouble min(IssmDouble a, IssmDouble b)
Definition: extrema.cpp:14
max
IssmDouble max(IssmDouble a, IssmDouble b)
Definition: extrema.cpp:24