<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
<div style="direction: ltr; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hello,</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 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: </div>
<blockquote style="margin-left: 0.5em; padding-left: 0.4em; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(200, 200, 200);">
<span style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">nIter0 = 149028</span>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
nTimeSteps = 8</div>
</blockquote>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
and in “data.ctrl":</div>
<blockquote style="margin-left: 0.5em; padding-left: 0.4em; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(200, 200, 200);">
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
xx_gentim2d_weight(1) = 'wt_ones_2dm.data',</div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
xx_gentim2d_file(1)   = 'xx_atemp',</div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
xx_gentim2d_period(1) = 7200.0,</div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
mult_gentim2d(1)      = 1.,</div>
</blockquote>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
However, I encounter the following error related to the number of records for the effective control variable:</div>
<blockquote style="margin-left: 0.5em; padding-left: 0.4em; border-left-width: 3px; border-left-style: solid; border-left-color: rgb(200, 200, 200);">
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
At line 2493 of file mdsio_read_field.f</div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
(unit = 9, file = 'xx_atemp.effective.0000000012.data')</div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Fortran runtime error: Non-existing record number</div>
</blockquote>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
This error disappears if I start from the initial time instead (i.e., nIter0 = 1) with other parameters remaining the same. </div>
<div style="direction: ltr; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Does anyone happen to know how to address this issue in a general way? I greatly appreciate any suggestions or guidance!</div>
<div id="ms-outlook-mobile-signature" style="color: inherit; background-color: inherit;">
<div style="direction: ltr;"><br>
</div>
<div style="direction: ltr;">Best regards,</div>
<div style="direction: ltr; font-family: Aptos, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Yueyang Lu</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;"><br>
</div>
</div>
</body>
</html>