@@ -103,7 +103,7 @@ subroutine calculate_free_surface_history(state, s_field)
103
103
real :: spin_up_time, current_time, timestep
104
104
real , dimension (:), allocatable :: saved_snapshots_times
105
105
106
- ewrite(3 ,* ), ' in free_surface_history_diagnostics'
106
+ ewrite(3 ,* ) ' in free_surface_history_diagnostics'
107
107
108
108
fs_field = > extract_scalar_field(state," FreeSurface" ,stat)
109
109
call halo_update(fs_field)
@@ -158,13 +158,13 @@ subroutine calculate_free_surface_history(state, s_field)
158
158
! Note this is after the options check above as we add options to the tree if
159
159
! they aren't there and they are needed in tidal_harmonics diagnostics
160
160
if (current_time+ timestep< spin_up_time) then
161
- ewrite(4 ,* ), " Still spinning up."
161
+ ewrite(4 ,* ) " Still spinning up."
162
162
return
163
163
endif
164
164
165
165
! check if we want to save the current timestep at all
166
166
if (mod (timestep_counter,stride)/= 0 ) then
167
- ewrite(4 ,* ), " Ignoring this timestep"
167
+ ewrite(4 ,* ) " Ignoring this timestep"
168
168
return
169
169
end if
170
170
@@ -181,7 +181,7 @@ subroutine calculate_free_surface_history(state, s_field)
181
181
saved_snapshots_times(new_snapshot_index)= current_time+ timestep
182
182
call set_option(trim (base_path) // " saved_snapshots_times" , saved_snapshots_times, stat)
183
183
assert(any (stat == (/ SPUD_NO_ERROR, SPUD_NEW_KEY_WARNING/ )))
184
- ewrite(4 ,* ), ' Filling history level: ' , min (timestep_counter/ stride+1 ,levels), ' /' , levels
184
+ ewrite(4 ,* ) ' Filling history level: ' , min (timestep_counter/ stride+1 ,levels), ' /' , levels
185
185
186
186
! lets copy a snapshot of freesurface to s_field(new_snapshot_index)
187
187
hist_fs_field = > extract_scalar_field(state,' harmonic' // int2str(new_snapshot_index))
@@ -220,7 +220,7 @@ subroutine calculate_tidal_harmonics(state, s_field)
220
220
221
221
! Only if Harmonics weren't already calculated in this timestep
222
222
if (last_update/= timestep) then
223
- ewrite(3 ,* ), " In tidal_harmonics"
223
+ ewrite(3 ,* ) " In tidal_harmonics"
224
224
allocate (harmonic_fields(get_number_of_harmonic_fields(state)))
225
225
allocate (sigma(nLevels_))
226
226
@@ -229,9 +229,9 @@ subroutine calculate_tidal_harmonics(state, s_field)
229
229
if (.not. ignoretimestep) then
230
230
! Initialize the harmonic fields and frequencies if not already done.
231
231
call getHarmonicFields(state, harmonic_fields, nohfs, sigma, M)
232
- ewrite(4 ,* ), ' Frequencies to analyse:'
232
+ ewrite(4 ,* ) ' Frequencies to analyse:'
233
233
do i= 1 ,M
234
- ewrite(4 ,* ), sigma(i)
234
+ ewrite(4 ,* ) sigma(i)
235
235
end do
236
236
! Calculate harmonics and update (all!) harmonic fields
237
237
call update_harmonic_fields(state, saved_snapshots_times, size (saved_snapshots_times), current_snapshot_index, sigma, M, harmonic_fields, nohfs)
@@ -268,12 +268,12 @@ subroutine getFreeSurfaceHistoryData(state, ignoretimestep, saved_snapshots_time
268
268
call get_option(trim (free_surface_history_path) // " levels" , levels)
269
269
270
270
if ( mod (timestep_counter,stride)/= 0 ) then
271
- ewrite(4 ,* ), ' Do nothing in this timestep.'
271
+ ewrite(4 ,* ) ' Do nothing in this timestep.'
272
272
ignoretimestep= .true.
273
273
return
274
274
end if
275
275
if (timestep_counter/ stride+1 .lt. levels) then
276
- ewrite(4 ,* ), ' Do nothing until levels are filled up.'
276
+ ewrite(4 ,* ) ' Do nothing until levels are filled up.'
277
277
ignoretimestep= .true.
278
278
return
279
279
end if
@@ -350,8 +350,8 @@ subroutine getHarmonicFields(state, harmonic_fields, nohfs, sigma, M)
350
350
end if
351
351
end if
352
352
end do s_field_loop
353
- ewrite(4 ,* ), ' Found ' , nohfs, ' constituents to analyse.'
354
- ewrite(4 ,* ), ' Found ' , M, ' frequencies to analyse.'
353
+ ewrite(4 ,* ) ' Found ' , nohfs, ' constituents to analyse.'
354
+ ewrite(4 ,* ) ' Found ' , M, ' frequencies to analyse.'
355
355
356
356
if ( M .le. 0 ) then
357
357
FLExit(" Internal error in calculate_tidal_harmonics(). No harmonic constituents were found in option tree." )
0 commit comments