Capstone projects

Three projects that put the course together. The first is a numerical solver: a model, two methods behind one interface, and a convergence report. The second is a matrix library: a derived type with allocatable storage, an LU factorisation, a solve, and a test driver with tolerances. The third is a record-processing batch: a typed record read with IOSTAT, sorted by two keys, and printed as a grouped report.

126 Capstone 1: the model of a numerical solver the equation, the interface the methods share and the module that holds the model Open 127 Capstone 1: bisection and Newton in a module two methods in one module, a procedure argument, and a tolerance loop with a report Open 128 Capstone 1: a formatted convergence report a table of iterations, a formatted header, and the report the program writes Open 129 Capstone 2: a matrix type and its operations a matrix derived type, its allocatable storage, and the operations on it Open 130 Capstone 2: LU decomposition and solve an LU factorisation, the solve, a residual, and the output on a known system Open 131 Capstone 2: tests with tolerances a test driver, a relative tolerance, a table of systems and a non-zero exit on failure Open 132 Capstone 3: reading a record file a record type, a file read with IOSTAT, and the lines that do not parse Open 133 Capstone 3: sorting the records a comparison function, a sort by two keys, and the order the report needs Open 134 Capstone 3: a sorted, grouped report a group total, a formatted report, and the whole batch run on a real file Open

Lessons