Skip to content

Commit

Permalink
Use the floor operator rather than divide as python3 turns the divide…
Browse files Browse the repository at this point in the history
… into reals, but the floor does whats desired
  • Loading branch information
ekluzek committed Oct 12, 2018
1 parent 654c6f4 commit 22f22ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cime_config/buildnml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def _create_namelists(case, confdir, inst_string, infile, nmlgen, data_list_path
expect(False, "rof_ncpl %s doesn't divide evenly into basedt %s\n"
%(rof_ncpl, basedt))
else:
rtm_tstep = basedt / rof_ncpl
rtm_tstep = basedt // rof_ncpl
nmlgen.set_value("rtm_tstep", value=rtm_tstep)

#----------------------------------------------------
Expand Down

0 comments on commit 22f22ef

Please sign in to comment.