<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div style="direction: ltr; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hello Jean-Michel,</div>
<div style="direction: ltr; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thank you for the information! </div>
<div style="direction: ltr; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="direction: ltr; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I was using an older version of code. I replaced “ctrl_get_gen_rec.F” with the updated one and recompiled the model. The issue was then resolved. </div>
<div style="color: inherit; background-color: inherit;" id="ms-outlook-mobile-signature">
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">Best,</div>
<div style="direction: ltr; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Yueyang</div>
<div style="direction: ltr;"><br>
</div>
</div>
<div id="mail-editor-reference-message-container" style="color: inherit; background-color: inherit;">
<div class="ms-outlook-mobile-reference-message skipProofing">
<meta name="Generator" content="Microsoft Exchange Server" style="color: inherit; background-color: inherit;">
</div>
<div style="padding: 3pt 0in 0in; border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) currentcolor currentcolor;">
<div class="ms-outlook-mobile-reference-message skipProofing" style="text-align: left; font-family: Aptos; font-size: 12pt; color: black;">
<b>From: </b>MITgcm-support <mitgcm-support-bounces@mitgcm.org> on behalf of Jean-Michel Campin <jmc@mit.edu><br>
<b>Date: </b>Tuesday, April 28, 2026 at 9:58 AM<br>
<b>To: </b>mitgcm-support@mitgcm.org <mitgcm-support@mitgcm.org><br>
<b>Subject: </b>Re: [MITgcm-support] Issue of restarting adjoint run with time-variant controls<br>
<br>
</div>
</div>
<div class="PlainText" style="font-size: 11pt;">Hi Yueyang Lu,<br>
<br>
There has been some fixes in the last few years for the start/restart of gentim2d control,<br>
the latest beeing: <a href="https://github.com/MITgcm/MITgcm/pull/934" data-outlook-id="0aa913d0-9718-48fb-8dd2-6d1cf0b63aef">
https://github.com/MITgcm/MITgcm/pull/934</a> (merged on 2025-10-22),<br>
so could you confirm that you are using a recent version of MITgcm code ?<br>
<br>
And also, are you using "pkg/cal" and if yes could you provide the content of "data.cal" ?<br>
<br>
Cheers,<br>
Jean-Michel<br>
<br>
On Fri, Apr 24, 2026 at 05:31:22PM +0000, Yueyang Lu wrote:<br>
> Hello,<br>
><br>
> I am trying to run the adjoint with a time-dependent control variable (xx_atemp) starting from a restart file (e.g., pickup.0000149028.data). In ?data", I set:<br>
> nIter0 = 149028<br>
> nTimeSteps = 8<br>
> and in ?data.ctrl":<br>
> xx_gentim2d_weight(1) = 'wt_ones_2dm.data',<br>
> xx_gentim2d_file(1) = 'xx_atemp',<br>
> xx_gentim2d_period(1) = 7200.0,<br>
> mult_gentim2d(1) = 1.,<br>
> However, I encounter the following error related to the number of records for the effective control variable:<br>
> At line 2493 of file mdsio_read_field.f<br>
> (unit = 9, file = 'xx_atemp.effective.0000000012.data')<br>
> Fortran runtime error: Non-existing record number<br>
> This error disappears if I start from the initial time instead (i.e., nIter0 = 1) with other parameters remaining the same.<br>
><br>
> Does anyone happen to know how to address this issue in a general way? I greatly appreciate any suggestions or guidance!<br>
><br>
> Best regards,<br>
> Yueyang Lu<br>
><br>
><br>
<br>
> _______________________________________________<br>
> MITgcm-support mailing list<br>
> MITgcm-support@mitgcm.org<br>
> <a href="http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support" data-outlook-id="3312a3f7-f0e0-4b7c-8ac4-ad706d4943f7">
http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support</a><br>
<br>
_______________________________________________<br>
MITgcm-support mailing list<br>
MITgcm-support@mitgcm.org<br>
<a href="http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support" data-outlook-id="7a224fbe-7d97-400e-8db5-a4eb48d6b8fc">http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support</a><br>
</div>
</div>
</body>
</html>