Changeset 2956 for palm/trunk/SOURCE/read_restart_data_mod.f90
- Timestamp:
- Apr 10, 2018 11:01:03 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/read_restart_data_mod.f90
r2921 r2956 25 25 ! ----------------- 26 26 ! $Id$ 27 ! spectrum_x and spectrum_y have been moved to global data 28 ! 29 ! 2921 2018-03-22 15:05:23Z Giersch 27 30 ! spinup_time, day_of_year_init and time_utc_init are also read now 28 31 ! … … 117 120 118 121 USE spectra_mod, & 119 ONLY: average_count_sp 122 ONLY: average_count_sp, spectrum_x, spectrum_y 120 123 121 124 USE statistics, & … … 569 572 CASE ( 'simulated_time' ) 570 573 READ ( 13 ) simulated_time 574 CASE ( 'spectrum_x' ) 575 IF ( .NOT. ALLOCATED( spectrum_x ) ) THEN 576 ALLOCATE( spectrum_x( 1:nx/2, 1:100, 1:10 ) ) 577 ENDIF 578 READ ( 13 ) spectrum_x 579 CASE ( 'spectrum_y' ) 580 IF ( .NOT. ALLOCATED( spectrum_y ) ) THEN 581 ALLOCATE( spectrum_y( 1:ny/2, 1:100, 1:10 ) ) 582 ENDIF 583 READ ( 13 ) spectrum_y 571 584 CASE ( 'spinup_time' ) 572 585 READ ( 13 ) spinup_time … … 1052 1065 ONLY: id_random_array, seq_random_array 1053 1066 1054 USE spectra_mod, &1055 ONLY: spectrum_x, spectrum_y1056 1057 1067 USE surface_mod, & 1058 1068 ONLY : surface_rrd_local … … 1690 1700 shf_av(nysc-nbgp:nync+nbgp,nxlc-nbgp:nxrc+nbgp) = & 1691 1701 tmp_2d(nysf-nbgp:nynf+nbgp,nxlf-nbgp:nxrf+nbgp) 1692 1693 CASE ( 'spectrum_x' )1694 IF ( k == 1 ) THEN1695 IF ( nx_on_file /= nx ) THEN1696 message_string = 'rrd_local: spectrum_x ' // &1697 'on restart file ignored because' // &1698 '&total numbers of grid points (nx) ' // &1699 'do not match'1700 CALL message( 'rrd_local', 'PA0293', &1701 0, 1, 0, 6, 0 )1702 READ ( 13 ) rdummy1703 ELSE1704 READ ( 13 ) spectrum_x1705 ENDIF1706 ENDIF1707 1708 CASE ( 'spectrum_y' )1709 IF ( k == 1 ) THEN1710 IF ( ny_on_file /= ny ) THEN1711 message_string = 'rrd_local: spectrum_y ' // &1712 'on restart file ignored because' // &1713 '&total numbers of grid points (ny) '// &1714 'do not match'1715 CALL message( 'rrd_local', 'PA0294', &1716 0, 1, 0, 6, 0 )1717 READ ( 13 ) rdummy1718 ELSE1719 READ ( 13 ) spectrum_y1720 ENDIF1721 ENDIF1722 1702 1723 1703 CASE ( 'ssws_av' )
Note: See TracChangeset
for help on using the changeset viewer.