Skip to content

Commit d9f4c25

Browse files
authored
refactor(memorystore) Rename all references to the memorylist to memorystore (#1876)
In PR #1701 the MemoryList type has been renamed to MemoryStore. This commit contains some cleanup actions. It renames all references to the memorylist to memorystore. It doesn't contain any functional changes.
1 parent 22c0fd1 commit d9f4c25

File tree

30 files changed

+190
-190
lines changed

30 files changed

+190
-190
lines changed

src/Distributed/MappedMemory.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module MappedMemoryModule
22
use KindModule, only: I4B, LGP
33
use ConstantsModule, only: LENMEMPATH, LENVARNAME
44
use MemoryTypeModule, only: MemoryType
5-
use MemoryManagerModule, only: get_from_memorylist
5+
use MemoryManagerModule, only: get_from_memorystore
66

77
implicit none
88
private
@@ -48,8 +48,8 @@ subroutine sync(this)
4848

4949
if (.not. associated(this%src)) then
5050
! cache
51-
call get_from_memorylist(this%src_name, this%src_path, this%src, found)
52-
call get_from_memorylist(this%tgt_name, this%tgt_path, this%tgt, found)
51+
call get_from_memorystore(this%src_name, this%src_path, this%src, found)
52+
call get_from_memorystore(this%tgt_name, this%tgt_path, this%tgt, found)
5353
end if
5454

5555
if (this%skip_sync()) return

src/Distributed/VirtualBase.f90

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module VirtualBaseModule
44
use ConstantsModule, only: LENVARNAME, LENMEMPATH, LENCOMPONENTNAME
55
use MemoryTypeModule, only: MemoryType
66
use MemoryManagerModule, only: mem_allocate, mem_deallocate, &
7-
get_from_memorylist
7+
get_from_memorystore
88
implicit none
99
private
1010

@@ -145,8 +145,8 @@ subroutine vm_link(this)
145145
! local
146146
logical(LGP) :: found
147147

148-
call get_from_memorylist(this%var_name, this%mem_path, &
149-
this%virtual_mt, found)
148+
call get_from_memorystore(this%var_name, this%mem_path, &
149+
this%virtual_mt, found)
150150

151151
end subroutine vm_link
152152

src/Distributed/VirtualDataContainer.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module VirtualDataContainerModule
66
use STLVecIntModule
77
use ConstantsModule, only: LENCOMPONENTNAME, LENMEMPATH, LENCONTEXTNAME
88
use MemoryHelperModule, only: create_mem_path
9-
use MemoryManagerModule, only: get_from_memorylist
9+
use MemoryManagerModule, only: get_from_memorystore
1010
implicit none
1111
private
1212

@@ -268,7 +268,7 @@ subroutine map_internal(this, vd, shape, stages)
268268
! create new virtual memory item
269269
vm_pth = this%get_vrt_mem_path(vd%var_name, vd%subcmp_name)
270270
call vd%vm_allocate(vd%var_name, vm_pth, shape)
271-
call get_from_memorylist(vd%var_name, vm_pth, vd%virtual_mt, found)
271+
call get_from_memorystore(vd%var_name, vm_pth, vd%virtual_mt, found)
272272
if (vd%map_type > 0) then
273273
vd%remote_to_virtual => this%element_luts(vd%map_type)%remote_to_virtual
274274
vd%remote_elem_shift => this%element_maps(vd%map_type)%remote_elem_shift

src/Model/Discretization/Dis.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module DisModule
1212
store_error_filename
1313
use SimVariablesModule, only: errmsg, idm_context
1414
use MemoryManagerModule, only: mem_allocate, mem_deallocate
15-
use MemoryManagerExtModule, only: mem_set_value, memorylist_remove
15+
use MemoryManagerExtModule, only: mem_set_value, memorystore_remove
1616
use TdisModule, only: kstp, kper, pertim, totim, delt
1717

1818
implicit none
@@ -155,7 +155,7 @@ subroutine dis3d_da(this)
155155
class(DisType) :: this
156156
!
157157
! -- Deallocate idm memory
158-
call memorylist_remove(this%name_model, 'DIS', idm_context)
158+
call memorystore_remove(this%name_model, 'DIS', idm_context)
159159
!
160160
! -- DisBaseType deallocate
161161
call this%DisBaseType%dis_da()

src/Model/Discretization/Dis2d.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module Dis2dModule
1212
store_error_filename
1313
use SimVariablesModule, only: errmsg, idm_context
1414
use MemoryManagerModule, only: mem_allocate, mem_deallocate
15-
use MemoryManagerExtModule, only: mem_set_value, memorylist_remove
15+
use MemoryManagerExtModule, only: mem_set_value, memorystore_remove
1616
use TdisModule, only: kstp, kper, pertim, totim, delt
1717

1818
implicit none
@@ -151,7 +151,7 @@ subroutine dis3d_da(this)
151151
class(Dis2dType) :: this
152152
!
153153
! -- Deallocate idm memory
154-
call memorylist_remove(this%name_model, 'DIS2D', idm_context)
154+
call memorystore_remove(this%name_model, 'DIS2D', idm_context)
155155
!
156156
! -- DisBaseType deallocate
157157
call this%DisBaseType%dis_da()

src/Model/Discretization/Disu.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module DisuModule
1313
use BaseDisModule, only: DisBaseType
1414
use MemoryManagerModule, only: mem_allocate, mem_deallocate, &
1515
mem_reallocate, mem_setptr
16-
use MemoryManagerExtModule, only: mem_set_value, memorylist_remove
16+
use MemoryManagerExtModule, only: mem_set_value, memorystore_remove
1717
use TdisModule, only: kstp, kper, pertim, totim, delt
1818
use DisvGeom, only: line_unit_vector
1919

@@ -433,9 +433,9 @@ subroutine disu_da(this)
433433
class(DisuType) :: this
434434
!
435435
! -- Deallocate idm memory
436-
call memorylist_remove(this%name_model, 'DISU', idm_context)
437-
call memorylist_remove(component=this%name_model, &
438-
context=idm_context)
436+
call memorystore_remove(this%name_model, 'DISU', idm_context)
437+
call memorystore_remove(component=this%name_model, &
438+
context=idm_context)
439439
!
440440
! -- scalars
441441
call mem_deallocate(this%njausr)

src/Model/Discretization/Disv.f90

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module DisvModule
1313
use SimVariablesModule, only: errmsg, idm_context
1414
use DisvGeom, only: DisvGeomType, line_unit_vector
1515
use MemoryManagerModule, only: mem_allocate, mem_deallocate, mem_setptr
16-
use MemoryManagerExtModule, only: mem_set_value, memorylist_remove
16+
use MemoryManagerExtModule, only: mem_set_value, memorystore_remove
1717
use TdisModule, only: kstp, kper, pertim, totim, delt
1818

1919
implicit none
@@ -171,9 +171,9 @@ subroutine disv_da(this)
171171
class(DisvType) :: this
172172
!
173173
! -- Deallocate idm memory
174-
call memorylist_remove(this%name_model, 'DISV', idm_context)
175-
call memorylist_remove(component=this%name_model, &
176-
context=idm_context)
174+
call memorystore_remove(this%name_model, 'DISV', idm_context)
175+
call memorystore_remove(component=this%name_model, &
176+
context=idm_context)
177177
!
178178
! -- DisBaseType deallocate
179179
call this%DisBaseType%dis_da()

src/Model/Discretization/Disv1d.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,15 +1095,15 @@ end function nodeu_from_string
10951095
subroutine disv1d_da(this)
10961096
! -- modules
10971097
use MemoryManagerModule, only: mem_deallocate
1098-
use MemoryManagerExtModule, only: memorylist_remove
1098+
use MemoryManagerExtModule, only: memorystore_remove
10991099
use SimVariablesModule, only: idm_context
11001100
! -- dummy
11011101
class(Disv1dType) :: this
11021102
! -- local
11031103
logical(LGP) :: deallocate_vertices
11041104
!
11051105
! -- Deallocate idm memory
1106-
call memorylist_remove(this%name_model, 'DISV1D', idm_context)
1106+
call memorystore_remove(this%name_model, 'DISV1D', idm_context)
11071107
!
11081108
! -- scalars
11091109
deallocate_vertices = (this%nvert > 0)

src/Model/Discretization/Disv2d.f90

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module Disv2dModule
1313
use SimVariablesModule, only: errmsg, idm_context
1414
use DisvGeom, only: DisvGeomType, line_unit_vector
1515
use MemoryManagerModule, only: mem_allocate, mem_deallocate, mem_setptr
16-
use MemoryManagerExtModule, only: mem_set_value, memorylist_remove
16+
use MemoryManagerExtModule, only: mem_set_value, memorystore_remove
1717
use TdisModule, only: kstp, kper, pertim, totim, delt
1818

1919
implicit none
@@ -152,14 +152,14 @@ end subroutine disv2d_df
152152
subroutine disv2d_da(this)
153153
! -- modules
154154
use MemoryManagerModule, only: mem_deallocate
155-
use MemoryManagerExtModule, only: memorylist_remove
155+
use MemoryManagerExtModule, only: memorystore_remove
156156
use SimVariablesModule, only: idm_context
157157
! -- dummy
158158
class(Disv2dType) :: this
159159
! -- local
160160

161161
! -- Deallocate idm memory
162-
call memorylist_remove(this%name_model, 'DISV2D', idm_context)
162+
call memorystore_remove(this%name_model, 'DISV2D', idm_context)
163163

164164
! -- scalars
165165
call mem_deallocate(this%nvert)
@@ -190,8 +190,8 @@ end subroutine disv2d_da
190190
! class(Disv2dType) :: this
191191
! !
192192
! ! -- Deallocate idm memory
193-
! call memorylist_remove(this%name_model, 'DISV', idm_context)
194-
! call memorylist_remove(component=this%name_model, &
193+
! call memorystore_remove(this%name_model, 'DISV', idm_context)
194+
! call memorystore_remove(component=this%name_model, &
195195
! context=idm_context)
196196
! !
197197
! ! -- DisBaseType deallocate

src/Model/GroundWaterEnergy/gwe-cnd.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,14 +459,14 @@ end subroutine allocate_arrays
459459
subroutine cnd_da(this)
460460
! -- modules
461461
use MemoryManagerModule, only: mem_deallocate
462-
use MemoryManagerExtModule, only: memorylist_remove
462+
use MemoryManagerExtModule, only: memorystore_remove
463463
use SimVariablesModule, only: idm_context
464464
! -- dummy
465465
class(GweCndType) :: this
466466
! -- local
467467
!
468468
! -- Deallocate input memory
469-
call memorylist_remove(this%name_model, 'CND', idm_context)
469+
call memorystore_remove(this%name_model, 'CND', idm_context)
470470
!
471471
! -- deallocate arrays
472472
if (this%inunit /= 0) then

0 commit comments

Comments
 (0)