Skip to content

Commit

Permalink
Initialize the date in log_param_time
Browse files Browse the repository at this point in the history
I was getting initialization problems from the initialized date in the
`log_param_date_as_time` test, so this includes an initialization step.

Previously, random(?) values would fill the `ticks` field, which left
the zero-tick case uncovered (usually).  This removes that problem.
  • Loading branch information
marshallward committed Jan 7, 2022
1 parent c780f45 commit 1ba1d2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/framework/unit_tests/MOM_file_parser_tests.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1305,6 +1305,7 @@ subroutine test_log_param_time_as_date
close(param_unit)

call open_param_file(param_filename, param)
sample = set_date(1980, 1, 1, 0, 0, 0)
call log_param(param, module_name, sample_param_name, sample, desc=desc, &
log_date=.true.)
call close_param_file(param)
Expand Down

0 comments on commit 1ba1d2d

Please sign in to comment.