Skip to content

Commit

Permalink
In the absence of time_offset, set reference basline year in netcdf o…
Browse files Browse the repository at this point in the history
…utput to 0.

When setting start and end in config, interpret as beginning of year.
Example: A run with tstart = 1960 will run from 01.01.1960 with forcing assigned as 2016 in input file. With tend = 2015 the last year is 01.01.2014 to 01.01.2015with forcing from file for year 2014. The run stops at 01.01.2015.
  • Loading branch information
hgoelzer committed Sep 11, 2022
1 parent 425e67f commit 1f9b385
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libglimmer/glimmer_ncio.F90
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ subroutine glimmer_nc_createfile(outfile, model, baseline_year)
if (present(baseline_year)) then
sub_baseline_year = baseline_year
else
sub_baseline_year = 1
sub_baseline_year = 0
end if

! create new netCDF file
Expand Down

0 comments on commit 1f9b385

Please sign in to comment.