Skip to content

Commit

Permalink
grid: Remove obsolete lgrid_type
Browse files Browse the repository at this point in the history
  • Loading branch information
oschuett committed Sep 23, 2020
1 parent b3beb5c commit 62596e2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 138 deletions.
119 changes: 0 additions & 119 deletions src/pw/lgrid_types.F

This file was deleted.

12 changes: 1 addition & 11 deletions src/pw_env/pw_env_types.F
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ MODULE pw_env_types
USE input_section_types, ONLY: section_vals_release,&
section_vals_type
USE kinds, ONLY: dp
USE lgrid_types, ONLY: lgrid_release,&
lgrid_type
USE pw_poisson_types, ONLY: pw_poisson_release,&
pw_poisson_type
USE pw_pool_types, ONLY: pw_pool_p_type,&
Expand Down Expand Up @@ -51,7 +49,6 @@ MODULE pw_env_types
!> \param pw_pools pools for multigrids
!> \param rs_descs descriptors for the realspace grids
!> \param rs_grids the realspace grids
!> \param lgrid scratch space for OpenMP threads rs_grid operations
!> \param xc_pw_pool the pool used for xc calculation on grid (might be the
!> same as the finest, or finer still).
!> \param vdw_pw_pool the pool used for vdw-nl calculation on grid (might be the
Expand Down Expand Up @@ -82,7 +79,6 @@ MODULE pw_env_types
DIMENSION(:), POINTER :: rs_descs
TYPE(realspace_grid_p_type), &
DIMENSION(:), POINTER :: rs_grids
TYPE(lgrid_type), POINTER :: lgrid
TYPE(gridlevel_info_type), POINTER :: gridlevel_info
TYPE(cube_info_type), DIMENSION(:), POINTER :: cube_info
TYPE(pw_poisson_type), POINTER :: poisson_env
Expand All @@ -105,7 +101,6 @@ MODULE pw_env_types
!> \param auxbas_rs_grid ...
!> \param rs_descs ...
!> \param rs_grids ...
!> \param lgrid ...
!> \param xc_pw_pool ...
!> \param vdw_pw_pool ...
!> \param poisson_env ...
Expand All @@ -115,7 +110,7 @@ MODULE pw_env_types
!> \author Fawzi Mohamed
! **************************************************************************************************
SUBROUTINE pw_env_get(pw_env, pw_pools, cube_info, gridlevel_info, &
auxbas_pw_pool, auxbas_grid, auxbas_rs_desc, auxbas_rs_grid, rs_descs, rs_grids, lgrid, &
auxbas_pw_pool, auxbas_grid, auxbas_rs_desc, auxbas_rs_grid, rs_descs, rs_grids, &
xc_pw_pool, vdw_pw_pool, poisson_env, interp_section)
TYPE(pw_env_type), POINTER :: pw_env
TYPE(pw_pool_p_type), DIMENSION(:), OPTIONAL, &
Expand All @@ -131,7 +126,6 @@ SUBROUTINE pw_env_get(pw_env, pw_pools, cube_info, gridlevel_info, &
OPTIONAL, POINTER :: rs_descs
TYPE(realspace_grid_p_type), DIMENSION(:), &
OPTIONAL, POINTER :: rs_grids
TYPE(lgrid_type), OPTIONAL, POINTER :: lgrid
TYPE(pw_pool_type), OPTIONAL, POINTER :: xc_pw_pool, vdw_pw_pool
TYPE(pw_poisson_type), OPTIONAL, POINTER :: poisson_env
TYPE(section_vals_type), OPTIONAL, POINTER :: interp_section
Expand All @@ -141,7 +135,6 @@ SUBROUTINE pw_env_get(pw_env, pw_pools, cube_info, gridlevel_info, &
IF (PRESENT(pw_pools)) pw_pools => pw_env%pw_pools
IF (PRESENT(rs_descs)) rs_descs => pw_env%rs_descs
IF (PRESENT(rs_grids)) rs_grids => pw_env%rs_grids
IF (PRESENT(lgrid)) lgrid => pw_env%lgrid
IF (PRESENT(cube_info)) cube_info => pw_env%cube_info
IF (PRESENT(gridlevel_info)) gridlevel_info => pw_env%gridlevel_info
IF (PRESENT(auxbas_pw_pool)) THEN
Expand Down Expand Up @@ -228,9 +221,6 @@ SUBROUTINE pw_env_release(pw_env, kg)
END DO
DEALLOCATE (pw_env%rs_grids)
END IF
IF (ASSOCIATED(pw_env%lgrid)) THEN
CALL lgrid_release(pw_env%lgrid)
END IF
DEALLOCATE (pw_env)
END IF
END IF
Expand Down
9 changes: 1 addition & 8 deletions src/pw_env_methods.F
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ MODULE pw_env_methods
section_vals_type,&
section_vals_val_get
USE kinds, ONLY: dp
USE lgrid_types, ONLY: lgrid_create,&
lgrid_release
USE ps_implicit_types, ONLY: MIXED_BC,&
MIXED_PERIODIC_BC,&
NEUMANN_BC,&
Expand Down Expand Up @@ -131,7 +129,7 @@ SUBROUTINE pw_env_create(pw_env)
ALLOCATE (pw_env)
NULLIFY (pw_env%pw_pools, pw_env%gridlevel_info, pw_env%poisson_env, &
pw_env%cube_info, pw_env%rs_descs, pw_env%rs_grids, &
pw_env%xc_pw_pool, pw_env%vdw_pw_pool, pw_env%lgrid, &
pw_env%xc_pw_pool, pw_env%vdw_pw_pool, &
pw_env%interp_section)
pw_env%auxbas_grid = -1
pw_env%ref_count = 1
Expand Down Expand Up @@ -230,7 +228,6 @@ SUBROUTINE pw_env_rebuild(pw_env, qs_env, external_para_env)
END DO
DEALLOCATE (pw_env%rs_grids)
END IF
CALL lgrid_release(pw_env%lgrid)
IF (ASSOCIATED(pw_env%gridlevel_info)) THEN
CALL destroy_gaussian_gridlevel(pw_env%gridlevel_info)
ELSE
Expand Down Expand Up @@ -586,10 +583,6 @@ SUBROUTINE pw_env_rebuild(pw_env, qs_env, external_para_env)
DEALLOCATE (radius)
! Initialise the lgrids which may be used by OpenMP threads in QS routines
! (but don't yet allocate the lgrid, in case we don't need it)
CALL lgrid_create(pw_env%lgrid, pw_env%rs_descs)
! Print grid information
logger => cp_get_default_logger()
Expand Down

0 comments on commit 62596e2

Please sign in to comment.