-
Notifications
You must be signed in to change notification settings - Fork 0
/
testmod.toml
37 lines (31 loc) · 1.13 KB
/
testmod.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[module]
name = "testmod"
uses = ["ISO_FORTRAN_ENV", ]
parameters = [
{ name = "intpar", type = "integer", value = 2 },
{ name = "floatpar", type = "float", value = 1.2345678 },
{ name = "doublepar", type = "double", value = 1.234567891011121 },
{ name = "floatparexp", type = "float", value = 1E-8 },
{ name = "floatparsq", type = "float", value = "floatpar*floatpar" },
{ name = "stringpar", type = "string", value = "abcde12345" },
]
derivedtypes = [ "testtype1", "testtype2" ]
[module.testtype1]
fields = [
{ name = "fbool", type = "bool", data = true },
{ name = "ffloat", type = "float" },
{ name = "fdouble", type = "double"},
{ name = "fstr", type = "string", size = 100 },
]
[module.testtype2]
fields = [
{ name = "ffloata", type = "float", size = 5, data = [ 1, 2.0, 3.456, 4, 5 ] },
{ name = "ffloatapar", type = "float", size = "intpar" },
{ name = "ffloat2a", type = "float", size = [3,5], data = [
1,2,3,4,5,
6,7,8.12345,"floatpar",10E-10,
11,12,13,14,15
]},
{ name = "ffloat2apar", type = "float", size = ["intpar", 5] },
{ name = "fint3dim", type = "integer", size = [2,3,4] },
]