Skip to content

Commit a89d085

Browse files
authored
Merge pull request #12 from marshallward/db_type_fix
Replace db array default values with real literals
2 parents 0730606 + aac5bb8 commit a89d085

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

config_src/external/database_comms/database_client_interface.F90

+8-8
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ function unpack_tensor_float_1d(self, name, data, dims) result(code)
317317
integer :: code
318318

319319
code = -1
320-
data(:) = -1_real32
320+
data(:) = -1.
321321
end function unpack_tensor_float_1d
322322

323323
!> Unpack a 32-bit real 2d tensor from the database
@@ -329,7 +329,7 @@ function unpack_tensor_float_2d(self, name, data, dims) result(code)
329329
integer :: code
330330

331331
code = -1
332-
data(:,:) = -1_real32
332+
data(:,:) = -1.
333333
end function unpack_tensor_float_2d
334334

335335
!> Unpack a 32-bit real 3d tensor from the database
@@ -341,7 +341,7 @@ function unpack_tensor_float_3d(self, name, data, dims) result(code)
341341
integer :: code
342342

343343
code = -1
344-
data(:,:,:) = -1_real32
344+
data(:,:,:) = -1.
345345
end function unpack_tensor_float_3d
346346

347347
!> Unpack a 32-bit real 4d tensor from the database
@@ -353,7 +353,7 @@ function unpack_tensor_float_4d(self, name, data, dims) result(code)
353353
integer :: code
354354

355355
code = -1
356-
data(:,:,:,:) = -1_real32
356+
data(:,:,:,:) = -1.
357357
end function unpack_tensor_float_4d
358358

359359
!> Unpack a 64-bit real 1d tensor from the database
@@ -365,7 +365,7 @@ function unpack_tensor_double_1d(self, name, data, dims) result(code)
365365
integer :: code
366366

367367
code = -1
368-
data(:) = -1_real64
368+
data(:) = -1.
369369
end function unpack_tensor_double_1d
370370

371371
!> Unpack a 64-bit real 2d tensor from the database
@@ -377,7 +377,7 @@ function unpack_tensor_double_2d(self, name, data, dims) result(code)
377377
integer :: code
378378

379379
code = -1
380-
data(:,:) = -1_real64
380+
data(:,:) = -1.
381381
end function unpack_tensor_double_2d
382382

383383
!> Unpack a 64-bit real 3d tensor from the database
@@ -389,7 +389,7 @@ function unpack_tensor_double_3d(self, name, data, dims) result(code)
389389
integer :: code
390390

391391
code = -1
392-
data(:,:,:) = -1_real64
392+
data(:,:,:) = -1.
393393
end function unpack_tensor_double_3d
394394

395395
!> Unpack a 64-bit real 4d tensor from the database
@@ -401,7 +401,7 @@ function unpack_tensor_double_4d(self, name, data, dims) result(code)
401401
integer :: code
402402

403403
code = -1
404-
data(:,:,:,:) = -1_real64
404+
data(:,:,:,:) = -1.
405405
end function unpack_tensor_double_4d
406406

407407
!> Unpack a 32-bit integer 1d tensor from the database

0 commit comments

Comments
 (0)