Skip to content

Commit 1ef87ca

Browse files
CHG: added warning so that people start using cuffey, which is more accurate for warmer ice
1 parent a45f1dd commit 1ef87ca

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/m/materials/paterson.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
% Usage:
88
% rigidity=paterson(temperature)
99

10+
warning('paterson is outdated, please consider using cuffey instead')
11+
1012
if any(temperature<0)
1113
error('input temperature should be in Kelvin (positive)');
1214
end

src/m/materials/paterson.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ def paterson(temperature):
1313
rigidity = paterson(temperature)
1414
"""
1515

16+
print('paterson is outdated, please consider using cuffey instead')
17+
1618
if np.any(temperature < 0.0):
1719
raise RuntimeError('input temperature should be in Kelvin (positive)')
1820

0 commit comments

Comments
 (0)