Skip to content

Commit d65c426

Browse files
authored
Merge pull request #17 from ekluzek/py3floorfix
Changes to fix #10, where an integer divide needs the floor operator
2 parents 5557d66 + 85b4540 commit d65c426

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

cime_config/buildnml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def _create_namelists(case, confdir, inst_string, infile, nmlgen, data_list_path
114114
expect(False, "mosart_ncpl %s doesn't divide evenly into basedt %s\n"
115115
%(mosart_ncpl, basedt))
116116
else:
117-
coupling_period = basedt / mosart_ncpl
117+
coupling_period = basedt // mosart_ncpl
118118
nmlgen.set_value("coupling_period", value=coupling_period)
119119

120120
#----------------------------------------------------

docs/ChangeLog

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
===============================================================
2+
Tag name: release-cesm2.0.02
3+
Originator(s): erik/billsacks
4+
Date: Oct 12, 2018
5+
One-line Summary: Fix for py3
6+
7+
MOSART Master Tag This Corresponds To: mosart1_0_31 (with changes)
8+
9+
Issues Fixed: #10
10+
#10 -- With python3, coupling_period is real rather than int
11+
12+
Science changes since: release-cesm2.0.01
13+
* None
14+
Software changes since: release-cesm2.0.01
15+
* None
16+
17+
Pull Requests that document the changes (include PR ids):
18+
19+
#17 -- Changes to fix #10, where an integer divide needs the floor operator
20+
21+
Testing:
22+
123
===============================================================
224
Tag name: release-cesm2.0.01
325
Originator(s): erik/jedwards4b
@@ -10,7 +32,7 @@ kind rather than real(4), which is a better mechanism. Also ncd_getiodesc
1032
will read in PIO_DOUBLE for input xtype= PIO_DOUBLE or PIO_REAL. Most of this
1133
is direct from jedwards4b (other than r8th addition).
1234

13-
MOSART Master Tag This Corresponds To: Identical to mosart1_0_31
35+
MOSART Master Tag This Corresponds To: mosart1_0_31 (with changes)
1436

1537
Science changes since: release-cesm2.0.00
1638
Added in 8th degree routing file (r8th)
@@ -19,6 +41,7 @@ Software changes since: release-cesm2.0.00
1941
Corrects the integer fill value. Needed for pio2.
2042

2143
Pull Requests that document the changes (include PR ids):
44+
Testing:
2245

2346
#15 -- Bring in changes for xlf compiler, pio, and python3 update
2447
(#13 and #6 moved to release-cesm2.0)

0 commit comments

Comments
 (0)