Skip to content

Commit 9db31f9

Browse files
committed
Merge branch 'master' of github.com:uaf-arctic-eco-modeling/dvm-dos-tem into reorg3
2 parents b2f970e + 91b8cd7 commit 9db31f9

26 files changed

+228
-181
lines changed

CITATION.cff

Lines changed: 34 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
1-
# cff-version: 1.2.0
1+
cff-version: 1.2.0
22
title: "DVMDOSTEM"
33

4-
message: >-
5-
If you use this software, please cite it using the
6-
metadata from this file.
4+
message: "If you use this software, please cite using the metadata in this file."
75
type: software
6+
87
identifiers:
9-
- type: doi
8+
- description: "The Zenodo concept DOI of DVMDOSTEM. Use the Concept DOI representing all versions in citations when it is desirable to cite an evolving research artifact, without being specific about the version."
9+
type: doi
1010
value: 10.5281/zenodo.4281497
11-
description: "Latest release of DVMDOSTEM software"
11+
12+
- description: "The GitHub release URL."
13+
type: url
14+
value: "https://github.com/uaf-arctic-eco-modeling/dvm-dos-tem/releases/tag/v0.8.3"
15+
1216
repository-code: "https://uaf-arctic-eco-modeling/dvm-dos-tem"
1317
url: >-
1418
https://uaf-arctic-eco-modeling.github.io/dvm-dos-tem/index.html#
1519
abstract: >-
16-
`DVMDOSTEM` is an advanced process-based terrestrial
20+
DVMDOSTEM is an advanced process-based terrestrial
1721
ecosystem model (TEM) designed to study ecosystem responses to climate changes
1822
and disturbances. It has a particular focus on permafrost regions (i.e. regions
1923
characterized by soils that stay partially frozen all year round for at
@@ -30,105 +34,54 @@ keywords:
3034
- Tundra
3135
license: MIT
3236
authors:
33-
- family-names: "Carman"
34-
given-names: "Tobey B"
35-
orcid: "https://orcid.org/0000-0003-4617-4674"
36-
affiliation: "Institute of Arctic Biology, University of Alaska Fairbanks, Fairbanks 99775, Alaska, USA"
37-
38-
- family-names: "Genet"
37+
- family-names: "Genet" # Wildfire, calibration, scientific direction,
3938
given-names: "Hélène"
4039
orcid: "https://orcid.org/0000-0003-4537-9563"
4140
affiliation: "Institute of Arctic Biology, University of Alaska Fairbanks, Fairbanks 99775, Alaska, USA"
4241

43-
- family-names: "Rutter"
44-
given-names: "Ruth A"
45-
orcid: "https://orcid.org/0009-0009-7043-6081"
46-
affiliation: "Institute of Arctic Biology, University of Alaska Fairbanks, Fairbanks 99775, Alaska, USA"
47-
48-
- family-names: "Jafarov"
49-
given-names: "Elchin"
50-
orcid: "https://orcid.org/0000-0002-8310-3261"
51-
affiliation: "Woodwell Climate Research Center, Falmouth 02540, Massachusetts, USA"
52-
53-
- family-names: "Euskirchen"
42+
- family-names: "Euskirchen" # DVM, scientific direction
5443
given-names: "Eugénie"
5544
orcid: "https://orcid.org/0000-0002-0848-4295"
5645
affiliation: "Institute of Arctic Biology, University of Alaska Fairbanks, Fairbanks 99775, Alaska, USA"
5746

58-
- family-names: "Maglio"
59-
given-names: "Ben"
60-
orcid: "https://orcid.org/0000-0002-1948-0177"
47+
- family-names: "McGuire" # TEM, scientific direction
48+
given-names: "A. D."
49+
orcid: "https://orcid.org/0000-0003-4646-0750"
6150
affiliation: "Institute of Arctic Biology, University of Alaska Fairbanks, Fairbanks 99775, Alaska, USA"
6251

63-
- family-names: "Clein"
64-
given-names: "Joy"
65-
orcid: "https://orcid.org/0000-0002-2816-5312"
52+
- family-names: "Carman" # Software development and maintenance
53+
given-names: "Tobey B."
54+
orcid: "https://orcid.org/0000-0003-4617-4674"
6655
affiliation: "Institute of Arctic Biology, University of Alaska Fairbanks, Fairbanks 99775, Alaska, USA"
6756

68-
- family-names: "Briones"
69-
given-names: "Valeria"
70-
orcid: "https://orcid.org/0000-0002-5649-851X"
71-
affiliation: "Woodwell Climate Research Center, Falmouth 02540, Massachusetts, USA"
72-
73-
- family-names: "Mullen"
74-
given-names: "Andrew L"
75-
orcid: "https://orcid.org/0000-0002-9127-9996"
76-
affiliation: "Woodwell Climate Research Center, Falmouth 02540, Massachusetts, USA"
77-
78-
- family-names: "Greaves"
79-
given-names: "Heather"
80-
orcid: "https://orcid.org/0000-0002-8800-019X"
57+
- family-names: "Rutter" # Software development and maintenance
58+
given-names: "Ruth A."
59+
orcid: "https://orcid.org/0009-0009-7043-6081"
8160
affiliation: "Institute of Arctic Biology, University of Alaska Fairbanks, Fairbanks 99775, Alaska, USA"
8261

83-
- family-names: "McGuire"
84-
given-names: "A. D."
85-
orcid: "https://orcid.org/0000-0003-4646-0750"
62+
- family-names: "Clein" # Calibration
63+
given-names: "Joy"
64+
orcid: "https://orcid.org/0000-0002-2816-5312"
8665
affiliation: "Institute of Arctic Biology, University of Alaska Fairbanks, Fairbanks 99775, Alaska, USA"
8766

88-
- family-names: "Yuan"
67+
- family-names: "Yuan" # Merging DVM, DOS, and TEM
8968
given-names: "Fengming"
9069
orcid: "https://orcid.org/0000-0003-0910-5231"
9170
affiliation: "Environmental Science Division and Climate Change Science Institute, Oak Ridge National Laboratory, Oak Ridge, TN 37831"
9271

93-
- family-names: "Chang"
94-
given-names: "Chu-Chun"
95-
orcid: "https://orcid.org/0000-0002-2971-2349"
96-
affiliation: "Woodwell Climate Research Center, Falmouth 02540, Massachusetts, USA"
97-
98-
- family-names: "Rady"
99-
given-names: "Joshua M."
100-
orcid: "https://orcid.org/0000-0002-7806-136X"
101-
affiliation: "Woodwell Climate Research Center, Falmouth 02540, Massachusetts, USA"
102-
103-
- family-names: "Teber"
104-
given-names: "Doğukan"
105-
affiliation: "Woodwell Climate Research Center, Falmouth 02540, Massachusetts, USA"
106-
107-
- family-names: "Rogers"
108-
given-names: "Brendan M"
109-
orcid: "https://orcid.org/0000-0001-6711-8466"
110-
affiliation: "Woodwell Climate Research Center, Falmouth 02540, Massachusetts, USA"
111-
112-
- family-names: "Smith"
113-
given-names: "Trevor"
72+
- family-names: "Jafarov" # Calibration
73+
given-names: "Elchin"
11474
affiliation: "Woodwell Climate Research Center, Falmouth 02540, Massachusetts, USA"
75+
orcid: "https://orcid.org/0000-0002-8310-3261"
11576

116-
- family-names: "Mevenkamp"
117-
given-names: "Hannah"
118-
orcid: "https://orcid.org/0000-0002-7241-5374"
119-
affiliation: "Institute of Arctic Biology, University of Alaska Fairbanks, Fairbanks 99775, Alaska, USA"
120-
121-
- family-names: "Lara"
122-
given-names: "Mark J"
123-
orcid: "https://orcid.org/0000-0002-4670-7031"
124-
affiliation: "Department(s) of Plant Biology and Geography, University of Illinois Urbana-Champaign, Urbana, IL 61801"
77+
- family-names: "Yi" # DOS
78+
given-names: "Shuhua"
79+
orcid: "https://orcid.org/0000-0003-4932-8237"
80+
affiliation: "Laboratory of Herbage Improvement And Agro-ecosystem, Lanzhou University, Lanzhou 730000, Gansu Province, P.R. China"
12581

126-
- family-names: "Zhuang"
82+
- family-names: "Zhuang" # TEM
12783
given-names: "Qianlai"
12884
orcid: "https://orcid.org/0000-0002-4536-9851"
12985
affiliation: "Department of Earth, Atmospheric, and Planetary Science, Purdue University, West Lafayette IN 47907 USA"
13086

131-
- family-names: "Yi"
132-
given-names: "Shuhua"
133-
affiliation: "School of Geographic Sciences, Nantong University, Nantong Jiangsu, 226019 P.R. China"
13487

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ ARG GID=1000
4646

4747
# === IMAGE FOR GENERAL C++ DEVELOPMENT =======================================
4848
# General development tools, compilers, text editors, etc
49-
FROM ubuntu:focal AS cpp-dev
49+
FROM ubuntu:jammy AS cpp-dev
5050
ENV DEBIAN_FRONTEND=noninteractive
5151
RUN apt-get update -y --fix-missing && apt-get install -y \
5252
build-essential \
@@ -110,7 +110,7 @@ RUN apt-get update --fix-missing -y && apt-get install -y \
110110
libreadline-dev \
111111
libsqlite3-dev \
112112
llvm \
113-
python-openssl \
113+
python3-openssl \
114114
tk-dev \
115115
wget \
116116
xz-utils \
@@ -237,7 +237,7 @@ USER $UNAME
237237
# A container run from this images will need to have data supplied (i.e. one or
238238
# more mounted volumes) in order to run dvmdostem.
239239
#
240-
FROM ubuntu:focal AS dvmdostem-run
240+
FROM ubuntu:jammy AS dvmdostem-run
241241
ARG UNAME
242242
ARG UID
243243
ARG GID

Dockerfile-mapping-support

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ ARG UNAME=develop
77
ARG UID=1000
88
ARG GID=1000
99

10+
# Should try this updated image at some point...
11+
#FROM ghcr.io/osgeo/gdal:ubuntu-full-3.11.0
12+
1013
# need this for netCDF
1114
FROM osgeo/gdal:ubuntu-full-3.2.2
1215

HOWTO_RELEASE.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,12 @@
3939
go back to step 1. You will need to delete the tag created in step 3 so that
4040
you can re-create it.
4141
42-
5. Bump the version number in `docs_src/sphinx/sources/conf.py, commit the
43-
change and then build the docs:
42+
5. Bump version numbers:
43+
- in `docs_src/sphinx/sources/conf.py `, and
44+
- in the `CITATION.cff` file, specifically under the
45+
`identifiers.description` for the Github release URL.
46+
47+
Then commit the changes and build the docs:
4448
4549
```
4650
$ docker compose exec --workdir /work/docs_src/sphinx \

config/config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@
123123
},
124124

125125
"model_settings": {
126+
"cell_timelimit": 120, //Run time limit per cell in seconds. 0 for no limit.
126127
"dynamic_lai": 1, // from model (1) or from input (0)
127128
"baseline_start": 1901, //start year for baseline EQ climate
128129
"baseline_end": 1931 //end year for baseline EQ climate

config/output_spec.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ LFVC,Litterfall C from vascular PFTs,g/m2/time,,,invalid,,,invalid,double,
5151
LFVN,Litterfall N from vascular PFTs,g/m2/time,,,invalid,,,invalid,double,
5252
LWCLAYER,LWC by layer,m3/m3,,,invalid,invalid,invalid,forced,double,
5353
MINEC,Mineral SOM C,g/m2,,,invalid,invalid,invalid,invalid,double,
54+
MOSSDEATHC,Dead moss C,g/m2,,,,invalid,invalid,invalid,double,
5455
MOSSDZ,Moss thickness,m,,invalid,invalid,invalid,invalid,invalid,double,
5556
NDRAIN,N losses from drainage (AVLN),g/m2/time,invalid,invalid,invalid,invalid,invalid,invalid,double,
5657
NETNMIN,Soil net N mineralization,g/m2/time,,,invalid,invalid,invalid,,double,

docs_src/sphinx/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
author = 'Tobey Carman, Ruth Rutter, Helene Genet, Eugenie Euskirchen'
2626

2727
# The full version, including alpha/beta/rc tags
28-
release = 'v0.8.1'
29-
version = 'v0.8.1'
28+
release = 'v0.8.3'
29+
version = 'v0.8.3'
3030

3131

3232
# -- General configuration ---------------------------------------------------

include/CohortLookup.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ class CohortLookup {
208208

209209
// Q10 and soil moisture factors for Rh
210210
double rhq10;
211+
double rhmoistfrozen;
211212
double moistmin;
212213
double moistopt;
213214
double moistmax;

include/ModelData.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ class ModelData {
113113
bool dynamic_LAI; // True: calculate LAI as a function of vegc, False: use static_lai from CohortLookup
114114
bool useseverity; // using fire severity inputs
115115

116+
int cell_timelimit; //Time limit in seconds for cell computation time
117+
time_t cell_stime; //Start time per cell. Move to Runner?
118+
116119
bool outSiteDay;
117120

118121
bool get_envmodule();

include/TEMUtilityFunctions.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,19 @@ extern src::severity_logger< severity_level > glg;
3333

3434
namespace temutil {
3535

36+
class TEMException : public std::exception {};
37+
38+
class NetCDFDefineModeException : public TEMException {
39+
public:
40+
const char* what() const noexcept override {
41+
return "NetCDF define mode exception.";
42+
}
43+
};
44+
45+
class CellTimeExceeded : public TEMException {};
46+
47+
48+
3649
/** A 'predicate' function that can be used with std::remove_if(..)
3750
3851
Intended to be used with STL containers, so requirements on T are

0 commit comments

Comments
 (0)