When running ./preview_namelists under python3, I get a death in mosart's buildnml:
Invalid values ['10800.0']
ERROR: Variable 'coupling_period' has invalid value ['10800.0'].
I think the problem is that this line:
coupling_period = basedt / mosart_ncpl
Generates a float in python3. If this is supposed to round down (as would happen in python2), then it should use // rather than / (though I'm not sure if that's guaranteed to be portable to python2).
I tested the "floor" operator // in python2 and it works fine. From looking at python operators it looks like it's a standard. So this should be done along with the same change in rtm.
When running
./preview_namelists
under python3, I get a death in mosart's buildnml:I think the problem is that this line:
Generates a float in python3. If this is supposed to round down (as would happen in python2), then it should use
//
rather than/
(though I'm not sure if that's guaranteed to be portable to python2).