next up previous contents
Next: 3.13 Finding all differences Up: 3.12 Upgrading to the Previous: 3.12.1 The recommended method

   
3.12.2 An alternative recommended method

If there is no access to a ``gdiff'' or ``xdiff'' utility, the alternative method will work well. Compare each routine (one at a time) in OLD_UPDATES to the corresponding one in MOM_3_OLD to find local changes. Do this using ``diff'' with the ``-e'' option. As an example, take the file ``grids.F'' and use the command


 diff -e  MOM_3_OLD/grids.F  OLD_UPDATES/grids.F > mods


Inspect the file ``mods'' to view local modifications which have been made. While viewing file `mods'' in an editor, open another editor and look for each modification in file OLD_UPDATES/grids.F. Find the corresponding location in file NEW_UPDATES/grids.F and use the ``cut and paste'' method to transfer the local modifications.



RC Pacanowski and SM Griffies, GFDL, Jan 2000