Changeset 4069 for palm/trunk/SOURCE
- Timestamp:
- Jul 1, 2019 2:05:51 PM (6 years ago)
- Location:
- palm/trunk/SOURCE
- Files:
-
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/check_open.f90
r3967 r4069 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Masked output running index mid has been introduced as a local variable to 28 ! avoid runtime error (Loop variable has been modified) in time_integration 29 ! 30 ! 3967 2019-05-09 16:04:34Z gronemeier 27 31 ! Save binary data of virtual measurements within separate folder 28 32 ! … … 189 193 USE control_parameters, & 190 194 ONLY: coupling_char, data_output_2d_on_each_pe, & 191 max_masks, message_string, mid,nz_do3d, openfile, &195 max_masks, message_string, nz_do3d, openfile, & 192 196 run_description_header 193 197 … … 227 231 INTEGER(iwp) :: file_id !< 228 232 INTEGER(iwp) :: ioerr !< IOSTAT flag for IO-commands ( 0 = no error ) 233 INTEGER(iwp) :: mid !< masked output running index 229 234 230 235 LOGICAL :: netcdf_extend !< -
palm/trunk/SOURCE/check_parameters.f90
r4048 r4069 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Masked output running index mid has been introduced as a local variable to 28 ! avoid runtime error (Loop variable has been modified) in time_integration 29 ! 30 ! 4048 2019-06-21 21:00:21Z knoop 27 31 ! Moved tcm_check_data_output to module_interface 28 32 ! … … 858 862 INTEGER(iwp) :: k !< loop index 859 863 INTEGER(iwp) :: kk !< loop index 864 INTEGER(iwp) :: mid !< masked output running index 860 865 INTEGER(iwp) :: netcdf_data_format_save !< initial value of netcdf_data_format 861 866 INTEGER(iwp) :: position !< index position of string -
palm/trunk/SOURCE/chemistry_model_mod.f90
r4029 r4069 27 27 ! ----------------- 28 28 ! $Id$ 29 ! Masked output running index mid has been introduced as a local variable to 30 ! avoid runtime error (Loop variable has been modified) in time_integration 31 ! 32 ! 4029 2019-06-14 14:04:35Z raasch 29 33 ! nest_chemistry option removed 30 34 ! … … 1510 1514 !> Subroutine defining mask output variables for chemical species 1511 1515 !------------------------------------------------------------------------------! 1512 SUBROUTINE chem_data_output_mask( av, variable, found, local_pf )1516 SUBROUTINE chem_data_output_mask( av, variable, found, local_pf, mid ) 1513 1517 1514 1518 … … 1520 1524 1521 1525 CHARACTER(LEN=5) :: grid !< flag to distinquish between staggered grids 1526 CHARACTER(LEN=16) :: spec_name 1522 1527 CHARACTER(LEN=*) :: variable !< 1523 INTEGER(iwp) :: av !< flag to control data output of instantaneous or time-averaged data 1524 LOGICAL :: found 1525 REAL(wp), DIMENSION(mask_size_l(mid,1),mask_size_l(mid,2),mask_size_l(mid,3)) :: & 1526 local_pf !< 1527 ! 1528 !-- local variables. 1529 CHARACTER(LEN=16) :: spec_name 1528 1529 INTEGER(iwp) :: av !< flag to control data output of instantaneous or time-averaged data 1530 1530 INTEGER(iwp) :: lsp 1531 1531 INTEGER(iwp) :: i !< grid index along x-direction 1532 1532 INTEGER(iwp) :: j !< grid index along y-direction 1533 1533 INTEGER(iwp) :: k !< grid index along z-direction 1534 INTEGER(iwp) :: mid !< masked output running index 1534 1535 INTEGER(iwp) :: topo_top_ind !< k index of highest horizontal surface 1536 1537 LOGICAL :: found 1538 1539 REAL(wp), DIMENSION(mask_size_l(mid,1),mask_size_l(mid,2),mask_size_l(mid,3)) :: & 1540 local_pf !< 1541 ! 1542 !-- local variables. 1535 1543 1536 1544 found = .TRUE. -
palm/trunk/SOURCE/close_file.f90
r3655 r4069 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Masked output running index mid has been introduced as a local variable to 28 ! avoid runtime error (Loop variable has been modified) in time_integration 29 ! 30 ! 3655 2019-01-07 16:51:22Z knoop 27 31 ! unused variables and format statements removed 28 32 ! … … 94 98 95 99 USE control_parameters, & 96 ONLY: max_masks, mid,openfile100 ONLY: max_masks, openfile 97 101 98 102 USE kinds … … 119 123 INTEGER(iwp) :: fid !< 120 124 INTEGER(iwp) :: file_id !< 125 INTEGER(iwp) :: mid !< masked output running index 121 126 INTEGER(iwp) :: planz !< 122 127 -
palm/trunk/SOURCE/data_output_mask.f90
r4039 r4069 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Masked output running index mid has been introduced as a local variable to 28 ! avoid runtime error (Loop variable has been modified) in time_integration 29 ! 30 ! 4039 2019-06-18 10:32:41Z suehring 27 31 ! Modularize diagnostic output 28 32 ! … … 156 160 !> Masked data output in netCDF format for current mask (current value of mid). 157 161 !------------------------------------------------------------------------------! 158 SUBROUTINE data_output_mask( av )162 SUBROUTINE data_output_mask( av, mid ) 159 163 160 164 … … 180 184 mask_j, mask_k, mask_size, mask_size_l, mask_start_l, & 181 185 mask_surface, & 182 max_masks, message_string, mid, nz_do3d, salsa,&186 max_masks, message_string, nz_do3d, salsa, & 183 187 time_since_reference_point 184 188 … … 229 233 INTEGER(iwp) :: k !< loop index 230 234 INTEGER(iwp) :: kk !< vertical index 235 INTEGER(iwp) :: mid !< masked output running index 231 236 INTEGER(iwp) :: n !< loop index 232 237 INTEGER(iwp) :: netcdf_data_format_save !< value of netcdf_data_format … … 686 691 IF ( radiation ) THEN 687 692 CALL radiation_data_output_mask(av, domask(mid,av,ivar), found,& 688 local_pf )693 local_pf, mid ) 689 694 ENDIF 690 695 691 696 IF ( air_chemistry ) THEN 692 697 CALL chem_data_output_mask(av, domask(mid,av,ivar), found, & 693 local_pf )698 local_pf, mid ) 694 699 ENDIF 695 700 ! 696 701 !-- Check for diagnostic quantities 697 CALL doq_output_mask( av, domask(mid,av,ivar), found, local_pf ) 702 CALL doq_output_mask( av, domask(mid,av,ivar), found, local_pf, & 703 mid) 698 704 ! 699 705 !-- SALSA quantities 700 706 IF ( salsa ) THEN 701 707 CALL salsa_data_output_mask( av, domask(mid,av,ivar), found, & 702 local_pf )708 local_pf, mid ) 703 709 ENDIF 704 710 ! … … 706 712 IF ( .NOT. found ) THEN 707 713 CALL user_data_output_mask(av, domask(mid,av,ivar), found, & 708 local_pf )714 local_pf, mid ) 709 715 ENDIF 710 716 -
palm/trunk/SOURCE/diagnostic_output_quantities_mod.f90
r4039 r4069 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Masked output running index mid has been introduced as a local variable to 28 ! avoid runtime error (Loop variable has been modified) in time_integration 29 ! 30 ! 4039 2019-06-18 10:32:41Z suehring 27 31 ! - Add output of uu, vv, ww to enable variance calculation according temporal 28 32 ! EC method … … 679 683 !> temporary array with indices (i,j,k) for masked data output. 680 684 !------------------------------------------------------------------------------! 681 SUBROUTINE doq_output_mask( av, variable, found, local_pf )685 SUBROUTINE doq_output_mask( av, variable, found, local_pf, mid ) 682 686 683 687 USE control_parameters … … 698 702 INTEGER(iwp) :: j !< index variable along y-direction 699 703 INTEGER(iwp) :: k !< index variable along z-direction 704 INTEGER(iwp) :: mid !< masked output running index 700 705 INTEGER(iwp) :: topo_top_ind !< k index of highest horizontal surface 701 706 … … 965 970 966 971 USE control_parameters, & 967 ONLY: do2d, do3d, domask, masks , mid972 ONLY: do2d, do3d, domask, masks 968 973 969 974 IMPLICIT NONE … … 976 981 INTEGER(iwp) :: ivar_all !< loop index 977 982 INTEGER(iwp) :: l !< index for cutting string 983 INTEGER(iwp) :: mid !< masked output running index 978 984 979 985 prepared_diagnostic_output_quantities = .FALSE. -
palm/trunk/SOURCE/fft_xy_mod.f90
r3655 r4069 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Code added to avoid compiler warnings 28 ! 29 ! 3655 2019-01-07 16:51:22Z knoop 27 30 ! OpenACC port for SPEC 28 31 ! … … 457 460 REAL(wp), DIMENSION(0:nx,nys_x:nyn_x,nzb_x:nzt_x) :: & 458 461 ar !< 462 463 ! 464 !-- To avoid compiler warning: Unused dummy argument âar_2dâ 465 IF ( PRESENT( ar_2d ) ) CONTINUE 459 466 460 467 IF ( direction == 'forward' ) THEN -
palm/trunk/SOURCE/header.f90
r4023 r4069 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Masked output running index mid has been introduced as a local variable to 28 ! avoid runtime error (Loop variable has been modified) in time_integration 29 ! 30 ! 4023 2019-06-12 13:20:01Z maronga 27 31 ! Renamed "coupling start time" to "spinup time" 28 32 ! … … 541 545 INTEGER(iwp) :: l !< substring length 542 546 INTEGER(iwp) :: ll !< substring length 547 INTEGER(iwp) :: mid !< masked output running index 543 548 INTEGER(iwp) :: my_cpl_id !< run id in a nested model setup 544 549 INTEGER(iwp) :: n !< running index over number of couplers in a nested model setup -
palm/trunk/SOURCE/init_masks.f90
r3766 r4069 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Masked output running index mid has been introduced as a local variable to 28 ! avoid runtime error (Loop variable has been modified) in time_integration 29 ! 30 ! 3766 2019-02-26 16:23:41Z raasch 27 31 ! unused variables removed 28 32 ! … … 178 182 mask_surface, mask_x, & 179 183 mask_x_loop, mask_xyz_dimension, mask_y, mask_y_loop, mask_z, & 180 mask_z_loop, max_masks, message_string, mid,&184 mask_z_loop, max_masks, message_string, & 181 185 passive_scalar, ocean_mode, varnamelength 182 186 … … 216 220 INTEGER(iwp) :: k !< loop index 217 221 INTEGER(iwp) :: m !< mask index 222 INTEGER(iwp) :: mid !< masked output running index 218 223 INTEGER(iwp) :: n !< loop index 219 224 INTEGER(iwp) :: sender !< PE id of sending PE -
palm/trunk/SOURCE/modules.f90
r4017 r4069 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Masked output running index mid has been introduced as a local variable to 28 ! avoid runtime error (Loop variable has been modified) in time_integration 29 ! 30 ! 4017 2019-06-06 12:16:46Z schwenkel 27 31 ! increase maximum number of virtual flights 28 32 ! … … 1226 1230 INTEGER(iwp) :: mg_cycles = 4 !< namelist parameter 1227 1231 INTEGER(iwp) :: mg_switch_to_pe0_level = -1 !< namelist parameter 1228 INTEGER(iwp) :: mid !< masked output running index1229 1232 INTEGER(iwp) :: ngsrb = 2 !< namelist parameter 1230 1233 INTEGER(iwp) :: nr_timesteps_this_run = 0 !< number of timesteps (cpu time measurements) -
palm/trunk/SOURCE/netcdf_interface_mod.f90
r4046 r4069 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Masked output running index mid has been introduced as a local variable to 28 ! avoid runtime error (Loop variable has been modified) in time_integration 29 ! 30 ! 4046 2019-06-21 17:32:04Z knoop 27 31 ! removal of special treatment for usm_define_netcdf_grid call 28 32 ! … … 697 701 mask_size_l, mask_i, mask_i_global, mask_j, mask_j_global, & 698 702 mask_k_global, mask_surface, & 699 message_string, mid, ntdim_2d_xy, ntdim_2d_xz,&703 message_string, ntdim_2d_xy, ntdim_2d_xz, & 700 704 ntdim_2d_yz, ntdim_3d, nz_do3d, ocean_mode, plant_canopy, & 701 705 run_description_header, salsa, section, simulated_time, & … … 796 800 INTEGER(iwp) :: k !< 797 801 INTEGER(iwp) :: kk !< 802 INTEGER(iwp) :: mid !< masked output running index 798 803 INTEGER(iwp) :: ns !< 799 804 INTEGER(iwp) :: ns_do !< actual value of ns for soil model data -
palm/trunk/SOURCE/radiation_model_mod.f90
r4067 r4069 28 28 ! ----------------- 29 29 ! $Id$ 30 ! Masked output running index mid has been introduced as a local variable to 31 ! avoid runtime error (Loop variable has been modified) in time_integration 32 ! 33 ! 4067 2019-07-01 13:29:25Z suehring 30 34 ! Bugfix, pass dummy string to MPI_INFO_SET (J. Resler) 31 35 ! … … 11101 11105 !> Subroutine defining masked data output 11102 11106 !------------------------------------------------------------------------------! 11103 SUBROUTINE radiation_data_output_mask( av, variable, found, local_pf )11107 SUBROUTINE radiation_data_output_mask( av, variable, found, local_pf, mid ) 11104 11108 11105 11109 USE control_parameters … … 11120 11124 INTEGER(iwp) :: j !< 11121 11125 INTEGER(iwp) :: k !< 11126 INTEGER(iwp) :: mid !< masked output running index 11122 11127 INTEGER(iwp) :: topo_top_ind !< k index of highest horizontal surface 11123 11128 -
palm/trunk/SOURCE/salsa_mod.f90
r4058 r4069 26 26 ! ----------------- 27 27 ! $Id$ 28 ! Masked output running index mid has been introduced as a local variable to 29 ! avoid runtime error (Loop variable has been modified) in time_integration 30 ! 31 ! 4058 2019-06-27 15:25:42Z knoop 28 32 ! Bugfix: to_be_resorted was uninitialized in case of s_H2O in 3d_data_averaging 29 33 ! … … 10716 10720 !> Subroutine defining mask output variables 10717 10721 !------------------------------------------------------------------------------! 10718 SUBROUTINE salsa_data_output_mask( av, variable, found, local_pf )10722 SUBROUTINE salsa_data_output_mask( av, variable, found, local_pf, mid ) 10719 10723 10720 10724 USE arrays_3d, & … … 10722 10726 10723 10727 USE control_parameters, & 10724 ONLY: mask_size_l, mask_surface , mid10728 ONLY: mask_size_l, mask_surface 10725 10729 10726 10730 USE surface_mod, & … … 10740 10744 INTEGER(iwp) :: j !< loop index in y-direction 10741 10745 INTEGER(iwp) :: k !< loop index in z-direction 10746 INTEGER(iwp) :: mid !< masked output running index 10742 10747 INTEGER(iwp) :: topo_top_ind !< k index of highest horizontal surface 10743 10748 -
palm/trunk/SOURCE/time_integration.f90
r4064 r4069 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Masked output running index mid has been introduced as a local variable to 28 ! avoid runtime error (Loop variable has been modified) in time_integration 29 ! 30 ! 4064 2019-07-01 05:33:33Z gronemeier 27 31 ! Moved call to radiation module out of intermediate time loop 28 32 ! … … 572 576 indoor_model, intermediate_timestep_count, intermediate_timestep_count_max, & 573 577 land_surface, large_scale_forcing, loop_optimization, lsf_surf, lsf_vert, masks, & 574 m id, multi_agent_system_end, multi_agent_system_start, nesting_offline, neutral,&578 multi_agent_system_end, multi_agent_system_start, nesting_offline, neutral, & 575 579 nr_timesteps_this_run, nudging, ocean_mode, passive_scalar, pt_reference, & 576 580 pt_slope_offset, random_heatflux, rans_mode, rans_tke_e, run_coupled, salsa, & … … 728 732 CHARACTER (LEN=9) :: time_to_string !< 729 733 730 INTEGER(iwp) :: ib !< index for aerosol size bins 731 INTEGER(iwp) :: ic !< index for aerosol mass bins 732 INTEGER(iwp) :: icc !< additional index for aerosol mass bins 733 INTEGER(iwp) :: ig !< index for salsa gases 734 INTEGER(iwp) :: lsp 735 INTEGER(iwp) :: lsp_usr !< 736 INTEGER(iwp) :: n !< loop counter for chemistry species 734 INTEGER(iwp) :: ib !< index for aerosol size bins 735 INTEGER(iwp) :: ic !< index for aerosol mass bins 736 INTEGER(iwp) :: icc !< additional index for aerosol mass bins 737 INTEGER(iwp) :: ig !< index for salsa gases 738 INTEGER(iwp) :: lsp 739 INTEGER(iwp) :: lsp_usr !< 740 INTEGER(iwp) :: mid !< masked output running index 741 INTEGER(iwp) :: n !< loop counter for chemistry species 737 742 738 743 REAL(wp) :: dt_3d_old !< temporary storage of timestep to be used for … … 1870 1875 CALL doq_calculate 1871 1876 1872 CALL data_output_mask( 0 )1877 CALL data_output_mask( 0, mid ) 1873 1878 time_domask(mid) = MOD( time_domask(mid), MAX( dt_domask(mid), dt_3d ) ) 1874 1879 ENDIF … … 1890 1895 CALL data_output_3d( 1 ) 1891 1896 DO mid = 1, masks 1892 CALL data_output_mask( 1 )1897 CALL data_output_mask( 1, mid ) 1893 1898 ENDDO 1894 1899 time_do_av = MOD( time_do_av, MAX( dt_data_output_av, dt_3d ) ) -
palm/trunk/SOURCE/user_data_output_mask.f90
r3768 r4069 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Masked output running index mid has been introduced as a local variable to 28 ! avoid runtime error (Loop variable has been modified) in time_integration 29 ! 30 ! 3768 2019-02-27 14:35:58Z raasch 27 31 ! variables commented + statement added to avoid compiler warnings about unused variables 28 32 ! … … 59 63 !> temporary array with indices (i,j,k) for masked data output. 60 64 !------------------------------------------------------------------------------! 61 SUBROUTINE user_data_output_mask( av, variable, found, local_pf )65 SUBROUTINE user_data_output_mask( av, variable, found, local_pf, mid ) 62 66 63 67 … … 79 83 80 84 INTEGER(iwp) :: av !< 85 INTEGER(iwp) :: mid !< masked output running index 81 86 ! INTEGER(iwp) :: i !< 82 87 ! INTEGER(iwp) :: j !<
Note: See TracChangeset
for help on using the changeset viewer.