Skip to content

Commit cfbe0a2

Browse files
committed
avoid warnings
1 parent 6f36936 commit cfbe0a2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/generate_databases/model_scattering.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ function get_random_perturbation_value() result(pert_val)
10091009
pert_val = 2.0_CUSTOM_REAL * rand_val - 1.0_CUSTOM_REAL
10101010

10111011
! scale to target strength
1012-
pert_val = pert_val * SCATTERING_STRENGTH
1012+
pert_val = pert_val * real(SCATTERING_STRENGTH,kind=CUSTOM_REAL)
10131013

10141014
end function get_random_perturbation_value
10151015

@@ -1087,9 +1087,9 @@ subroutine plot_grid_data()
10871087
endif
10881088

10891089
! grid point position [-L/2,L/2]
1090-
total_dat_xyz(1,np) = grid_origin_x + (i-1) * cell_size
1091-
total_dat_xyz(2,np) = grid_origin_y + (j-1) * cell_size
1092-
total_dat_xyz(3,np) = grid_origin_z + (k-1) * cell_size
1090+
total_dat_xyz(1,np) = real(grid_origin_x + (i-1) * cell_size,kind=CUSTOM_REAL)
1091+
total_dat_xyz(2,np) = real(grid_origin_y + (j-1) * cell_size,kind=CUSTOM_REAL)
1092+
total_dat_xyz(3,np) = real(grid_origin_z + (k-1) * cell_size,kind=CUSTOM_REAL)
10931093
enddo
10941094
enddo
10951095
enddo

0 commit comments

Comments
 (0)