<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="font-family: HelveticaNeue; font-size: 12px;" class="">Hi everyone, </div><div style="font-family: HelveticaNeue; font-size: 12px;" class=""><br class=""></div><div style="font-family: HelveticaNeue; font-size: 12px;" class="">I’ve recently dowloaded the MITgcm checkpoint68d and stumbled upon an error in the OBCS/EXF handling that I suppose might be related to the commit </div><div style="font-family: HelveticaNeue; font-size: 12px;" class="">“Add interannual monthly forcing to exf “. </div><div style="font-family: HelveticaNeue; font-size: 12px;" class="">I’ve run this same configuration successfully on an older version of the MITgcm (checkpoint67b) but wanted to use the option OBCSbalanceSurf so I’ve upgraded to a newer version. </div><div style="font-family: HelveticaNeue; font-size: 12px;" class=""><br class=""></div><div style="font-family: HelveticaNeue; font-size: 12px;" class="">I run a configuration with OBCS read from files and time levels controlled from the EXF_NML_OBCS. </div><div style="font-family: HelveticaNeue; font-size: 12px;" class="">In my specific case, I have only one open boundary, the southern one and here is how my EXF_NML_OBCS looks like </div><div style="font-family: HelveticaNeue; font-size: 12px;" class=""><br class=""></div><div style="font-family: HelveticaNeue; font-size: 12px;" class=""><p class=""> &EXF_NML_OBCS</p><p class="">#</p><p class=""> obcsSstartdate1 = 20160101,</p><p class=""> obcsSstartdate2 = 000000,</p><p class=""> obcsSperiod = 21600.,</p><p class="">#</p><p class="">The configuation was compiling correctly but failing to run with the following error</p><p class=""><span style="font-family: Menlo;" class="">(PID.TID 0000.0001) *** ERROR *** CAL_CHECKDATE: Invalid month in date(1)= 0</span></p><div class=""><br class="webkit-block-placeholder"></div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class="">(PID.TID 0000.0001) *** ERROR *** CAL_FULLDATE: fatal error from cal_CheckDate</div><div style="margin: 0px; font-stretch: normal; line-height: normal; font-family: Menlo;" class=""><br class=""></div><p class="">This error is caused by the field OBCSN that in my case is not defined and doesn’t have a Startdate set. However, I suppose that with the modification to the file <a title="pkg/exf/exf_getffield_start.F" href="https://github.com/MITgcm/MITgcm/compare/checkpoint68d...master#diff-5c86463f942c7c23fd7c4b443144629c9036aa58922d7e67cc6ccb3db613665f" class="">exf_getffield_start.F</a> and specifically the condition in the new lines 80-81 <span style="font-family: Menlo;" class=""> </span></p><br class="">IF ( useCAL .AND. .NOT.(fld_period.EQ.-12. .OR. & (fld_period.EQ.-1 .AND. useYearlyFields)) ) THEN<br class=""></div><div style="font-family: HelveticaNeue; font-size: 12px;" class=""><br class=""></div><div style="font-family: HelveticaNeue; font-size: 12px;" class="">is true even for non-active OBC hence the model is unable to run because in the case of a non-active boundary the date is equal to zero. </div><div style="font-family: HelveticaNeue; font-size: 12px;" class=""><br class=""></div><div style="font-family: HelveticaNeue; font-size: 12px;" class="">Reverting to the old configuration IF ( useCAL .AND. fld_period.GT.0. ) THEN solved the problem for me but I don’t think my OBCS configuration is a corner case and thought this might be useful to everyone. </div><div style="font-family: HelveticaNeue; font-size: 12px;" class=""><br class=""></div><div style="font-family: HelveticaNeue; font-size: 12px;" class="">Hope this is somehow clear</div><div style="font-family: HelveticaNeue; font-size: 12px;" class=""><br class=""></div><div style="font-family: HelveticaNeue; font-size: 12px;" class="">Cheers, </div><div style="font-family: HelveticaNeue; font-size: 12px;" class="">Roberta </div><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div><font face="Calibri" class=""><span style="font-style: normal;" class="">-- <br class="">Roberta Sciascia<br class=""><br class="">Consiglio Nazionale delle Ricerche<br class="">ISMAR - Istituto di Scienze Marine<br class="">Sede Secondaria di Lerici <br class="">Forte Santa Teresa – 19032 Lerici (SP), Italy<br class="">tel: +39 0187 1788903</span></font><br class=""><br class=""></div><div class=""><br class=""></div></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""></body></html>