We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b765c7 commit a2e36b8Copy full SHA for a2e36b8
src/2d/shallow/fgout_module.f90
@@ -225,12 +225,12 @@ subroutine set_fgout(rest,num_eqn,fname)
225
write(6,*) '+++ nqout = ',fg%nqout
226
227
! Allocate new fixed grid data arrays at early, late time:
228
- ! dimension (10,:,:) to work for either GeoClaw or D-Claw
+ ! dimension (fg%time_index,:,:) to work for either GeoClaw or D-Claw
229
230
- allocate(fg%early(10, fg%mx,fg%my))
+ allocate(fg%early(fg%time_index, fg%mx,fg%my))
231
fg%early = nan()
232
233
- allocate(fg%late(10, fg%mx,fg%my))
+ allocate(fg%late(fg%time_index, fg%mx,fg%my))
234
fg%late = nan()
235
236
enddo
@@ -445,7 +445,7 @@ subroutine fgout_write(fgrid,out_time,out_index)
445
446
! Other locals
447
integer :: i,j,m,iq,k,jq,num_eqn
448
- real(kind=8) :: t0,tf,tau, qaug(10)
+ real(kind=8) :: t0,tf,tau, qaug(fgrid%time_index)
449
real(kind=8), allocatable :: qeta(:,:,:)
450
real(kind=4), allocatable :: qeta4(:,:,:)
451
real(kind=8) :: h_early,h_late,topo_early,topo_late
0 commit comments