Skip to content

Commit

Permalink
updates tools to read new database format
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpeter committed Jun 24, 2020
1 parent a7b7e80 commit c741d5a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions utils/Visualization/Paraview/create_slice_VTK.f90
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ program create_slice_VTK
status='old',action='read',form='unformatted')
read(27) NSPEC_AB
read(27) NGLOB_AB
read(27) ier ! skip dummy

! ibool file
allocate(ibool(NGLLX,NGLLY,NGLLZ,NSPEC_AB),stat=ier)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ subroutine cvd_count_totals_ext_mesh(nproc,proc_list,proc_width,inp_dir, &

read(27) NSPEC_AB
read(27) NGLOB_AB
read(27) ios ! skip dummy
! gets ibool
if (out_res /= 2) then
allocate(ibool(NGLLX,NGLLY,NGLLZ,NSPEC_AB))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ subroutine write_vtu
endif
read(27) NSPEC_AB
read(27) NGLOB_AB

read(27) ios ! skip dummy
! ibool file
allocate(ibool(NGLLX,NGLLY,NGLLZ,NSPEC_AB))
read(27) ibool
Expand Down Expand Up @@ -445,6 +445,7 @@ subroutine write_vtu
endif
read(27) NSPEC_AB
read(27) NGLOB_AB
read(27) ios ! skip dummy
! ibool file
allocate(ibool(NGLLX,NGLLY,NGLLZ,NSPEC_AB))
read(27) ibool
Expand Down Expand Up @@ -587,6 +588,7 @@ subroutine write_vtu
endif
read(27) NSPEC_AB
read(27) NGLOB_AB
read(27) ios ! skip dummy
! ibool file
allocate(ibool(NGLLX,NGLLY,NGLLZ,NSPEC_AB))
read(27) ibool
Expand Down
1 change: 1 addition & 0 deletions utils/locate_partition.f90
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ program locate_partition
if ( ier /= 0 ) stop 'please check your compilation, use the same compiler & flags as for SPECFEM3D'
read(27,iostat=ier) NGLOB_AB
if ( ier /= 0 ) stop 'please check your compilation, use the same compiler & flags as for SPECFEM3D'
read(27,iostat=ier) ios ! skip dummy

! ibool file
allocate(ibool(NGLLX,NGLLY,NGLLZ,NSPEC_AB),stat=ier)
Expand Down

0 comments on commit c741d5a

Please sign in to comment.