Table of Contents
Fetching ...

Dynamic String Generation and C++-style Output in Fortran

Marcus Mohr

TL;DR

This work uses standard components of modern Fortran to dynamically generate strings with as little coding overhead as possible on the application side and demonstrates how this can be extended to allow for output generation with a C++ stream-like look and feel.

Abstract

Using standard components of modern Fortran we present a technique to dynamically generate strings with as little coding overhead as possible on the application side. Additionally we demonstrate how this can be extended to allow for output generation with a C++ stream-like look and feel.

Dynamic String Generation and C++-style Output in Fortran

TL;DR

This work uses standard components of modern Fortran to dynamically generate strings with as little coding overhead as possible on the application side and demonstrates how this can be extended to allow for output generation with a C++ stream-like look and feel.

Abstract

Using standard components of modern Fortran we present a technique to dynamically generate strings with as little coding overhead as possible on the application side. Additionally we demonstrate how this can be extended to allow for output generation with a C++ stream-like look and feel.
Paper Structure (10 sections, 2 figures)

This paper contains 10 sections, 2 figures.

Figures (2)

  • Figure 1: Example of stringification function for 32-bit integers.
  • Figure 2: One possible way to convert a rank-1 array of integers into a string representation.