About ESMF Download Users Developers Management Work Plans Metrics Impacts

Code Change Metrics

The table below shows the lines of code changed to adapt codes for ESMF. The last code in the table, the Hakamada-Akasofu-Fry (HAF) solar wind model, was parallelized at the same time that it was ESMF-ized, so it was subject to more code changes than the others.

Number of non-comment lines of code
Model Total Deleted Added % Increase
ADCIRC 19782 462 826 1.8
COAMPS 95815 5992 7295 1.4
HYCOM 27422 727 1114 1.4
NCOM 36996 775 1553 2.1
WASH 28716 18 434 1.4
SWAN 33146 67 1252 3.6
HAF 12306 1320 2516 21.3

Script for Calculating

A perl script is available from BEI that will calculate your code changes. Users need to have old and new copies of their codes e.g. B.ESMF and A.ESMF. The script works better if these versions are in separate directories. To invoke the script:

./code_change_measure.pl dir1 dir2 > summary_changes.txt

Questions related to this script should be directed to Lucy Smedstad at the Naval Research Laboratory.