<div dir="ltr">Hi Mario,<div><br></div><div>That's definitely a possibility. Can you tell us a bit more about the time mask? </div><div><br></div><div>I used to get this kind of error at the end of the forward portion of my adjoint runs, until I doubled the length of my time masks. So if you are running for N timesteps, you'll want a vector of length 2*N. The entries should be zero for those timesteps that you don't want to include in the objective function, whereas they should be non-zero for those timesteps that you do want to include in the objective function. <br><br>If this is for a single timestep at the end of the forward run, for example, you'll want the Nth entry to be 1.0. If you want to include the last ten timesteps, for example, then you'll want the last ten entries to be 0.1. (You have to normalise it yourself in this way - the normalisation doesn't happen automatically). <br><br>Thanks,<br>Dani<br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 22, 2023 at 11:04 AM mario wrk <<a href="mailto:wrkmario@gmail.com">wrkmario@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Dear MITgcm community,<br></div><div>I have an end-of-file error, but I am sure which file is wrong. I am testing ecco's generic cost function with masks, and using gencost_avgperiod(1) = 'step' , the costfinal is zero, so might it be the mask? any hint?</div><div><br></div><div>Best regards,</div><div>Mario</div><div><br></div>end-of-file during read, unit 76, file /MITgcm/verification/lab_sea/RUN/divided.ctrl<br>Image PC Routine Line Source<br>libifcoremt.so.5 00001555553E6E79 for__io_return Unknown Unknown<br>libifcoremt.so.5 000015555542B06E for_read_seq_lis Unknown Unknown<br>mitgcmuv_ad 0000000000738D50 Unknown Unknown Unknown<br>mitgcmuv_ad 00000000009EF259 Unknown Unknown Unknown<br>mitgcmuv_ad 0000000000979594 Unknown Unknown Unknown<br>mitgcmuv_ad 00000000004039B2 Unknown Unknown Unknown<br><a href="http://libc-2.28.so" target="_blank">libc-2.28.so</a> 0000155550887493 __libc_start_main Unknown Unknown<br>mitgcmuv_ad 00000000004038BE Unknown Unknown Unknown<br></div>
_______________________________________________<br>
MITgcm-support mailing list<br>
<a href="mailto:MITgcm-support@mitgcm.org" target="_blank">MITgcm-support@mitgcm.org</a><br>
<a href="http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support" rel="noreferrer" target="_blank">http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support</a><br>
</blockquote></div>