JGCRI / hector

The Hector Simple Climate Model
http://jgcri.github.io/hector/
GNU General Public License v3.0
111 stars 47 forks source link

Require dates for more model variables #605

Closed bpbond closed 2 years ago

bpbond commented 2 years ago

591 documents that, if you call fetchvars(hc, dates = NA) you get back the end-of run Ftot, Ca, FCO2, and Tgav data with "NA" for year.

Fixing this was slightly tricky. Previously, all these variables could be queried from their respective model components without supplying a date, and the current value internal value would be returned. This was handy but opened the door to the R user querying without a date as well. Fixing this required:

Closes #591