cycle counts from submission (I think) not absolute cycle number.
So the geometry file is getting copied the first time, but also tries to copy it on subsequent case.submits.
if cycle_int == 0:
casename = case.get_value("CASE")
geometry_pattern = os.path.join(rundir, f"{casename}.mom6.h.ocean_geometry*")
geometry_files = sorted(glob.glob(geometry_pattern))
if geometry_files:
first_geometry_file = geometry_files[0]
ocean_geometry_nc = os.path.join(rundir, "ocean_geometry.nc")
# Copy (not symlink) the file so it persists after archiving
shutil.copy(first_geometry_file, ocean_geometry_nc)
logger.info(f"Copied {first_geometry_file} to {ocean_geometry_nc} for cycle 0")
else:
logger.warning(f"No geometry files matching {geometry_pattern} found for cycle 0")
cycle counts from submission (I think) not absolute cycle number.
So the geometry file is getting copied the first time, but also tries to copy it on subsequent case.submits.