Example illustrating the design of the FEM I/O emulation. (a) Fortran code. (b) C++ code. Each Fortran statement is converted to a C++ building block. The size of the C++ code is relatively large due to the err labels. Most write statements in real code do not make use of err labels, in which case the corresponding C++ code is nearly identical to the original Fortran code.