|
18 | 18 | intrinsic_array%logical_1D = array |
19 | 19 | type is(real) |
20 | 20 | intrinsic_array%real_1D = array |
| 21 | + type is(double precision) |
| 22 | + intrinsic_array%double_precision_1D = array |
21 | 23 | class default |
22 | 24 | error stop "intrinsic_array_t construct: unsupported rank-2 type" |
23 | 25 | end select |
|
32 | 34 | intrinsic_array%logical_2D = array |
33 | 35 | type is(real) |
34 | 36 | intrinsic_array%real_2D = array |
| 37 | + type is(double precision) |
| 38 | + intrinsic_array%double_precision_2D = array |
35 | 39 | class default |
36 | 40 | error stop "intrinsic_array_t construct: unsupported rank-2 type" |
37 | 41 | end select |
|
46 | 50 | intrinsic_array%logical_3D = array |
47 | 51 | type is(real) |
48 | 52 | intrinsic_array%real_3D = array |
| 53 | + type is(double precision) |
| 54 | + intrinsic_array%double_precision_3D = array |
49 | 55 | class default |
50 | 56 | error stop "intrinsic_array_t construct: unsupported rank-3 type" |
51 | 57 | end select |
|
77 | 83 | else if (allocated(self%real_1D)) then |
78 | 84 | character_self = repeat(" ", ncopies = single_number_width*size(self%real_1D)) |
79 | 85 | write(character_self, *) self%real_1D |
| 86 | + else if (allocated(self%double_precision_1D)) then |
| 87 | + character_self = repeat(" ", ncopies = single_number_width*size(self%double_precision_1D)) |
| 88 | + write(character_self, *) self%double_precision_1D |
80 | 89 | else if (allocated(self%complex_2D)) then |
81 | 90 | character_self = repeat(" ", ncopies = single_number_width*size(self%complex_2D)) |
82 | 91 | write(character_self, *) self%complex_2D |
|
89 | 98 | else if (allocated(self%real_2D)) then |
90 | 99 | character_self = repeat(" ", ncopies = single_number_width*size(self%real_2D)) |
91 | 100 | write(character_self, *) self%real_2D |
| 101 | + else if (allocated(self%double_precision_2D)) then |
| 102 | + character_self = repeat(" ", ncopies = single_number_width*size(self%double_precision_2D)) |
| 103 | + write(character_self, *) self%double_precision_2D |
| 104 | + else if (allocated(self%complex_2D)) then |
| 105 | + character_self = repeat(" ", ncopies = single_number_width*size(self%complex_3D)) |
| 106 | + write(character_self, *) self%complex_3D |
| 107 | + else if (allocated(self%integer_3D)) then |
| 108 | + character_self = repeat(" ", ncopies = single_number_width*size(self%integer_3D)) |
| 109 | + write(character_self, *) self%integer_3D |
| 110 | + else if (allocated(self%logical_3D)) then |
| 111 | + character_self = repeat(" ", ncopies = single_number_width*size(self%logical_1D)) |
| 112 | + write(character_self, *) self%logical_3D |
| 113 | + else if (allocated(self%real_3D)) then |
| 114 | + character_self = repeat(" ", ncopies = single_number_width*size(self%real_3D)) |
| 115 | + write(character_self, *) self%real_3D |
| 116 | + else if (allocated(self%double_precision_3D)) then |
| 117 | + character_self = repeat(" ", ncopies = single_number_width*size(self%double_precision_3D)) |
| 118 | + write(character_self, *) self%double_precision_3D |
92 | 119 | end if |
93 | 120 |
|
94 | 121 | character_self = trim(adjustl(character_self)) |
|
0 commit comments