<div dir="auto">I’m assuming the model wrote divided.ctrl correctly?</div><div dir="auto">What numbers are in it?</div><div dir="auto"><br></div><div dir="auto">Matt</div><div dir="auto"><br></div><div dir="auto"><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Mar 23, 2023 at 2:28 AM Dani Jones <<a href="mailto:dcjones.work@gmail.com">dcjones.work@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Mario,<div><br></div><div><div><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="color:rgb(0,0,0);font-family:Calibri,Arial,Helvetica,sans-serif;font-size:small"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">Thank you for telling the 2*N trick, but I guess the issue is not here, because the cost function can be calculated. </blockquote><div><br></div><div>The cost function is calculated during the forward part of the run. So, back when I used to run into this issue, the cost function would indeed be non-zero. To say it another way, you can have a non-zero cost function and still run into this issue. </div><div> </div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">Now I have all the expected outputs, costfinal and ADJ* files, the costfinal and sensitivity seems right. (Precisely my cost was zero because the readBinaryPrec in data does not match)<br></blockquote><div><br></div><div>Great! </div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">So the model finished, but weirdly this this "end of file during read" error still exists, after the the forward call and then 1st divided.ctrl is created, this err message appears<br></blockquote><div><br></div><div>I take it you're using the divided adjoint (DIVA) approach? I'll have to send my apologies, as I don't know much about that. I'm guessing you've checked that the end-of-file characters are consistent in all the namelist files? <br><br>Thanks,<br>Dani </div><div><br></div><div> </div></div></div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 22, 2023 at 8:33 PM mario wrk <<a href="mailto:wrkmario@gmail.com" target="_blank">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">HI Dani, <div>Thank you for telling the 2*N trick, but I guess the issue is not here, because the cost function can be calculated. Now I have all the expected outputs, costfinal and ADJ* files, the costfinal and sensitivity seems right. (Precisely my cost was zero because the readBinaryPrec in data does not match)</div><div><br></div><div>So the model finished, but weirdly this this "end of file during read" error still exists, after the the forward call and then 1st <span style="color:rgb(231,76,60);font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",Courier,monospace;font-size:12px;white-space:nowrap">divided.ctrl </span>is created, this err message appears</div><div>it points to some compiler issue libifcoremt.so.5, executable and srun, but then the second and last adjoint call ended normally and I do have all results</div><div><b style="background-color:rgb(255,0,0)">forrtl: severe (24): end-of-file during read, unit 76, file /MITgcm/verification/lab_sea/run/divided.ctrl</b><br></div><div>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 00000000007309E0 Unknown Unknown Unknown<br></div><div>srun: error: l30211: tasks 834,838,840,855,859,864-865,877,879,882-883,892,895,898,902-906,909-910,912-914,917: Exited with exit code 24<br></div><div><br></div><div>still checking...</div><div><br></div><div>many thanks</div><div>Mario</div><div><br></div></div>
_______________________________________________<br>
MITgcm-support mailing list<br>
<a href="mailto:MITgcm-support@mitgcm.org" target="_blank">MITgcm-support@mitgcm.org</a><br>
<a href="https://urldefense.com/v3/__http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support__;!!Mih3wA!EQq7w4YeHHzQcPLNQJgMgyt3MtFPAUBlBzBroxqfZBriTfs3NAPbrdDWrXvbuVp5Lesdq8mNW_taTXNg3bcGf7E$" rel="noreferrer" target="_blank">http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support</a><br>
</blockquote></div>
_______________________________________________<br>
MITgcm-support mailing list<br>
<a href="mailto:MITgcm-support@mitgcm.org" target="_blank">MITgcm-support@mitgcm.org</a><br>
<a href="https://urldefense.com/v3/__http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support__;!!Mih3wA!EQq7w4YeHHzQcPLNQJgMgyt3MtFPAUBlBzBroxqfZBriTfs3NAPbrdDWrXvbuVp5Lesdq8mNW_taTXNg3bcGf7E$" rel="noreferrer" target="_blank">https://urldefense.com/v3/__http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support__;!!Mih3wA!EQq7w4YeHHzQcPLNQJgMgyt3MtFPAUBlBzBroxqfZBriTfs3NAPbrdDWrXvbuVp5Lesdq8mNW_taTXNg3bcGf7E$</a> <br>
</blockquote></div></div>