2014 · 23 citations · 30 references
ComputingComputer ScienceMeteorologyScientific ComputingSoftware EngineeringWeather ForecastingClimate AnalysisClimate ChangeClimate ModelingSoftware ConstructionSoftware DesignSoftware MetricsClimate Model EnsemblesClimate Model EvaluationClimate SimulationClimate System ModelingComputational Climate ModelingCyclomatic ComplexitySoftware Development Methodology
Climate simulation and weather forecasting codes are among the most complex examples of scientific software. Moreover, many of them are written in Fortran, making them some of the largest and most complex Fortran codes ever developed. For companies and researchers creating Fortran development tools -- IDEs, static analyzers, refactoring tools, etc. -- it is helpful to study these codes to understand the unique challenges they pose. In this paper, we analyze 16 well-known global climate models and collect several syntactic metrics, including lines of code, McCabe cyclomatic complexity, presence of preprocessor directives, and numbers of obsolescent Fortran language constructs. Based on these results, we provide some guidelines for people wishing to develop software development tools for Fortran. Notably, such tools must scale to million-line code bases, they must handle constructs that the ISO Fortran standard has deemed obsolescent, and they must work fluently in the presence of C preprocessor directives.
30
Thomas J. McCabe · IEEE Transactions on Software Engineering · 1976 · 5.8K citations
An empirical study of FORTRAN programs
Donald E. Knuth · Software Practice and Experience · 1971 · 682 citations
Using metrics to evaluate software system maintainability
Derek Coleman, Dan Ash, B. Lowther et al. · Computer · 1994 · 425 citations