ADflow  v1.0
ADflow is a finite volume RANS solver tailored for gradient-based aerodynamic design optimization.
commonFormats.F90
Go to the documentation of this file.
2 !
3 ! This module contains common format specifiers for printing output.
4 ! The convention for adding a format variable in this module or elsewhere is as follows:
5 !
6 ! commonFormats module variable: formats spanning multiple modules
7 ! other module variable: formats spanning multiple subroutines within a module
8 ! subroutine variable: formats that are repeated within a subroutine
9 ! string: one-off cases
10 !
11  use constants, only: maxstringlen
12  implicit none
13  save
14 
15  ! The * in these patterns means that it is applied as often as there are input arguments matching this pattern.
16  ! For example, (*(A, 1X)) means that this formatting pattern is applied N times if you have N strings that
17  ! you want to be separated by a space.
18  ! Similarly, (*(A, ES12.5)) expects N (string, float) pairs as an input.
19 
20  ! Strings
21  character(len=maxStringLen) :: strings = '(*(A))'
22 
23  ! Strings followed by one space
24  character(len=maxStringLen) :: stringspace = '(*(A, 1X))'
25 
26  ! Strings followed by a number in scientific notation with 5 decimal places
27  character(len=maxStringLen) :: stringsci5 = '(*(A, ES12.5))'
28 
29  ! Strings followed by a one-digit integer
30  character(len=maxStringLen) :: stringint1 = '(*(A, I1))'
31 
32  ! Numbers in scientific notation with 12 decimal places
33  character(len=maxStringLen) :: sci12 = '(*(ES20.12))'
34 
35  ! Integers written with 5 characters
36  character(len=maxStringLen) :: int5 = '(*(I5))'
37 
38 end module commonformats
character(len=maxstringlen) int5
character(len=maxstringlen) stringspace
character(len=maxstringlen) strings
character(len=maxstringlen) sci12
character(len=maxstringlen) stringint1
character(len=maxstringlen) stringsci5
integer, parameter maxstringlen
Definition: constants.F90:16