Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

chl_data and CLK_TCK bugs

kshell

New Member
If you have a really long path for the chl_data pop input file (> 80 characters), the ocean model will fail when it first looks for this file. This happened to me while trying to run the reference case for the branch restart test (TBR.01a). I'm guessing other people will run in to this issue when trying to run the tests, since the default test case names are long.

To fix, modify the sw_absorption.F file in models/ocn/pop/source. Change line 208 from
character(char_len)::
to
character(char_len_long)
This adds extra characters to the file name variable (its length increases from 80 to 256). Hopefully you won't need more than that.

Another minor issue (which was much easier to track down) is that CLK_TCK in models/utils/mct/mpeu/get_zeits.c is a deprecated command, so some compilers don't work with it. For my compiler (ifort on a centos, intel processor machine), changing it to CLOCKS_PER_SEC worked.

Hopefully this will save others some time.
-Karen
 
Top