Skip to content

Conversation

@zgarraffo
Copy link
Contributor

updates for operational setup creation of the MOM incremental update files.
Verified that it runs by launching /lfs/h2/emc/couple/save/zulema.garraffo/rtofs.v3.0.0/ncoda_rtofs_glo.launch.V3.sh

@zgarraffo
Copy link
Contributor Author

in build_rtofs.sh, to include compilation of hycom_tools_for_mom6.fd,
after
cd ./rtofs_code.fd;./build_code.sh;cd ..
include:

echo
echo Building hycom_tools_for_mom6.fd
echo
cd ./hycom_tools_for_mom6.fd;./build_all.sh;cd ..


# move executables
for f in `ls -1 *.x`; do
cp $f ../../exec/rtofs_$f
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems this cp of executables is then being overwritten by a mv.

@zgarraffo
Copy link
Contributor Author

It needs to be copied to the systems exec
My build_all.sh has

move executables

for f in ls -1 *.x; do
cp $f ../../exec/rtofs_$f
done
mkdir -p ${BASE}/exec
mv *.x ${BASE}/exec

@sanAkel
Copy link
Contributor

sanAkel commented Jan 16, 2026

It needs to be copied to the systems exec

My build_all.sh has

move executables

for f in ls -1 *.x; do

cp $f ../../exec/rtofs_$f

done

Ask yourself what does the ⬆️ do?

mkdir -p ${BASE}/exec

mv *.x ${BASE}/exec

Then ask the same question!

@zgarraffo
Copy link
Contributor Author

zgarraffo commented Jan 16, 2026

The script
https://github.com/NOAA-EMC/RTOFS_GLO/blob/develop/scripts/exrtofs_glo_ncoda_inc.sh
calls the executable with a name consistent with all the other executables
$EXECrtofs/rtofs_ncodaz_inc2mom6nc_glb_lyr.x < ncoda_inc2mom6nc_lyr.input >> $pgmout
Without copying to $EXECrtofs it doesn't run. It is also copied with a name as the other executables, rtofs_ncodaz... instead of ncodaz...
cp may be replaced by mv, and the exec directory sorc/hycom_tools_for_mom6.fd/exec eliminated. I left it temporarily but should be eliminated. So replace moving to
$projectroot/sorc/hycom_tools_for_mom6.fd/exec
by moving to
$projectroot/exec with name rtofs_ncodaz... If there will always be a single executable no need of loop, but loop is needed to add rtofs_ at the beginning of the executable.

@sanAkel
Copy link
Contributor

sanAkel commented Jan 17, 2026

The script https://github.com/NOAA-EMC/RTOFS_GLO/blob/develop/scripts/exrtofs_glo_ncoda_inc.sh calls the executable with a name consistent with all the other executables $EXECrtofs/rtofs_ncodaz_inc2mom6nc_glb_lyr.x < ncoda_inc2mom6nc_lyr.input >> $pgmout Without copying to $EXECrtofs it doesn't run. It is also copied with a name as the other executables, rtofs_ncodaz... instead of ncodaz... cp may be replaced by mv, and the exec directory sorc/hycom_tools_for_mom6.fd/exec eliminated. I left it temporarily but should be eliminated. So replace moving to $projectroot/sorc/hycom_tools_for_mom6.fd/exec by moving to $projectroot/exec with name rtofs_ncodaz... If there will always be a single executable no need of loop, but loop is needed to add rtofs_ at the beginning of the executable.

@zgarraffo In the z levels that you have NCODA did you include the SSH or not?

@zgarraffo
Copy link
Contributor Author

The program ncodaz* reads the input layer thickness from the ncoda restart file, where the thicknesses add to depth and not to depth+ssh. (The program ncodaz_*lyr.x doesn't read anything in z but all files in layers)

@sanAkel
Copy link
Contributor

sanAkel commented Jan 18, 2026

The program ncodaz* reads the input layer thickness from the ncoda restart file, where the thicknesses add to depth and not to depth+ssh. (The program ncodaz_*lyr.x doesn't read anything in z but all files in layers)

Thanks for the ⬆️ information.

@zgarraffo
Copy link
Contributor Author

Your script for creation of the ice file sic.nc has to be added to https://github.com/NOAA-EMC/RTOFS_GLO/blob/develop/scripts/exrtofs_glo_ncoda_inc.sh (or somewhere else)

@sanAkel
Copy link
Contributor

sanAkel commented Jan 19, 2026

Your script for creation of the ice file sic.nc has to be added to https://github.com/NOAA-EMC/RTOFS_GLO/blob/develop/scripts/exrtofs_glo_ncoda_inc.sh (or somewhere else)

I'm aware of that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants