[MITgcm-support] Objective Function for Ptracers
Yohei Takano - BAS
yokano at bas.ac.uk
Tue Nov 12 05:21:37 EST 2024
Dear all,
I am trying to run adjoint simulations using Ptracers as an objective function in ECCOv4 framework.
Pkg/ecco has capability using Ptracers as an objective function (setting data.ecco) and
I set gencost_barfile(1) = 'm_boxmean_ptracer', and gencost_itracer(1) = 1 to define
box mean ptracer (tracer #1) as an objective function.
However, unlike temperature and salinity, the model does not generate adm_ file for Ptracers.
(Here is an error I obtained).
(PID.TID 0000.0001) *** ERROR *** MDS_READ_FIELD: filename: adm_boxmean_ptracer.0000000012.data
(PID.TID 0000.0001) *** ERROR *** MDS_READ_FIELD: File does not exist
I thought "adm_boxmean_ptracer.0000000012.data" should be automatically generated so I was wondering
I forgot to turn some settings on (or off) (and I looked at the codes and 'm_boxmean_ptracer' option exists).
The setup is based on ECCOv4r2 + Ptracers and pkg/dic turned on. The MITgcm checkpoint is 67z.
Does anyone know a reason why adm_ file is not generate for Ptracers (again it works for "m_boxmean_theta"
and ? (and costfunction0012 contains value for Ptracers). I will also attach the data.ecco below.
Thank you in advance.
Regards,
Yohei
----- data.ecco -----
# *******************
# ECCO Cost Functions
# *******************
&ECCO_COST_NML
&
# ***************************
# ECCO Generic Cost Functions
# ***************************
&ECCO_GENCOST_NML
gencost_name(1) = 'ptracer_ad',
gencost_barfile(1) = 'm_boxmean_ptracer',
gencost_avgperiod(1) = 'month',
gencost_itracer(1) = 1,
gencost_msk_is3d(1)=.TRUE.,
gencost_outputlevel(1) = 1,
gencost_mask(1) = 'mask',
mult_gencost(1) = 1.0D9,
&
#
This email and any attachments are intended solely for the use of the named recipients. If you are not the intended recipient you must not use, disclose, copy or distribute this email or any of its attachments and should notify the sender immediately and delete this email from your system. UK Research and Innovation (UKRI) has taken every reasonable precaution to minimise risk of this email or any attachments containing viruses or malware but the recipient should carry out its own virus and malware checks before opening the attachments. UKRI does not accept any liability for any losses or damages which the recipient may sustain due to presence of any viruses.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.mitgcm.org/pipermail/mitgcm-support/attachments/20241112/7b0d79c1/attachment.html>
More information about the MITgcm-support
mailing list