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

averaging flag error with restarts

I am having a similar problem to the following thread, started earlier this year: "http://forum.cgd.ucar.edu/showthread.php?2142-Problem-with-CAM4-while-running-for-restart-Run."
Basically, I get an error when I do restarts that tells me that I have an averaging flag error. According to this aforementioned thread, a patch was proposed that solved the problem.
Below, I attached the response to that thread and the proposed patch (see below)

I have tried to implement this patch the way I interpreted it, but it didnt work. I think I am misinterpreting the patch. Can you explain what the symbols mean in the written
patch? For example, I assumed that a "" symbol meant to add lines. Is this correct? I also didnt quite understand the line numbers,
for example does "6121a6122,6130" mean insert this from lines 6121 to lines 6130?

If you could clarify this for me, I could go ahead and try the patch. It should work as I am using the same version of CCSM/CAM that the other user was using.

Thanks for your help,

Cara-Lyn

***********************************

response from eaton:

I have been able to reproduce this problem and confirm that it is a bug. It turns out that the bug is in the empty_htapes functionality. This was recently discovered and fixed on CAM's trunk. The fix will be part of the cesm1_0_4 release which should happen in a month or so. Until then there are two possible workarounds:

1. remove empty_htapes from the namelist and instead use fexcl1 to remove the unneeded history fields from the default output. The output fields are listed in the logfile which can be used as a source for the field names to use in the fexcl1 specification. But there are quite a few of them so this isn't very convenient.

2. Here is patch for the ccsm4_0 version of cam_history.F90.

520c520
< if ( htapes_defined ) then
---
> if ( nsrest==1 ) then
1442c1442
< htapes_defined = .true.
---
>
1876c1876
< htapes_defined = .true.
---
>
6121a6122,6130
>
> listentry=>masterlinkedlist
> do while(associated(listentry))
> listentry%actflag( = .false.
> listentry%act_sometape = .false.
> listentry=>listentry%next_entry
> end do
> htapes_defined = .true.
>

************************************
 
Top