Skip to content

Commit a53177b

Browse files
authored
Merge pull request #1825 from mnagaso/hdf5_update
Recreated: Debug/updates for hdf5 routines
2 parents 300bf37 + 4ee070d commit a53177b

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/shared/hdf5_manager.F90

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,9 +1506,6 @@ subroutine h5_add_attribute_i(attribute_name, data)
15061506
call h5tcopy_f(H5T_NATIVE_INTEGER, atype_id, error) ! for a string tag of attribute value
15071507
if (error /= 0) write(*,*) 'hdf5 tcopy failed for attribute, ', attribute_name
15081508
call check_error()
1509-
call h5tset_size_f(atype_id, taglen, error)
1510-
if (error /= 0) write(*,*) 'hdf5 set_size failed for attribute, ', attribute_name
1511-
call check_error()
15121509
! here the attribute is written on the current openning dataset
15131510
call h5acreate_f(dataset_id, trim(attribute_name), atype_id, aspace_id, attr_id, error)
15141511
if (error /= 0) write(*,*) 'hdf5 acreate failed for attribute, ', attribute_name

src/tomography/postprocess_sensitivity_kernels/smooth_sem_pde.F90

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ program smooth_sem_pde
5353
nspec_inner_elastic,nspec_outer_elastic,phase_ispec_inner_elastic
5454
!use specfem_par_acoustic, only: ispec_is_acoustic, nspec_acoustic
5555
!use specfem_par_poroelastic, only: ispec_is_poroelastic
56+
5657
use pml_par, only: is_CPML, NSPEC_CPML, CPML_to_spec
5758

5859
implicit none
@@ -369,6 +370,7 @@ program smooth_sem_pde
369370
enddo;enddo;enddo
370371
enddo
371372
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
373+
372374
ddat_glob(:) = 0.0
373375

374376
if (USE_GPU .and. GPU_MODE) then
@@ -424,6 +426,7 @@ program smooth_sem_pde
424426
else
425427
num_elements = nspec_inner_elastic
426428
endif
429+
427430
if (USE_GPU .and. GPU_MODE) then
428431
call compute_update_element_smooth_pde_gpu(Mesh_pointer, &
429432
Smooth_container, &
@@ -849,6 +852,9 @@ subroutine assemble_MPI_send_smooth(NPROC,NGLOB_AB, &
849852

850853
end subroutine assemble_MPI_send_smooth
851854

855+
!
856+
!-------------------------------------------------------------------------------------------------
857+
!
852858

853859
subroutine assemble_MPI_send_smooth_cuda(NPROC,&
854860
buffer_send_vector_ext_mesh_smooth, &

0 commit comments

Comments
 (0)