Skip to main content

An automated tool for upgrading Fortran codes

Resource type
Date created
2022-08-13
Authors/Contributors
Author: Mak, Lesley
Abstract
With archaic coding techniques, there will be a time when it will be necessary to modernize vulnerable software. However, redeveloping out-of-date code can be a time-consuming task when dealing with a multitude of files. To reduce the amount of reassembly for Fortran-based projects, in this paper, we develop a prototype for automating the manual labor of refactoring individual files. ForDADT (Fortran Dynamic Autonomous Diagnostic Tool) project is a Python program designed to reduce the amount of refactoring necessary when compiling Fortran files. In this paper, we demonstrate how ForDADT is used to automate the process of upgrading Fortran codes, process the files, and automate the cleaning of compilation errors. The developed tool automatically updates thousands of files and builds the software to find and fix the errors using pattern matching and data masking algorithms. These modifications address the concerns of code readability, type safety, portability, and adherence to modern programming practices.
Document
Description
Data Availability Statement: The tool developed in this project is open source. The codes are
available at https://github.com/LMAK00/Fordadt.
Identifier
DOI: 10.3390/software1030014
Publication title
Software
Document title
An automated tool for upgrading Fortran codes
Date
2022-08-13
Volume
1
First page
299
Last page
315
Publisher DOI
10.3390/software1030014
Copyright statement
Copyright is held by the author(s).
Scholarly level
Member of collection
Download file Size
software-01-00014.pdf 6.51 MB

Views & downloads - as of June 2023

Views: 82
Downloads: 1