Resource type
Date created
2022-08-13
Authors/Contributors
Author: Mak, Lesley
Author: Taheri, Pooya
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.
available at https://github.com/LMAK00/Fordadt.
Identifier
DOI: 10.3390/software1030014
Publication details
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
Published article URL
Rights (standard)
Copyright statement
Copyright is held by the author(s).
Scholarly level
External links
Member of collection
Download file | Size |
---|---|
software-01-00014.pdf | 6.51 MB |