Skip to content

Commit aa390de

Browse files
committed
clean parameters
1 parent aa3b39e commit aa390de

File tree

7 files changed

+10
-8
lines changed

7 files changed

+10
-8
lines changed

src/common/m_helper.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ contains
244244
subroutine s_int_to_str(i, res)
245245

246246
integer, intent(in) :: i
247-
character(len=*), intent(out) :: res
247+
character(len=*), intent(inout) :: res
248248

249249
write (res, '(I0)') i
250250
res = trim(res)

src/common/m_variables_conversion.fpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,7 @@ contains
10811081
real(wp) :: dyn_pres
10821082
real(wp) :: nbub, R3, vftmp, R3tmp
10831083
real(wp), dimension(nb) :: Rtmp
1084-
real(wp) :: G = 0._wp
1084+
real(wp) :: G
10851085
real(wp), dimension(2) :: Re_K
10861086

10871087
integer :: i, j, k, l, q !< Generic loop iterators
@@ -1090,6 +1090,8 @@ contains
10901090
real(wp), dimension(num_species) :: Ys
10911091
real(wp) :: e_mix, mix_mol_weight, T
10921092

1093+
G = 0._wp
1094+
10931095
#ifndef MFC_SIMULATION
10941096
! Converting the primitive variables to the conservative variables
10951097
do l = 0, p

src/pre_process/m_data_output.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ contains
831831
! Generic string used to store the address of a particular file
832832
character(LEN=len_trim(case_dir) + 2*name_len) :: file_loc
833833
character(len=15) :: temp
834-
character(LEN=1), dimension(3) :: coord = (/'x', 'y', 'z'/)
834+
character(LEN=1), dimension(3), parameter :: coord = (/'x', 'y', 'z'/)
835835

836836
! Generic logical used to check the existence of directories
837837
logical :: dir_check

src/pre_process/m_patches.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,7 @@ contains
14161416
integer :: i, j, k !< generic loop iterators
14171417
14181418
real(wp) :: epsilon, beta
1419-
complex(wp) :: cmplx_i = (0._wp, 1._wp)
1419+
complex(wp), parameter :: cmplx_i = (0._wp, 1._wp)
14201420
complex(wp) :: H
14211421
14221422
! Transferring the patch's centroid and radius information

src/simulation/m_data_output.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ contains
110110
!! time-step.
111111
subroutine s_open_run_time_information_file
112112

113-
character(LEN=name_len) :: file_name = 'run_time.inf' !<
113+
character(LEN=name_len), parameter :: file_name = 'run_time.inf' !<
114114
!! Name of the run-time information file
115115

116116
character(LEN=path_len + name_len) :: file_path !<

src/simulation/m_hyperelastic.fpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ contains
227227
integer, intent(in) :: j, k, l
228228

229229
real(wp) :: trace
230-
real(wp) :: f13 = 1_wp/3_wp
230+
real(wp), parameter :: f13 = 1._wp/3._wp
231231
integer :: i !< Generic loop iterators
232232

233233
! tensor is the symmetric tensor & calculate the trace of the tensor
@@ -266,7 +266,7 @@ contains
266266
integer, intent(in) :: j, k, l
267267

268268
real(wp) :: trace
269-
real(wp) :: f13 = 1_wp/3_wp
269+
real(wp), parameter :: f13 = 1._wp/3._wp
270270
integer :: i !< Generic loop iterators
271271

272272
!TODO Make this 1D and 2D capable

src/simulation/m_start_up.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ contains
125125
subroutine s_read_input_file
126126

127127
! Relative path to the input file provided by the user
128-
character(LEN=name_len) :: file_path = './simulation.inp'
128+
character(LEN=name_len), parameter :: file_path = './simulation.inp'
129129

130130
logical :: file_exist !<
131131
!! Logical used to check the existence of the input file

0 commit comments

Comments
 (0)