[MITgcm-support] Issue of restarting adjoint run with time-variant controls

Yueyang Lu ylu06 at mit.edu
Fri Apr 24 13:31:22 EDT 2026


Hello,

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:
nIter0 = 149028
nTimeSteps = 8
and in “data.ctrl":
xx_gentim2d_weight(1) = 'wt_ones_2dm.data',
xx_gentim2d_file(1)   = 'xx_atemp',
xx_gentim2d_period(1) = 7200.0,
mult_gentim2d(1)      = 1.,
However, I encounter the following error related to the number of records for the effective control variable:
At line 2493 of file mdsio_read_field.f
(unit = 9, file = 'xx_atemp.effective.0000000012.data')
Fortran runtime error: Non-existing record number
This error disappears if I start from the initial time instead (i.e., nIter0 = 1) with other parameters remaining the same.

Does anyone happen to know how to address this issue in a general way? I greatly appreciate any suggestions or guidance!

Best regards,
Yueyang Lu


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mitgcm.org/pipermail/mitgcm-support/attachments/20260424/9e32e2c4/attachment.html>


More information about the MITgcm-support mailing list