Changeset 4356 for palm/trunk/SOURCE/read_restart_data_mod.f90
- Timestamp:
- Dec 20, 2019 5:09:33 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/read_restart_data_mod.f90
r4331 r4356 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Change automatic arrays to allocatable ones in rrd_local, in order to avoid 28 ! memory problems due to too small stack size for large jobs with intel 29 ! compiler. (J.Resler) 30 ! 31 ! 4331 2019-12-10 18:25:02Z suehring 27 32 ! Enable restart data for 2-m potential temperature output 28 33 ! … … 1050 1055 INTEGER(iwp), DIMENSION(numprocs_previous_run) :: overlap_count !< 1051 1056 1052 INTEGER(iwp), DIMENSION( numprocs_previous_run,1000):: nxlfa !<1053 INTEGER(iwp), DIMENSION( numprocs_previous_run,1000):: nxrfa !<1054 INTEGER(iwp), DIMENSION( numprocs_previous_run,1000):: nynfa !<1055 INTEGER(iwp), DIMENSION( numprocs_previous_run,1000):: nysfa !<1056 INTEGER(iwp), DIMENSION( numprocs_previous_run,1000):: offset_xa !<1057 INTEGER(iwp), DIMENSION( numprocs_previous_run,1000):: offset_ya !<1057 INTEGER(iwp), DIMENSION(:,:), ALLOCATABLE :: nxlfa !< 1058 INTEGER(iwp), DIMENSION(:,:), ALLOCATABLE :: nxrfa !< 1059 INTEGER(iwp), DIMENSION(:,:), ALLOCATABLE :: nynfa !< 1060 INTEGER(iwp), DIMENSION(:,:), ALLOCATABLE :: nysfa !< 1061 INTEGER(iwp), DIMENSION(:,:), ALLOCATABLE :: offset_xa !< 1062 INTEGER(iwp), DIMENSION(:,:), ALLOCATABLE :: offset_ya !< 1058 1063 1059 1064 INTEGER(isp), DIMENSION(:,:), ALLOCATABLE :: tmp_2d_id_random !< temporary array for storing random generator data … … 1070 1075 !-- Read data from previous model run. 1071 1076 CALL cpu_log( log_point_s(14), 'rrd_local', 'start' ) 1077 ! 1078 !-- Allocate temporary buffer arrays. In previous versions, there were 1079 !-- declared as automated arrays, causing memory problems when these 1080 !-- were allocate on stack. 1081 ALLOCATE( nxlfa(numprocs_previous_run,1000) ) 1082 ALLOCATE( nxrfa(numprocs_previous_run,1000) ) 1083 ALLOCATE( nynfa(numprocs_previous_run,1000) ) 1084 ALLOCATE( nysfa(numprocs_previous_run,1000) ) 1085 ALLOCATE( offset_xa(numprocs_previous_run,1000) ) 1086 ALLOCATE( offset_ya(numprocs_previous_run,1000) ) 1072 1087 1073 1088 ! … … 1793 1808 1794 1809 ENDDO ! dataloop 1795 1796 1810 ! 1797 1811 !-- Close the restart file … … 1801 1815 1802 1816 ENDDO ! loop over restart files 1803 1817 ! 1818 !-- Deallocate temporary buffer arrays 1819 DEALLOCATE( nxlfa ) 1820 DEALLOCATE( nxrfa ) 1821 DEALLOCATE( nynfa ) 1822 DEALLOCATE( nysfa ) 1823 DEALLOCATE( offset_xa ) 1824 DEALLOCATE( offset_ya ) 1804 1825 ! 1805 1826 !-- Restore the original filename for the restart file to be written
Note: See TracChangeset
for help on using the changeset viewer.