Changeset 3045
- Timestamp:
- May 28, 2018 7:55:41 AM (6 years ago)
- Location:
- palm/trunk
- Files:
-
- 42 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/INSTALL/example_cbl_p3d
r2490 r3045 3 3 ! Documentation: https://palm.muk.uni-hannover.de/trac/wiki/doc/app/inipar 4 4 !------------------------------------------------------------------------------- 5 &ini par5 &initialization_parameters 6 6 ! 7 7 !-- grid parameters … … 49 49 ! Documentation: https://palm.muk.uni-hannover.de/trac/wiki/doc/app/d3par 50 50 !------------------------------------------------------------------------------- 51 & d3par51 &runtime_parameters 52 52 ! 53 53 !-- run steering -
palm/trunk/INSTALL/test_oceanml_p3d
r2575 r3045 1 &inipar nx = 63, ny = 63, nz=64, 1 &initialization_parameters 2 nx = 63, ny = 63, nz=64, 2 3 dx = 1.25, dy = 1.25, dz = 1.25, 3 4 … … 32 33 bc_sa_t = 'neumann', / 33 34 34 &d3par end_time = 300.0, 35 &runtime_parameters 36 end_time = 300.0, 35 37 create_disturbances = .T., 36 38 dt_disturb = 60.0, -
palm/trunk/SOURCE/check_for_restart.f90
r2718 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error messages revised 28 ! 29 ! 2718 2018-01-02 08:49:38Z maronga 27 30 ! Corrected "Former revisions" section 28 31 ! … … 141 144 IF ( terminate_run .AND. myid == 0 ) THEN 142 145 WRITE( message_string, * ) 'run will be terminated because it is ', & 143 'running out of job cpu limit & ',&146 'running out of job cpu limit, ', & 144 147 'remaining time: ', remaining_time, ' s', & 145 148 'termination time needed:', termination_time_needed, ' s' … … 184 187 'forced a job finalization using a flag', & 185 188 'file:', & 186 ' &DO_STOP_NOW: ', do_stop_now, &187 ' &DO_RESTART_NOW: ', do_restart_now189 ' DO_STOP_NOW: ', do_stop_now, & 190 ' DO_RESTART_NOW: ', do_restart_now 188 191 CALL message( 'check_for_restart', 'PA0398', 0, 0, 0, 6, 0 ) 189 192 … … 247 250 248 251 WRITE( message_string, * ) 'run will be terminated due to user ', & 249 'settings of ',&250 ' &restart_time / dt_restart',&251 ' &new restart time is: ', time_restart, ' s'252 'settings of ', & 253 'restart_time / dt_restart, ', & 254 'new restart time is: ', time_restart, ' s' 252 255 CALL message( 'check_for_restart', 'PA0164', 0, 0, 0, 6, 0 ) 253 256 -
palm/trunk/SOURCE/check_open.f90
r2964 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Output case 108 disabled 28 ! 29 ! 2964 2018-04-12 16:04:03Z Giersch 27 30 ! Error message moved to radiation_model_mod 28 31 ! … … 971 974 ENDIF 972 975 973 974 CASE ( 108 ) 975 976 IF ( myid_char == '' ) THEN 977 filename = 'DATA_PRT_NETCDF' // TRIM( coupling_char ) 978 ELSE 979 filename = 'DATA_PRT_NETCDF' // TRIM( coupling_char ) // '/' // & 980 myid_char 981 ENDIF 976 ! 977 !-- Currently disabled 978 ! CASE ( 108 ) 979 980 ! IF ( myid_char == '' ) THEN 981 ! filename = 'DATA_PRT_NETCDF' // TRIM( coupling_char ) 982 ! ELSE 983 ! filename = 'DATA_PRT_NETCDF' // TRIM( coupling_char ) // '/' // & 984 ! myid_char 985 ! ENDIF 982 986 ! 983 987 !-- Inquire, if there is a netCDF file from a previuos run. This should 984 988 !-- be opened for extension, if its variables match the actual run. 985 INQUIRE( FILE=filename, EXIST=netcdf_extend )986 987 IF ( netcdf_extend ) THEN989 ! INQUIRE( FILE=filename, EXIST=netcdf_extend ) 990 991 ! IF ( netcdf_extend ) THEN 988 992 ! 989 993 !-- Open an existing netCDF file for output 990 CALL netcdf_open_write_file( filename, id_set_prt, .FALSE., 41 )994 ! CALL netcdf_open_write_file( filename, id_set_prt, .FALSE., 41 ) 991 995 ! 992 996 !-- Read header information and set all ids. If there is a mismatch 993 997 !-- between the previuos and the actual run, netcdf_extend is returned 994 998 !-- as .FALSE. 995 CALL netcdf_define_header( 'pt', netcdf_extend, 0 )999 ! CALL netcdf_define_header( 'pt', netcdf_extend, 0 ) 996 1000 997 1001 ! 998 1002 !-- Remove the local file, if it can not be extended 999 IF ( .NOT. netcdf_extend ) THEN1000 nc_stat = NF90_CLOSE( id_set_prt )1001 CALL netcdf_handle_error( 'check_open', 42 )1002 CALL local_system( 'rm ' // TRIM( filename ) )1003 ENDIF1004 1005 ENDIF1006 1007 IF ( .NOT. netcdf_extend ) THEN1003 ! IF ( .NOT. netcdf_extend ) THEN 1004 ! nc_stat = NF90_CLOSE( id_set_prt ) 1005 ! CALL netcdf_handle_error( 'check_open', 42 ) 1006 ! CALL local_system( 'rm ' // TRIM( filename ) ) 1007 ! ENDIF 1008 1009 ! ENDIF 1010 1011 ! IF ( .NOT. netcdf_extend ) THEN 1008 1012 1009 1013 ! 1010 1014 !-- For runs on multiple processors create the subdirectory 1011 IF ( myid_char /= '' ) THEN1012 IF ( myid == 0 .AND. .NOT. openfile(file_id)%opened_before ) &1013 THEN ! needs modification in case of non-extendable sets1014 CALL local_system( 'mkdir DATA_PRT_NETCDF' // &1015 TRIM( coupling_char ) // '/' )1016 ENDIF1015 ! IF ( myid_char /= '' ) THEN 1016 ! IF ( myid == 0 .AND. .NOT. openfile(file_id)%opened_before ) & 1017 ! THEN ! needs modification in case of non-extendable sets 1018 ! CALL local_system( 'mkdir DATA_PRT_NETCDF' // & 1019 ! TRIM( coupling_char ) // '/' ) 1020 ! ENDIF 1017 1021 #if defined( __parallel ) 1018 1022 ! 1019 1023 !-- Set a barrier in order to allow that all other processors in the 1020 1024 !-- directory created by PE0 can open their file 1021 CALL MPI_BARRIER( comm2d, ierr )1025 ! CALL MPI_BARRIER( comm2d, ierr ) 1022 1026 #endif 1023 ENDIF1027 ! ENDIF 1024 1028 1025 1029 ! 1026 1030 !-- Create a new netCDF output file with requested netCDF format 1027 CALL netcdf_create_file( filename, id_set_prt, .FALSE., 43 )1031 ! CALL netcdf_create_file( filename, id_set_prt, .FALSE., 43 ) 1028 1032 1029 1033 ! 1030 1034 !-- Define the header 1031 CALL netcdf_define_header( 'pt', netcdf_extend, 0 )1032 1033 ENDIF1035 ! CALL netcdf_define_header( 'pt', netcdf_extend, 0 ) 1036 1037 ! ENDIF 1034 1038 1035 1039 CASE ( 109 ) -
palm/trunk/SOURCE/check_parameters.f90
r3035 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error messages revised 28 ! 29 ! 3035 2018-05-24 09:35:20Z schwenkel 27 30 ! Add option to initialize warm air bubble close to surface 28 ! 31 ! 29 32 ! 3034 2018-05-24 08:41:20Z raasch 30 33 ! bugfix: check that initializing_actions has been set 31 ! 34 ! 32 35 ! 2980 2018-04-17 15:19:27Z suehring 33 36 ! Further improvement for spinup checks. … … 751 754 ! 752 755 !-- Check the coupling mode 753 !> @todo Check if any queries for other coupling modes (e.g. precursor_ocean) are missing 754 IF ( coupling_mode /= 'uncoupled' .AND. & 755 coupling_mode /= 'vnested_crse' .AND. & 756 coupling_mode /= 'vnested_fine' .AND. & 757 coupling_mode /= 'atmosphere_to_ocean' .AND. & 756 IF ( coupling_mode /= 'uncoupled' .AND. & 757 coupling_mode /= 'precursor_atmos' .AND. & 758 coupling_mode /= 'precursor_ocean' .AND. & 759 coupling_mode /= 'vnested_crse' .AND. & 760 coupling_mode /= 'vnested_fine' .AND. & 761 coupling_mode /= 'atmosphere_to_ocean' .AND. & 758 762 coupling_mode /= 'ocean_to_atmosphere' ) THEN 759 763 message_string = 'illegal coupling mode: ' // TRIM( coupling_mode ) … … 764 768 !-- Check if humidity is set to TRUE in case of the atmospheric run (for coupled runs) 765 769 IF ( coupling_mode == 'atmosphere_to_ocean' .AND. .NOT. humidity) THEN 766 message_string = ' Humidity has to be set to .T. in the _p3d file for ' //&767 ' coupled runs between ocean and atmosphere.'770 message_string = ' Humidity has to be set to .T. in the _p3d file ' // & 771 'for coupled runs between ocean and atmosphere.' 768 772 CALL message( 'check_parameters', 'PA0476', 1, 2, 0, 6, 0 ) 769 773 ENDIF … … 771 775 ! 772 776 !-- Check dt_coupling, restart_time, dt_restart, end_time, dx, dy, nx and ny 773 IF ( coupling_mode /= 'uncoupled' .AND. & 774 coupling_mode(1:8) /= 'vnested_' ) THEN 777 IF ( coupling_mode /= 'uncoupled' .AND. & 778 coupling_mode(1:8) /= 'vnested_' .AND. & 779 coupling_mode /= 'precursor_atmos' .AND. & 780 coupling_mode /= 'precursor_ocean' ) THEN 775 781 776 782 IF ( dt_coupling == 9999999.9_wp ) THEN … … 914 920 WRITE( message_string, * ) 'coupling mode "', & 915 921 TRIM( coupling_mode ), & 916 '": nx+1 in ocean is not divisible by nx+1 in', &922 '": nx+1 in ocean is not divisible by nx+1 in', & 917 923 ' atmosphere without remainder' 918 924 CALL message( 'check_parameters', 'PA0339', 1, 2, 0, 6, 0 ) … … 1054 1060 ! 1055 1061 !-- Check approximation 1056 IF ( TRIM( approximation ) /= 'boussinesq' .AND. &1062 IF ( TRIM( approximation ) /= 'boussinesq' .AND. & 1057 1063 TRIM( approximation ) /= 'anelastic' ) THEN 1058 message_string = 'unknown approximation: approximation = "' // &1064 message_string = 'unknown approximation: approximation = "' // & 1059 1065 TRIM( approximation ) // '"' 1060 1066 CALL message( 'check_parameters', 'PA0446', 1, 2, 0, 6, 0 ) … … 1063 1069 ! 1064 1070 !-- Check approximation requirements 1065 IF ( TRIM( approximation ) == 'anelastic' .AND. &1071 IF ( TRIM( approximation ) == 'anelastic' .AND. & 1066 1072 TRIM( momentum_advec ) /= 'ws-scheme' ) THEN 1067 message_string = 'Anelastic approximation requires : ' //&1073 message_string = 'Anelastic approximation requires ' // & 1068 1074 'momentum_advec = "ws-scheme"' 1069 1075 CALL message( 'check_parameters', 'PA0447', 1, 2, 0, 6, 0 ) 1070 1076 ENDIF 1071 IF ( TRIM( approximation ) == 'anelastic' .AND. &1077 IF ( TRIM( approximation ) == 'anelastic' .AND. & 1072 1078 TRIM( psolver ) == 'multigrid' ) THEN 1073 message_string = 'Anelastic approximation currently only supports : ' //&1074 'psolver = "poisfft", ' // &1075 'psolver = "sor" and ' // &1079 message_string = 'Anelastic approximation currently only supports ' // & 1080 'psolver = "poisfft", ' // & 1081 'psolver = "sor" and ' // & 1076 1082 'psolver = "multigrid_noopt"' 1077 1083 CALL message( 'check_parameters', 'PA0448', 1, 2, 0, 6, 0 ) 1078 1084 ENDIF 1079 IF ( TRIM( approximation ) == 'anelastic' .AND. &1085 IF ( TRIM( approximation ) == 'anelastic' .AND. & 1080 1086 conserve_volume_flow ) THEN 1081 message_string = 'Anelastic approximation is not allowed with :' // &1087 message_string = 'Anelastic approximation is not allowed with ' // & 1082 1088 'conserve_volume_flow = .TRUE.' 1083 1089 CALL message( 'check_parameters', 'PA0449', 1, 2, 0, 6, 0 ) … … 1086 1092 ! 1087 1093 !-- Check flux input mode 1088 IF ( TRIM( flux_input_mode ) /= 'dynamic' .AND. &1089 TRIM( flux_input_mode ) /= 'kinematic' .AND. &1094 IF ( TRIM( flux_input_mode ) /= 'dynamic' .AND. & 1095 TRIM( flux_input_mode ) /= 'kinematic' .AND. & 1090 1096 TRIM( flux_input_mode ) /= 'approximation-specific' ) THEN 1091 1097 message_string = 'unknown flux input mode: flux_input_mode = "' // & … … 1104 1110 ! 1105 1111 !-- Check flux output mode 1106 IF ( TRIM( flux_output_mode ) /= 'dynamic' .AND. &1107 TRIM( flux_output_mode ) /= 'kinematic' .AND. &1112 IF ( TRIM( flux_output_mode ) /= 'dynamic' .AND. & 1113 TRIM( flux_output_mode ) /= 'kinematic' .AND. & 1108 1114 TRIM( flux_output_mode ) /= 'approximation-specific' ) THEN 1109 1115 message_string = 'unknown flux output mode: flux_output_mode = "' // & … … 1248 1254 ! 1249 1255 !-- Advection schemes: 1250 IF ( momentum_advec /= 'pw-scheme' .AND. momentum_advec /= 'ws-scheme' ) & 1256 IF ( momentum_advec /= 'pw-scheme' .AND. & 1257 momentum_advec /= 'ws-scheme' .AND. & 1258 momentum_advec /= 'up-scheme' ) & 1251 1259 THEN 1252 1260 message_string = 'unknown advection scheme: momentum_advec = "' // & … … 1259 1267 THEN 1260 1268 message_string = 'momentum_advec or scalar_advec = "' & 1261 // TRIM( momentum_advec ) // '" is not allowed with timestep_scheme = "' //&1262 TRIM( timestep_scheme ) // '"'1269 // TRIM( momentum_advec ) // '" is not allowed with ' // & 1270 'timestep_scheme = "' // TRIM( timestep_scheme ) // '"' 1263 1271 CALL message( 'check_parameters', 'PA0023', 1, 2, 0, 6, 0 ) 1264 1272 ENDIF 1265 1273 IF ( scalar_advec /= 'pw-scheme' .AND. scalar_advec /= 'ws-scheme' .AND. & 1266 scalar_advec /= 'bc-scheme' )&1274 scalar_advec /= 'bc-scheme' .AND. scalar_advec /= 'up-scheme' ) & 1267 1275 THEN 1268 1276 message_string = 'unknown advection scheme: scalar_advec = "' // & … … 1273 1281 THEN 1274 1282 message_string = 'advection_scheme scalar_advec = "' & 1275 // TRIM( scalar_advec ) // '" not implemented for & loop_optimization = "' //&1276 TRIM( loop_optimization ) // '"'1283 // TRIM( scalar_advec ) // '" not implemented for ' // & 1284 'loop_optimization = "' // TRIM( loop_optimization ) // '"' 1277 1285 CALL message( 'check_parameters', 'PA0026', 1, 2, 0, 6, 0 ) 1278 1286 ENDIF … … 1325 1333 !-- Check for proper settings for microphysics 1326 1334 IF ( cloud_physics .AND. cloud_droplets ) THEN 1327 message_string = 'cloud_physics = .TRUE. is not allowed with ' // &1335 message_string = 'cloud_physics = .TRUE. is not allowed with ' // & 1328 1336 'cloud_droplets = .TRUE.' 1329 1337 CALL message( 'check_parameters', 'PA0442', 1, 2, 0, 6, 0 ) … … 1355 1363 IF ( TRIM( initializing_actions ) == '' ) THEN 1356 1364 message_string = 'no value specified for initializing_actions' 1357 CALL message( 'check_parameters', 'PA0 017', 1, 2, 0, 6, 0 )1365 CALL message( 'check_parameters', 'PA0149', 1, 2, 0, 6, 0 ) 1358 1366 ENDIF 1359 1367 … … 1373 1381 1374 1382 CASE DEFAULT 1375 message_string = 'initializing_action s = "' //&1383 message_string = 'initializing_action = "' // & 1376 1384 TRIM( action ) // '" unknown or not allowed' 1377 1385 CALL message( 'check_parameters', 'PA0030', 1, 2, 0, 6, 0 ) … … 1472 1480 IF ( large_scale_forcing .OR. nudging ) CALL lsf_nudging_check_parameters 1473 1481 1474 1475 1476 IF ( .NOT. ( loop_optimization == 'cache' .OR. &1477 loop_optimization == 'vector' ) &1478 .AND. cloud_physics .AND. microphysics_seifert ) THEN1479 message_string = 'cloud_scheme = seifert_beheng requires ' // &1480 'loop_optimization = "cache" or "vector"'1481 CALL message( 'check_parameters', 'PA0362', 1, 2, 0, 6, 0 )1482 ENDIF1483 1484 1482 ! 1485 1483 !-- In case of no model continuation run, check initialising parameters and … … 1825 1823 !-- Check time step and cfl_factor 1826 1824 IF ( dt /= -1.0_wp ) THEN 1827 IF ( dt <= 0.0_wp .AND. dt /= -1.0_wp) THEN1825 IF ( dt <= 0.0_wp ) THEN 1828 1826 WRITE( message_string, * ) 'dt = ', dt , ' <= 0.0' 1829 1827 CALL message( 'check_parameters', 'PA0044', 1, 2, 0, 6, 0 ) … … 1844 1842 ELSE 1845 1843 WRITE( message_string, * ) 'cfl_factor = ', cfl_factor, & 1846 ' out of range &0.0 < cfl_factor <= 1.0 is required'1844 ' out of range 0.0 < cfl_factor <= 1.0 is required' 1847 1845 CALL message( 'check_parameters', 'PA0045', 1, 2, 0, 6, 0 ) 1848 1846 ENDIF … … 1887 1885 CALL message( 'check_parameters', 'PA0047', 1, 2, 0, 6, 0 ) 1888 1886 ELSE 1889 message_string = 'variable translation speed used for galilei-' // &1890 'transformation, which may cause & instabilities in stably ' //&1887 message_string = 'variable translation speed used for Galilei-' // & 1888 'transformation, which may cause instabilities in stably ' // & 1891 1889 'stratified regions' 1892 1890 CALL message( 'check_parameters', 'PA0048', 0, 1, 0, 6, 0 ) … … 2064 2062 surface_heatflux /= 0.0_wp ) THEN 2065 2063 message_string = 'boundary_condition: bc_pt_b = "' // TRIM( bc_pt_b ) //& 2066 ' &is not allowed with constant_heatflux = .TRUE.'2064 'is not allowed with constant_heatflux = .TRUE.' 2067 2065 CALL message( 'check_parameters', 'PA0065', 1, 2, 0, 6, 0 ) 2068 2066 ENDIF … … 2154 2152 IF ( passive_scalar ) THEN 2155 2153 2156 IF ( ANY( wall_scalarflux /= 0.0_wp ) .AND. &2154 IF ( ANY( wall_scalarflux /= 0.0_wp ) .AND. & 2157 2155 surface_scalarflux == 9999999.9_wp ) THEN 2158 message_string = 'wall_scalarflux additionally requires ' // &2156 message_string = 'wall_scalarflux additionally requires ' // & 2159 2157 'setting of surface_scalarflux' 2160 2158 CALL message( 'check_parameters', 'PA0445', 1, 2, 0, 6, 0 ) … … 2326 2324 IF ( averaging_interval > dt_data_output_av ) THEN 2327 2325 WRITE( message_string, * ) 'averaging_interval = ', & 2328 averaging_interval, ' must be <= dt_data_output = ', dt_data_output 2326 averaging_interval, ' must be <= dt_data_output_av = ', & 2327 dt_data_output_av 2329 2328 CALL message( 'check_parameters', 'PA0085', 1, 2, 0, 6, 0 ) 2330 2329 ENDIF … … 2549 2548 CASE ( 'sa', '#sa' ) 2550 2549 IF ( .NOT. ocean ) THEN 2551 message_string = 'data_output_pr = ' // &2550 message_string = 'data_output_pr = ' // & 2552 2551 TRIM( data_output_pr(i) ) // ' is not imp' // & 2553 2552 'lemented for ocean = .FALSE.' … … 2622 2621 CASE ( 'q', '#q' ) 2623 2622 IF ( .NOT. humidity ) THEN 2624 message_string = 'data_output_pr = ' // &2623 message_string = 'data_output_pr = ' // & 2625 2624 TRIM( data_output_pr(i) ) // ' is not imp' // & 2626 2625 'lemented for humidity = .FALSE.' … … 2807 2806 message_string = 'data_output_pr = ' // & 2808 2807 TRIM( data_output_pr(i) ) // ' is not imp' // & 2809 'lemented for cloud_physics = .FALSE. an &'// &2808 'lemented for cloud_physics = .FALSE. an' // & 2810 2809 'd humidity = .FALSE.' 2811 2810 CALL message( 'check_parameters', 'PA0095', 1, 2, 0, 6, 0 ) … … 2825 2824 message_string = 'data_output_pr = ' // & 2826 2825 TRIM( data_output_pr(i) ) // ' is not imp' // & 2827 'lemented for cloud_physics = .FALSE. an &'// &2826 'lemented for cloud_physics = .FALSE. an' // & 2828 2827 'd humidity = .FALSE.' 2829 2828 CALL message( 'check_parameters', 'PA0095', 1, 2, 0, 6, 0 ) … … 2842 2841 message_string = 'data_output_pr = ' // & 2843 2842 TRIM( data_output_pr(i) ) // ' is not imp' // & 2844 'lemented for cloud_physics = .FALSE. an &'// &2843 'lemented for cloud_physics = .FALSE. an' // & 2845 2844 'd humidity = .FALSE.' 2846 2845 CALL message( 'check_parameters', 'PA0095', 1, 2, 0, 6, 0 ) … … 2851 2850 message_string = 'data_output_pr = ' // & 2852 2851 TRIM( data_output_pr(i) ) // ' is not imp' // & 2853 'lemented for cloud_physics = .FALSE. or'// &2854 ' &cloud_droplets = .FALSE.'2852 'lemented for cloud_physics = .FALSE. and' // & 2853 'cloud_droplets = .FALSE.' 2855 2854 CALL message( 'check_parameters', 'PA0096', 1, 2, 0, 6, 0 ) 2856 2855 ELSE … … 3249 3248 ELSEIF ( .NOT. microphysics_morrison ) THEN 3250 3249 message_string = 'output of "' // TRIM( var ) // '" requi' // & 3251 'res = m icrophysics morrison '3250 'res = morrison ' 3252 3251 CALL message( 'check_parameters', 'PA0359', 1, 2, 0, 6, 0 ) 3253 3252 ENDIF … … 3269 3268 IF ( .NOT. particle_advection ) THEN 3270 3269 message_string = 'output of "' // TRIM( var ) // '" requir' // & 3271 'es a "particle_parameters"-NAMELIST in the parameter file (PARIN)' 3270 'es a "particle_parameters"-NAMELIST in the parameter ' // & 3271 'file (PARIN)' 3272 3272 CALL message( 'check_parameters', 'PA0104', 1, 2, 0, 6, 0 ) 3273 3273 ENDIF … … 3281 3281 CALL message( 'check_parameters', 'PA0108', 1, 2, 0, 6, 0 ) 3282 3282 ELSEIF ( microphysics_sat_adjust ) THEN 3283 message_string = 'output of "' // TRIM( var ) // '" is ' // &3283 message_string = 'output of "' // TRIM( var ) // '" is ' // & 3284 3284 'not available for cloud_scheme = saturation_adjust' 3285 3285 CALL message( 'check_parameters', 'PA0423', 1, 2, 0, 6, 0 ) … … 3378 3378 IF ( k == 0 .OR. data_output(i)(ilen-2:ilen) /= '_xy' ) THEN 3379 3379 message_string = 'illegal value for data_output: "' // & 3380 TRIM( var ) // '" & only 2d-horizontal ' //&3380 TRIM( var ) // '" only 2d-horizontal ' // & 3381 3381 'cross sections are allowed for this value' 3382 3382 CALL message( 'check_parameters', 'PA0111', 1, 2, 0, 6, 0 ) … … 3411 3411 ENDIF 3412 3412 3413 IF ( TRIM( var ) == 'ghf*' .AND. .NOT. land_surface ) THEN3414 message_string = 'output of "' // TRIM( var ) // '" requi' //&3415 'res land_surface = .TRUE.'3416 CALL message( 'check_parameters', 'PA0404', 1, 2, 0, 6, 0 )3417 ENDIF3413 IF ( TRIM( var ) == 'ghf*' .AND. .NOT. land_surface ) THEN 3414 message_string = 'output of "' // TRIM( var ) // '" requi' // & 3415 'res land_surface = .TRUE.' 3416 CALL message( 'check_parameters', 'PA0404', 1, 2, 0, 6, 0 ) 3417 ENDIF 3418 3418 3419 3419 IF ( ( TRIM( var ) == 'r_a*' .OR. TRIM( var ) == 'ghf*' ) & … … 3558 3558 WRITE( message_string, * ) 'output of averaged quantity "', & 3559 3559 TRIM( doav(1) ), '_av" requires to set a ', & 3560 'non-zero &averaging interval'3560 'non-zero averaging interval' 3561 3561 CALL message( 'check_parameters', 'PA0323', 1, 2, 0, 6, 0 ) 3562 3562 ENDIF … … 3579 3579 section(:,2) = section_xz 3580 3580 section(:,3) = section_yz 3581 3582 !3583 !-- Upper plot limit for 2D vertical sections3584 IF ( z_max_do2d == -1.0_wp ) z_max_do2d = zu(nzt)3585 IF ( z_max_do2d < zu(nzb+1) .OR. z_max_do2d > zu(nzt) ) THEN3586 WRITE( message_string, * ) 'z_max_do2d = ', z_max_do2d, &3587 ' must be >= ', zu(nzb+1), '(zu(nzb+1)) and <= ', zu(nzt), &3588 ' (zu(nzt))'3589 CALL message( 'check_parameters', 'PA0116', 1, 2, 0, 6, 0 )3590 ENDIF3591 3581 3592 3582 ! … … 3647 3637 '5 (parallel netCDF 4) and ' // & 3648 3638 '6 (parallel netCDF 4 Classic model) '// & 3649 ' &are currently not supported (not yet tested) ' // &3650 'for masked data. &Using respective non-parallel' // &3639 ' are currently not supported (not yet tested) ' // & 3640 'for masked data. Using respective non-parallel' // & 3651 3641 ' output for masked data.' 3652 3642 CALL message( 'check_parameters', 'PA0383', 0, 0, 0, 6, 0 ) … … 3663 3653 #else 3664 3654 message_string = 'netCDF: netCDF4 format requested but no ' // & 3665 'cpp-directive __netcdf4 given & switch ' //&3655 'cpp-directive __netcdf4 given switch ' // & 3666 3656 'back to 64-bit offset format' 3667 3657 CALL message( 'check_parameters', 'PA0171', 0, 1, 0, 6, 0 ) … … 3674 3664 #else 3675 3665 message_string = 'netCDF: netCDF4 parallel output requested but no ' // & 3676 'cpp-directive __netcdf4_parallel given & switch '// &3666 'cpp-directive __netcdf4_parallel given, switch ' // & 3677 3667 'back to netCDF4 non-parallel output' 3678 3668 CALL message( 'check_parameters', 'PA0099', 0, 1, 0, 6, 0 ) … … 3865 3855 IF ( disturbance_level_ind_t < disturbance_level_ind_b ) THEN 3866 3856 WRITE( message_string, * ) 'disturbance_level_ind_t = ', & 3867 disturbance_level_ind_t, ' must be >= disturbance_level_ind_b = ',&3868 disturbance_level_ind_b3857 disturbance_level_ind_t, ' must be >= ', & 3858 'disturbance_level_ind_b = ', disturbance_level_ind_b 3869 3859 CALL message( 'check_parameters', 'PA0130', 1, 2, 0, 6, 0 ) 3870 3860 ENDIF … … 3984 3974 IF ( turbulent_inflow ) THEN 3985 3975 IF ( recycling_width <= dx .OR. recycling_width >= nx * dx ) THEN 3986 WRITE( message_string, * ) 'illegal value for recycling_width: ',&3987 ' ',recycling_width3976 WRITE( message_string, * ) 'illegal value for recycling_width: ', & 3977 recycling_width 3988 3978 CALL message( 'check_parameters', 'PA0134', 1, 2, 0, 6, 0 ) 3989 3979 ENDIF … … 4087 4077 IF ( dp_level_b < zu(nzb) .OR. dp_level_b > zu(nzt) ) THEN 4088 4078 WRITE( message_string, * ) 'dp_level_b = ', dp_level_b, ' is out ', & 4089 ' of range '4079 ' of range [zu(nzb), zu(nzt)]' 4090 4080 CALL message( 'check_parameters', 'PA0151', 1, 2, 0, 6, 0 ) 4091 4081 ENDIF 4092 4082 IF ( .NOT. ANY( dpdxy /= 0.0_wp ) ) THEN 4093 4083 WRITE( message_string, * ) 'dp_external is .TRUE. but dpdxy is ze', & 4094 'ro, i.e. the external pressure gradient &will not be applied'4084 'ro, i.e. the external pressure gradient will not be applied' 4095 4085 CALL message( 'check_parameters', 'PA0152', 0, 1, 0, 6, 0 ) 4096 4086 ENDIF … … 4147 4137 IF ( particle_dvrpsize /= 'absw' ) THEN 4148 4138 message_string = 'illegal value for parameter particle_dvrpsize:' // & 4149 ' ' // TRIM( particle_ color)4139 ' ' // TRIM( particle_dvrpsize) 4150 4140 CALL message( 'check_parameters', 'PA0314', 1, 2, 0, 6, 0 ) 4151 4141 ELSE … … 4183 4173 !-- Check roughness length, which has to be smaller than dz/2 4184 4174 IF ( ( constant_flux_layer .OR. & 4185 INDEX( initializing_actions, 'set_1d-model_profiles' ) /= 0 ) &4175 INDEX( initializing_actions, 'set_1d-model_profiles' ) /= 0 ) & 4186 4176 .AND. roughness_length >= 0.5 * dz ) THEN 4187 4177 message_string = 'roughness_length must be smaller than dz/2' … … 4237 4227 IF ( dt_fixed ) THEN 4238 4228 WRITE( message_string, '(A,F9.4,A)' ) 'Output at every ' // & 4239 'timestep is wanted (' // dt_do_name // ' = 0.0). &'// &4240 ' Setting the output interval to the fixed timestep '//&4241 ' dt= ', dt, 's.'4229 'timestep is wanted (' // dt_do_name // ' = 0.0). '// & 4230 'The output interval is set to the fixed timestep dt '// & 4231 '= ', dt, 's.' 4242 4232 CALL message( 'check_parameters', 'PA0060', 0, 0, 0, 6, 0 ) 4243 4233 dt_do = dt -
palm/trunk/SOURCE/chemistry_model_mod.f90
r3014 r3045 27 27 ! ----------------- 28 28 ! $Id$ 29 ! error messages revised 30 ! 31 ! 3014 2018-05-09 08:42:38Z maronga 29 32 ! Bugfix: nzb_do and nzt_do were not used for 3d data output 30 33 ! … … 1134 1137 TRIM( data_output_pr(var_count) ) // ' is not imp' // & 1135 1138 'lemented for air_chemistry = .FALSE.' 1136 ! CALL message( 'check_parameters', 'PA0 185', 1, 2, 0, 6, 0 )1139 ! CALL message( 'check_parameters', 'PA0XXX', 1, 2, 0, 6, 0 ) 1137 1140 ELSE 1138 1141 DO lsp = 1, nspec -
palm/trunk/SOURCE/close_file.f90
r2718 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! z_max_do2d removed and output case 108 disabled 28 ! 29 ! 2718 2018-01-02 08:49:38Z maronga 27 30 ! Corrected "Former revisions" section 28 31 ! … … 88 91 89 92 USE control_parameters, & 90 ONLY: max_masks, mid, nz_do3d, openfile, run_description_header, & 91 z_max_do2d 93 ONLY: max_masks, mid, nz_do3d, openfile, run_description_header 92 94 93 95 USE grid_variables, & … … 205 207 ENDIF 206 208 207 CASE ( 108 ) 208 209 nc_stat = NF90_CLOSE( id_set_prt ) 210 CALL netcdf_handle_error( 'close_file', 51 ) 209 ! 210 !-- Currently disabled 211 ! CASE ( 108 ) 212 213 ! nc_stat = NF90_CLOSE( id_set_prt ) 214 ! CALL netcdf_handle_error( 'close_file', 51 ) 211 215 212 216 CASE ( 109 ) -
palm/trunk/SOURCE/cpulog_mod.f90
r3028 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error messages revised 28 ! 29 ! 3028 2018-05-23 10:27:23Z knoop 27 30 ! renamed d3par to runtime_parameters 28 31 ! … … 222 225 log_event%place = place 223 226 ELSEIF ( log_event%place /= place ) THEN 224 WRITE( message_string, * ) 'wrong argument & expected: ',&225 TRIM(log_event%place), ' 227 WRITE( message_string, * ) 'wrong argument expected: ', & 228 TRIM(log_event%place), ' given: ', TRIM( place ) 226 229 CALL message( 'cpu_log', 'PA0174', 1, 2, 0, 6, 0 ) 227 230 ENDIF … … 259 262 IF ( ( mtime - log_event%mtime ) < 0.0 .AND. first ) THEN 260 263 WRITE( message_string, * ) 'negative time interval occured', & 261 ' &PE',myid,' L=PAUSE "',TRIM(log_event%place),&264 ' PE',myid,' L=PAUSE "',TRIM(log_event%place), & 262 265 '" new=', mtime,' last=',log_event%mtime 263 266 CALL message( 'cpu_log', 'PA0176', 0, 1, -1, 6, 0 ) … … 270 273 first ) THEN 271 274 WRITE( message_string, * ) 'negative time interval occured', & 272 ' &PE',myid,' L=STOP "',TRIM(log_event%place),'" new=',&275 ' PE',myid,' L=STOP "',TRIM(log_event%place),'" new=', & 273 276 mtime,' last=',log_event%mtime,' isum=',log_event%isum 274 277 CALL message( 'cpu_log', 'PA0177', 0, 1, -1, 6, 0 ) … … 280 283 IF ( log_event%sum < 0.0 .AND. first ) THEN 281 284 WRITE( message_string, * ) 'negative time interval occured', & 282 ' &PE',myid,' L=STOP "',TRIM(log_event%place),'" sum=',&285 ' PE',myid,' L=STOP "',TRIM(log_event%place),'" sum=', & 283 286 log_event%sum,' mtime=',log_event%mtime 284 287 CALL message( 'cpu_log', 'PA0178', 0, 1, -1, 6, 0 ) -
palm/trunk/SOURCE/data_output_2d.f90
r3014 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error messages revised 28 ! 29 ! 3014 2018-05-09 08:42:38Z maronga 27 30 ! Added nzb_do and nzt_do for some modules for 2d output 28 31 ! … … 462 465 ntdim_2d_xy(av) ) THEN 463 466 WRITE ( message_string, * ) 'Output of xy cross-sections is not ', & 464 'given at t=', simulated_time, ' &because the', &467 'given at t=', simulated_time, ' because the', & 465 468 ' maximum number of output time levels is exceeded.' 466 469 CALL message( 'data_output_2d', 'PA0384', 0, 1, 0, 6, 0 ) … … 471 474 ntdim_2d_xz(av) ) THEN 472 475 WRITE ( message_string, * ) 'Output of xz cross-sections is not ', & 473 'given at t=', simulated_time, ' &because the', &476 'given at t=', simulated_time, ' because the', & 474 477 ' maximum number of output time levels is exceeded.' 475 478 CALL message( 'data_output_2d', 'PA0385', 0, 1, 0, 6, 0 ) … … 480 483 ntdim_2d_yz(av) ) THEN 481 484 WRITE ( message_string, * ) 'Output of yz cross-sections is not ', & 482 'given at t=', simulated_time, ' &because the', &485 'given at t=', simulated_time, ' because the', & 483 486 ' maximum number of output time levels is exceeded.' 484 487 CALL message( 'data_output_2d', 'PA0386', 0, 1, 0, 6, 0 ) -
palm/trunk/SOURCE/data_output_3d.f90
r3014 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error message revised 28 ! 29 ! 3014 2018-05-09 08:42:38Z maronga 27 30 ! Added nzb_do and nzt_do for some modules for 3d output 28 31 ! … … 309 312 IF ( do3d_time_count(av) + 1 > ntdim_3d(av) ) THEN 310 313 WRITE ( message_string, * ) 'Output of 3d data is not given at t=', & 311 simulated_time, ' &because the maximum ', &314 simulated_time, ' because the maximum ', & 312 315 'number of output time levels is ', & 313 316 'exceeded.' -
palm/trunk/SOURCE/data_output_dvrp.f90
r2718 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Code adjusted according to PALM coding standards 28 ! 29 ! 2718 2018-01-02 08:49:38Z maronga 27 30 ! Corrected "Former revisions" section 28 31 ! … … 255 258 !-- Select the plot mode (in case of isosurface or slicer only if user has 256 259 !-- defined a variable which shall be plotted; otherwise do nothing) 257 IF ( ( mode_dvrp(m)(1:10) == 'isosurface' .OR. &260 IF ( ( mode_dvrp(m)(1:10) == 'isosurface' .OR. & 258 261 mode_dvrp(m)(1:6) == 'slicer' ) & 259 262 .AND. output_variable /= ' ' ) THEN … … 362 365 ELSE 363 366 message_string = 'if humidity = ' // & 364 '.FALSE. output of ' // TRIM( output_variable ) // 367 '.FALSE. output of ' // TRIM( output_variable ) // & 365 368 'is not provided' 366 369 CALL message( 'data_output_dvrp', 'PA0183',& … … 378 381 ENDDO 379 382 ELSE 380 message_string = 'if cloud_physics = .FALSE. and ' 383 message_string = 'if cloud_physics = .FALSE. and ' // & 381 384 'cloud_droplets = .FALSE. ' 382 385 'output of ' // TRIM( output_variable) // & … … 561 564 CALL cpu_log( log_point_s(31), 'dvrp_pathlines', 'start' ) 562 565 563 CALL DVRP_DATA( m-1, local_pfi, 4, nx_dvrp, ny_dvrp, nz_dvrp, &566 CALL DVRP_DATA( m-1, local_pfi, 4, nx_dvrp, ny_dvrp, nz_dvrp, & 564 567 cyclic_dvrp, cyclic_dvrp, cyclic_dvrp ) 565 568 CALL DVRP_VISUALIZE( m-1, 20, dvrp_filecount ) -
palm/trunk/SOURCE/data_output_mask.f90
r3030 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error messages revised 28 ! 29 ! 3030 2018-05-23 14:37:00Z raasch 27 30 ! variable if renamed ivar 28 31 ! … … 528 531 529 532 IF ( .NOT. found ) THEN 530 WRITE ( message_string, * ) 'no output available for: ',&533 WRITE ( message_string, * ) 'no masked output available for: ',& 531 534 TRIM( domask(mid,av,ivar) ) 532 535 CALL message( 'data_output_mask', 'PA0327', 0, 0, 0, 6, 0 ) -
palm/trunk/SOURCE/fft_xy_mod.f90
r2718 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error messages revised 28 ! 29 ! 2718 2018-01-02 08:49:38Z maronga 27 30 ! Corrected "Former revisions" section 28 31 ! … … 723 726 ENDIF 724 727 725 #else 726 message_string = 'no system-specific fft-call available' 727 CALL message( 'fft_x', 'PA0188', 1, 2, 0, 6, 0 ) 728 #endif 729 730 ELSE 731 732 message_string = 'fft method "' // TRIM( fft_method) // & 733 '" not available' 734 CALL message( 'fft_x', 'PA0189', 1, 2, 0, 6, 0 ) 728 #endif 735 729 736 730 ENDIF … … 945 939 946 940 ENDIF 947 #else 948 message_string = 'no system-specific fft-call available' 949 CALL message( 'fft_x_1d', 'PA0188', 1, 2, 0, 6, 0 ) 950 #endif 951 ELSE 952 message_string = 'fft method "' // TRIM( fft_method) // & 953 '" not available' 954 CALL message( 'fft_x_1d', 'PA0189', 1, 2, 0, 6, 0 ) 941 #endif 955 942 956 943 ENDIF … … 1288 1275 1289 1276 ENDIF 1290 #else 1291 message_string = 'no system-specific fft-call available' 1292 CALL message( 'fft_y', 'PA0188', 1, 2, 0, 6, 0 ) 1293 #endif 1294 1295 ELSE 1296 1297 message_string = 'fft method "' // TRIM( fft_method) // & 1298 '" not available' 1299 CALL message( 'fft_y', 'PA0189', 1, 2, 0, 6, 0 ) 1277 #endif 1300 1278 1301 1279 ENDIF … … 1512 1490 1513 1491 ENDIF 1514 #else 1515 message_string = 'no system-specific fft-call available' 1516 CALL message( 'fft_y_1d', 'PA0188', 1, 2, 0, 6, 0 ) 1517 1518 #endif 1519 1520 ELSE 1521 1522 message_string = 'fft method "' // TRIM( fft_method) // & 1523 '" not available' 1524 CALL message( 'fft_y_1d', 'PA0189', 1, 2, 0, 6, 0 ) 1492 #endif 1525 1493 1526 1494 ENDIF … … 1653 1621 1654 1622 DEALLOCATE( work ) 1655 #else 1656 message_string = 'no system-specific fft-call available' 1657 CALL message( 'fft_x_m', 'PA0188', 1, 2, 0, 6, 0 ) 1658 #endif 1659 1660 ELSE 1661 1662 message_string = 'fft method "' // TRIM( fft_method) // & 1663 '" not available' 1664 CALL message( 'fft_x_m', 'PA0189', 1, 2, 0, 6, 0 ) 1623 #endif 1665 1624 1666 1625 ENDIF … … 1795 1754 1796 1755 DEALLOCATE( work ) 1797 #else 1798 message_string = 'no system-specific fft-call available' 1799 CALL message( 'fft_y_m', 'PA0188', 1, 2, 0, 6, 0 ) 1800 #endif 1801 1802 ELSE 1803 1804 message_string = 'fft method "' // TRIM( fft_method) // & 1805 '" not available' 1806 CALL message( 'fft_y_m', 'PA0189', 1, 2, 0, 6, 0 ) 1756 #endif 1807 1757 1808 1758 ENDIF -
palm/trunk/SOURCE/header.f90
r2967 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error messages revised 28 ! 29 ! 2967 2018-04-13 11:22:08Z raasch 27 30 ! bugfix: missing parallel cpp-directives added 28 31 ! … … 550 553 ELSEIF ( INDEX( initializing_actions, 'by_user' ) /=0 ) THEN 551 554 run_classification = 'run initialized by user' 555 ELSEIF ( INDEX( initializing_actions, 'initialize_vortex' ) /=0 ) THEN 556 run_classification = 'run additionally initialized by a Rankine-vortex' 557 ELSEIF ( INDEX( initializing_actions, 'initialize_ptanom' ) /=0 ) THEN 558 run_classification = 'run additionally initialized by temperature anomaly' 552 559 ELSE 553 560 message_string = ' unknown action(s): ' // TRIM( initializing_actions ) -
palm/trunk/SOURCE/init_3d_model.f90
r3042 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error messages revised 28 ! 29 ! 3042 2018-05-25 10:44:37Z schwenkel 27 30 ! Changed the name specific humidity to mixing ratio 28 31 ! … … 2611 2614 WRITE( message_string, * ) 'number of time series quantities exceeds', & 2612 2615 ' its maximum of dots_max = ', dots_max, & 2613 ' &Please increase dots_max in modules.f90.'2616 ' Please increase dots_max in modules.f90.' 2614 2617 CALL message( 'init_3d_model', 'PA0194', 1, 2, 0, 6, 0 ) 2615 2618 ENDIF -
palm/trunk/SOURCE/init_grid.f90
r2968 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error messages revised 28 ! 29 ! 2968 2018-04-13 11:52:24Z suehring 27 30 ! Bugfix in initialization in case of elevated model surface. Introduce 28 31 ! index for minimum topography-top. … … 651 654 IF ( nzb_local_min < 0 .OR. nzb_local_max > nz + 1 ) THEN 652 655 WRITE( message_string, * ) 'nzb_local values are outside the', & 653 ' model domain',&654 ' &MINVAL( nzb_local ) = ', nzb_local_min, &655 ' &MAXVAL( nzb_local ) = ', nzb_local_max656 ' model domain', & 657 ' MINVAL( nzb_local ) = ', nzb_local_min, & 658 ' MAXVAL( nzb_local ) = ', nzb_local_max 656 659 CALL message( 'init_grid', 'PA0210', 1, 2, 0, 6, 0 ) 657 660 ENDIF … … 1497 1500 ( bys < 1 ) .OR. ( byn > ny-1 ) .OR. ( byn < bys+3 ) ) THEN 1498 1501 WRITE( message_string, * ) 'inconsistent building parameters:', & 1499 ' & bxl=', bxl, 'bxr=', bxr, 'bys=', bys,&1502 ' bxl=', bxl, 'bxr=', bxr, 'bys=', bys, & 1500 1503 'byn=', byn, 'nx=', nx, 'ny=', ny 1501 1504 CALL message( 'init_grid', 'PA0203', 1, 2, 0, 6, 0 ) … … 1589 1592 ( ch < 3 ) ) THEN 1590 1593 WRITE( message_string, * ) 'inconsistent canyon parameters:', & 1591 ' &cxl=', cxl, 'cxr=', cxr,&1592 ' cwx=', cwx,&1593 ' ch=', ch, 'nx=', nx, 'ny=', ny1594 ' cxl=', cxl, ' cxr=', cxr, & 1595 ' cwx=', cwx, & 1596 ' ch=', ch, ' nx=', nx, ' ny=', ny 1594 1597 CALL message( 'init_grid', 'PA0205', 1, 2, 0, 6, 0 ) 1595 1598 ENDIF … … 1598 1601 ( ch < 3 ) ) THEN 1599 1602 WRITE( message_string, * ) 'inconsistent canyon parameters:', & 1600 ' &cys=', cys, 'cyn=', cyn,&1601 ' cwy=', cwy,&1602 ' ch=', ch, 'nx=', nx, 'ny=', ny1603 ' cys=', cys, ' cyn=', cyn, & 1604 ' cwy=', cwy, & 1605 ' ch=', ch, ' nx=', nx, ' ny=', ny 1603 1606 CALL message( 'init_grid', 'PA0206', 1, 2, 0, 6, 0 ) 1604 1607 ENDIF … … 1607 1610 canyon_width_y /= 9999999.9_wp ) THEN 1608 1611 message_string = 'inconsistent canyon parameters:' // & 1609 ' &street canyon can only be oriented' // &1610 ' &either in x- or in y-direction'1612 ' street canyon can only be oriented' // & 1613 ' either in x- or in y-direction' 1611 1614 CALL message( 'init_grid', 'PA0207', 1, 2, 0, 6, 0 ) 1612 1615 ENDIF … … 1895 1898 TRIM( topography ) /= 'read_from_file') THEN 1896 1899 !-- The default value is not applicable here, because it is only valid 1897 !-- for the two standard cases 'single_building' and 'read_from_file' 1900 !-- for the four standard cases 'single_building', 1901 !-- 'single_street_canyon', 'tunnel' and 'read_from_file' 1898 1902 !-- defined in init_grid. 1899 1903 WRITE( message_string, * ) & 1900 1904 'The value for "topography_grid_convention" ', & 1901 'is not set. Its default value is & only valid for ',&1902 '"topography" = ''single_building'', ' ,&1903 '''single_street_canyon'' & or ''read_from_file''.',&1904 ' &Choose ''cell_edge'' or ''cell_center''.'1905 'is not set. Its default value is only valid for ', & 1906 '"topography" = ''single_building'', ''tunnel'' ', & 1907 '''single_street_canyon'' or ''read_from_file''.', & 1908 ' Choose ''cell_edge'' or ''cell_center''.' 1905 1909 CALL message( 'init_grid', 'PA0239', 1, 2, 0, 6, 0 ) 1906 1910 ELSE … … 1919 1923 WRITE( message_string, * ) & 1920 1924 'The value for "topography_grid_convention" is ', & 1921 'not recognized. &Choose ''cell_edge'' or ''cell_center''.'1925 'not recognized. Choose ''cell_edge'' or ''cell_center''.' 1922 1926 CALL message( 'init_grid', 'PA0240', 1, 2, 0, 6, 0 ) 1923 1927 ENDIF -
palm/trunk/SOURCE/init_masks.f90
r2718 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error messages revised 28 ! 29 ! 2718 2018-01-02 08:49:38Z maronga 27 30 ! Corrected "Former revisions" section 28 31 ! … … 192 195 193 196 ! 194 !-- Parallel mask output not yet tested 197 !-- Parallel mask output not yet supported. In check_parameters data format 198 !-- is restricted and is switched back to non-parallel output. Therefore the 199 !-- following error can not occur at the moment. 195 200 IF ( netcdf_data_format > 4 ) THEN 196 message_string = 'netCDF file formats '// &197 ' 3 (netCDF 4) and 4 (netCDF 4 Classic model)'//&198 ' &are currently not supported (not yet tested).'201 message_string = 'netCDF file formats '// & 202 '5 and 6 (with parallel I/O support)'// & 203 ' are currently not supported.' 199 204 CALL message( 'init_masks', 'PA0328', 1, 2, 0, 6, 0 ) 200 205 ENDIF … … 258 263 DO WHILE ( do_mask_user(mid,j) /= ' ' .AND. j <= 100 ) 259 264 IF ( i > 100 ) THEN 260 WRITE ( message_string, * ) 'number of output quantitities ', &261 'given by data_output_mask and data_output_mask_user ', &265 WRITE ( message_string, * ) 'number of output quantitities ', & 266 'given by data_output_mask and data_output_mask_user ', & 262 267 'exceeds the limit of 100' 263 268 CALL message( 'init_masks', 'PA0329', 1, 2, 0, 6, 0 ) … … 290 295 CASE ( 'e' ) 291 296 IF ( constant_diffusion ) THEN 292 WRITE ( message_string, * ) 'output of "', TRIM( var ), &297 WRITE ( message_string, * ) 'output of "', TRIM( var ), & 293 298 '" requires constant_diffusion = .FALSE.' 294 299 CALL message( 'init_masks', 'PA0103', 1, 2, 0, 6, 0 ) … … 298 303 CASE ( 'lpt' ) 299 304 IF ( .NOT. cloud_physics ) THEN 300 WRITE ( message_string, * ) 'output of "', TRIM( var ), &305 WRITE ( message_string, * ) 'output of "', TRIM( var ), & 301 306 '" requires cloud_physics = .TRUE.' 302 307 CALL message( 'init_masks', 'PA0108', 1, 2, 0, 6, 0 ) … … 306 311 CASE ( 'nc' ) 307 312 IF ( .NOT. cloud_physics ) THEN 308 WRITE ( message_string, * ) 'output of "', TRIM( var ), &313 WRITE ( message_string, * ) 'output of "', TRIM( var ), & 309 314 '" requires cloud_physics = .TRUE.' 310 315 CALL message( 'init_masks', 'PA0108', 1, 2, 0, 6, 0 ) 311 316 ELSEIF ( .NOT. microphysics_morrison ) THEN 312 message_string = 'output of "' // TRIM( var ) // '" requi' //&313 're s = morrison'317 message_string = 'output of "' // TRIM( var ) // '" ' // & 318 'requires = morrison' 314 319 CALL message( 'check_parameters', 'PA0359', 1, 2, 0, 6, 0 ) 315 320 ENDIF … … 318 323 CASE ( 'nr' ) 319 324 IF ( .NOT. cloud_physics ) THEN 320 WRITE ( message_string, * ) 'output of "', TRIM( var ), &325 WRITE ( message_string, * ) 'output of "', TRIM( var ), & 321 326 '" requires cloud_physics = .TRUE.' 322 327 CALL message( 'init_masks', 'PA0108', 1, 2, 0, 6, 0 ) 323 328 ELSEIF ( .NOT. microphysics_seifert ) THEN 324 message_string = 'output of "' // TRIM( var ) // '" requi' //&325 're s cloud_scheme = seifert_beheng'329 message_string = 'output of "' // TRIM( var ) // '"' // & 330 'requires cloud_scheme = seifert_beheng' 326 331 CALL message( 'check_parameters', 'PA0359', 1, 2, 0, 6, 0 ) 327 332 ENDIF … … 330 335 CASE ( 'pc', 'pr' ) 331 336 IF ( .NOT. particle_advection ) THEN 332 WRITE ( message_string, * ) 'output of "', TRIM( var ), &333 '" requires a "particles_par"-NAMELIST in the ', &337 WRITE ( message_string, * ) 'output of "', TRIM( var ), & 338 '" requires a "particles_par"-NAMELIST in the ', & 334 339 'parameter file (PARIN)' 335 340 CALL message( 'init_masks', 'PA0104', 1, 2, 0, 6, 0 ) … … 340 345 CASE ( 'q', 'vpt' ) 341 346 IF ( .NOT. humidity ) THEN 342 WRITE ( message_string, * ) 'output of "', TRIM( var ), &347 WRITE ( message_string, * ) 'output of "', TRIM( var ), & 343 348 '" requires humidity = .TRUE.' 344 349 CALL message( 'init_masks', 'PA0105', 1, 2, 0, 6, 0 ) … … 349 354 CASE ( 'qc' ) 350 355 IF ( .NOT. cloud_physics ) THEN 351 message_string = 'output of "' // TRIM( var ) // '" requi' //&352 're s cloud_physics = .TRUE.'356 message_string = 'output of "' // TRIM( var ) // '"' // & 357 'requires cloud_physics = .TRUE.' 353 358 CALL message( 'check_parameters', 'PA0108', 1, 2, 0, 6, 0 ) 354 359 ENDIF … … 357 362 CASE ( 'ql' ) 358 363 IF ( .NOT. ( cloud_physics .OR. cloud_droplets ) ) THEN 359 WRITE ( message_string, * ) 'output of "', TRIM( var ), &364 WRITE ( message_string, * ) 'output of "', TRIM( var ), & 360 365 '" requires cloud_physics = .TRUE. or cloud_droplets', & 361 366 ' = .TRUE.' 362 CALL message( 'init_masks', 'PA010 8', 1, 2, 0, 6, 0 )367 CALL message( 'init_masks', 'PA0106', 1, 2, 0, 6, 0 ) 363 368 ENDIF 364 369 unit = 'kg/kg' … … 366 371 CASE ( 'ql_c', 'ql_v', 'ql_vp' ) 367 372 IF ( .NOT. cloud_droplets ) THEN 368 WRITE ( message_string, * ) 'output of "', TRIM( var ), &373 WRITE ( message_string, * ) 'output of "', TRIM( var ), & 369 374 '" requires cloud_droplets = .TRUE.' 370 375 CALL message( 'init_masks', 'PA0107', 1, 2, 0, 6, 0 ) … … 376 381 CASE ( 'qv' ) 377 382 IF ( .NOT. cloud_physics ) THEN 378 WRITE ( message_string, * ) 'output of "', TRIM( var ), &383 WRITE ( message_string, * ) 'output of "', TRIM( var ), & 379 384 '" requires cloud_physics = .TRUE.' 380 385 CALL message( 'init_masks', 'PA0108', 1, 2, 0, 6, 0 ) … … 384 389 CASE ( 'qr' ) 385 390 IF ( .NOT. cloud_physics ) THEN 386 message_string = 'output of "' // TRIM( var ) // '" requi' //&387 're s cloud_physics = .TRUE.'391 message_string = 'output of "' // TRIM( var ) // '" ' // & 392 'requires cloud_physics = .TRUE.' 388 393 CALL message( 'check_parameters', 'PA0108', 1, 2, 0, 6, 0 ) 389 394 ELSEIF ( .NOT. microphysics_seifert ) THEN 390 message_string = 'output of "' // TRIM( var ) // '" requi' //&391 're s cloud_scheme = seifert_beheng'395 message_string = 'output of "' // TRIM( var ) // '" ' // & 396 'requires cloud_scheme = seifert_beheng' 392 397 CALL message( 'check_parameters', 'PA0359', 1, 2, 0, 6, 0 ) 393 398 ENDIF … … 396 401 CASE ( 'rho_ocean' ) 397 402 IF ( .NOT. ocean ) THEN 398 WRITE ( message_string, * ) 'output of "', TRIM( var ), &403 WRITE ( message_string, * ) 'output of "', TRIM( var ), & 399 404 '" requires ocean = .TRUE.' 400 405 CALL message( 'init_masks', 'PA0109', 1, 2, 0, 6, 0 ) … … 404 409 CASE ( 's' ) 405 410 IF ( .NOT. passive_scalar ) THEN 406 WRITE ( message_string, * ) 'output of "', TRIM( var ), &411 WRITE ( message_string, * ) 'output of "', TRIM( var ), & 407 412 '" requires passive_scalar = .TRUE.' 408 413 CALL message( 'init_masks', 'PA0110', 1, 2, 0, 6, 0 ) … … 412 417 CASE ( 'sa' ) 413 418 IF ( .NOT. ocean ) THEN 414 WRITE ( message_string, * ) 'output of "', TRIM( var ), &419 WRITE ( message_string, * ) 'output of "', TRIM( var ), & 415 420 '" requires ocean = .TRUE.' 416 421 CALL message( 'init_masks', 'PA0109', 1, 2, 0, 6, 0 ) … … 419 424 420 425 CASE ( 'u*', 't*', 'lwp*', 'pra*', 'prr*', 'z0*', 'z0h*' ) 421 WRITE ( message_string, * ) 'illegal value for data_', &422 'output: "', TRIM( var ), '" is only allowed', &426 WRITE ( message_string, * ) 'illegal value for data_', & 427 'output: "', TRIM( var ), '" is only allowed', & 423 428 'for horizontal cross section' 424 429 CALL message( 'init_masks', 'PA0111', 1, 2, 0, 6, 0 ) … … 437 442 IF ( unit == 'illegal' ) THEN 438 443 IF ( do_mask_user(mid,1) /= ' ' ) THEN 439 WRITE ( message_string, * ) 'illegal value for data_', &440 'output or data_output_user: "',&444 WRITE ( message_string, * ) 'illegal value for data_', & 445 'output_masks or data_output_masks_user: "', & 441 446 TRIM( do_mask(mid,i) ), '"' 442 CALL message( 'init_masks', 'PA0 114', 1, 2, 0, 6, 0 )447 CALL message( 'init_masks', 'PA0018', 1, 2, 0, 6, 0 ) 443 448 ELSE 444 WRITE ( message_string, * ) 'illegal value for data_', &445 ' output: "', TRIM( do_mask(mid,i) ), '"'449 WRITE ( message_string, * ) 'illegal value for data_', & 450 ' output_masks : "', TRIM( do_mask(mid,i) ), '"' 446 451 CALL message( 'init_masks', 'PA0330', 1, 2, 0, 6, 0 ) 447 452 ENDIF … … 643 648 ENDIF 644 649 IF ( m > (nxyz+1) ) THEN 645 WRITE ( message_string, '(I3,A,I3,A,I1,3A,I3)' ) &646 m,' in mask ',mid,' along dimension ',dim, &650 WRITE ( message_string, '(I3,A,I3,A,I1,3A,I3)' ) & 651 m,' in mask ',mid,' along dimension ',dim, & 647 652 ' exceeds (',nxyz_string,'+1) = ',nxyz+1 648 653 CALL message( 'init_masks', 'PA0331', 1, 2, 0, 6, 0 ) … … 681 686 > (nxyz+1) * dxyz / mask_scale(dim) ) THEN 682 687 WRITE ( message_string, '(2(A,I3,A,I1,A,F9.3),5A,I1,A,F9.3)' ) & 683 'mask_loop(',mid,',',dim,',1)=',mask_loop(mid,dim,1), &688 'mask_loop(',mid,',',dim,',1)=',mask_loop(mid,dim,1), & 684 689 ' and/or mask_loop(',mid,',',dim,',2)=', & 685 mask_loop(mid,dim,2),' &exceed (', &686 nxyz_string,'+1)*',dxyz_string,'/mask_scale(',dim,')=', &690 mask_loop(mid,dim,2),' exceed (', & 691 nxyz_string,'+1)*',dxyz_string,'/mask_scale(',dim,')=', & 687 692 (nxyz+1)*dxyz/mask_scale(dim) 688 693 CALL message( 'init_masks', 'PA0332', 1, 2, 0, 6, 0 ) 689 694 ENDIF 690 loop_begin = NINT( mask_loop(mid,dim,1) * mask_scale(dim) &695 loop_begin = NINT( mask_loop(mid,dim,1) * mask_scale(dim) & 691 696 * ddxyz - 0.5_wp ) 692 loop_end = NINT( mask_loop(mid,dim,2) * mask_scale(dim) &697 loop_end = NINT( mask_loop(mid,dim,2) * mask_scale(dim) & 693 698 * ddxyz - 0.5_wp ) 694 loop_stride = NINT( mask_loop(mid,dim,3) * mask_scale(dim) &699 loop_stride = NINT( mask_loop(mid,dim,3) * mask_scale(dim) & 695 700 * ddxyz ) 696 701 IF ( loop_begin == -1 ) loop_begin = 0 ! avoid negative values … … 702 707 IF ( MAXVAL( mask_loop(mid,dim,1:2) ) & 703 708 > zu(nz+1) / mask_scale(dim) ) THEN 704 WRITE ( message_string, '(2(A,I3,A,I1,A,F9.3),A,I1,A,F9.3)' ) &705 'mask_loop(',mid,',',dim,',1)=',mask_loop(mid,dim,1), &709 WRITE ( message_string, '(2(A,I3,A,I1,A,F9.3),A,I1,A,F9.3)' ) & 710 'mask_loop(',mid,',',dim,',1)=',mask_loop(mid,dim,1), & 706 711 ' and/or mask_loop(',mid,',',dim,',2)=', & 707 mask_loop(mid,dim,2),' &exceed zu(nz+1)/mask_scale(',dim,&712 mask_loop(mid,dim,2),' exceed zu(nz+1)/mask_scale(',dim, & 708 713 ')=',zu(nz+1)/mask_scale(dim) 709 714 CALL message( 'init_masks', 'PA0333', 1, 2, 0, 6, 0 ) … … 724 729 IF ( mask_loop(mid,dim,2) * mask_scale(dim) > dz_stretch_level ) & 725 730 THEN 726 WRITE ( message_string, '(A,I3,A,I1,A,F9.3,A,F8.2,3A)' ) &727 'mask_loop(',mid,',',dim,',2)=', mask_loop(mid,dim,2), &728 ' exceeds dz_stretch_level=',dz_stretch_level, &729 '. &Vertical mask locations will not ',&730 'match the desired heights &within the stretching ',&731 WRITE ( message_string, '(A,I3,A,I1,A,F9.3,A,F8.2,3A)' ) & 732 'mask_loop(',mid,',',dim,',2)=', mask_loop(mid,dim,2), & 733 ' exceeds dz_stretch_level=',dz_stretch_level, & 734 '. Vertical mask locations will not ', & 735 'match the desired heights within the stretching ', & 731 736 'region.' 732 737 CALL message( 'init_masks', 'PA0334', 0, 1, 0, 6, 0 ) -
palm/trunk/SOURCE/init_pegrid.f90
r2938 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error messages revised 28 ! 29 ! 2938 2018-03-27 15:52:42Z suehring 27 30 ! - No checks for domain decomposition in case of turbulence generator 28 31 ! (is done in stg module) … … 341 344 !-- must be equal to the number of PEs available to the job 342 345 IF ( ( npex * npey ) /= numprocs ) THEN 343 WRITE( message_string, * ) 'number of PEs of the prescribed ', &344 'topology (', npex*npey,') does not match & the number of ',&346 WRITE( message_string, * ) 'number of PEs of the prescribed ', & 347 'topology (', npex*npey,') does not match the number of ', & 345 348 'PEs available to the job (', numprocs, ')' 346 349 CALL message( 'init_pegrid', 'PA0221', 1, 2, 0, 6, 0 ) … … 353 356 !-- If the processor topology is prescribed by the user, the number of 354 357 !-- PEs must be given in both directions 355 message_string = 'if the processor topology is prescribed by th' // &356 'e user & both values of "npex" and "npey" must be given' //&358 message_string = 'if the processor topology is prescribed by th' // & 359 'e user both values of "npex" and "npey" must be given' // & 357 360 ' in the &NAMELIST-parameter file' 358 361 CALL message( 'init_pegrid', 'PA0222', 1, 2, 0, 6, 0 ) … … 450 453 ! 451 454 !-- Calculate array bounds along x-direction for every PE. 452 ALLOCATE( nxlf(0:pdims(1)-1), nxrf(0:pdims(1)-1), nynf(0:pdims(2)-1), &455 ALLOCATE( nxlf(0:pdims(1)-1), nxrf(0:pdims(1)-1), nynf(0:pdims(2)-1), & 453 456 nysf(0:pdims(2)-1) ) 454 457 455 458 IF ( MOD( nx+1 , pdims(1) ) /= 0 ) THEN 456 WRITE( message_string, * ) 'x-direction: gridpoint number (',nx+1,') ', &457 'is not an & integral divisor of the number ',&458 ' processors (', pdims(1),')'459 WRITE( message_string, * ) 'x-direction: gridpoint number (',nx+1,') ', & 460 'is not an integral divisor of the number ', & 461 'of processors (', pdims(1),')' 459 462 CALL message( 'init_pegrid', 'PA0225', 1, 2, 0, 6, 0 ) 460 463 ELSE 461 464 nnx = ( nx + 1 ) / pdims(1) 462 IF ( nnx*pdims(1) - ( nx + 1) > nnx ) THEN463 WRITE( message_string, * ) 'x-direction: nx does not match the', &464 'requirements given by the number of PEs &used', &465 '& please use nx = ', nx - ( pdims(1) - ( nnx*pdims(1) &466 - ( nx + 1 ) ) ), ' instead of nx =', nx467 CALL message( 'init_pegrid', 'PA0226', 1, 2, 0, 6, 0 )468 ENDIF469 465 ENDIF 470 466 … … 480 476 IF ( MOD( ny+1 , pdims(2) ) /= 0 ) THEN 481 477 WRITE( message_string, * ) 'y-direction: gridpoint number (',ny+1,') ', & 482 'is not an & integral divisor of the number of',&478 'is not an integral divisor of the number of', & 483 479 'processors (', pdims(2),')' 484 480 CALL message( 'init_pegrid', 'PA0227', 1, 2, 0, 6, 0 ) 485 481 ELSE 486 482 nny = ( ny + 1 ) / pdims(2) 487 IF ( nny*pdims(2) - ( ny + 1) > nny ) THEN488 WRITE( message_string, * ) 'y-direction: ny does not match the', &489 'requirements given by the number of PEs &used ', &490 '& please use ny = ', ny - ( pdims(2) - ( nnx*pdims(2) &491 - ( ny + 1 ) ) ), ' instead of ny =', ny492 CALL message( 'init_pegrid', 'PA0228', 1, 2, 0, 6, 0 )493 ENDIF494 483 ENDIF 495 484 … … 533 522 IF ( MOD( nz , pdims(1) ) /= 0 ) THEN 534 523 WRITE( message_string, * ) 'transposition z --> x:', & 535 ' &nz=',nz,' is not an integral divisior of pdims(1)=', &524 ' nz=',nz,' is not an integral divisior of pdims(1)=', & 536 525 pdims(1) 537 526 CALL message( 'init_pegrid', 'PA0230', 1, 2, 0, 6, 0 ) … … 555 544 IF ( MOD( nx+1 , pdims(2) ) /= 0 ) THEN 556 545 WRITE( message_string, * ) 'transposition x --> y:', & 557 ' &nx+1=',nx+1,' is not an integral divisor of ', &546 ' nx+1=',nx+1,' is not an integral divisor of ', & 558 547 'pdims(2)=',pdims(2) 559 548 CALL message( 'init_pegrid', 'PA0231', 1, 2, 0, 6, 0 ) … … 584 573 IF ( MOD( ny+1 , pdims(1) ) /= 0 ) THEN 585 574 WRITE( message_string, * ) 'transposition y --> z:', & 586 ' & ny+1=',ny+1,' is not an integral divisor of',&575 ' ny+1=',ny+1,' is not an integral divisor of', & 587 576 ' pdims(1)=',pdims(1) 588 577 CALL message( 'init_pegrid', 'PA0232', 1, 2, 0, 6, 0 ) … … 595 584 IF ( MOD( ny+1 , pdims(1) ) /= 0 ) THEN 596 585 WRITE( message_string, * ) 'transposition x --> y:', & 597 ' & ny+1=',ny+1,' is not an integral divisor of',&586 ' ny+1=',ny+1,' is not an integral divisor of', & 598 587 ' pdims(1)=',pdims(1) 599 588 CALL message( 'init_pegrid', 'PA0233', 1, 2, 0, 6, 0 ) … … 609 598 IF ( MOD( nz, pdims(2) ) /= 0 ) THEN 610 599 WRITE( message_string, * ) 'direct transposition z --> y (needed ', & 611 'for spectra): & nz=',nz,' is not an integral divisor of ',&600 'for spectra): nz=',nz,' is not an integral divisor of ', & 612 601 'pdims(2)=',pdims(2) 613 602 CALL message( 'init_pegrid', 'PA0234', 1, 2, 0, 6, 0 ) … … 974 963 ! 975 964 !-- Check pre-defined value and reset to default, if neccessary 976 IF ( mg_switch_to_pe0_level < mg_switch_to_pe0_level_l .OR. &965 IF ( mg_switch_to_pe0_level < mg_switch_to_pe0_level_l .OR. & 977 966 mg_switch_to_pe0_level >= maximum_grid_level_l ) THEN 978 message_string = 'mg_switch_to_pe0_level ' // &967 message_string = 'mg_switch_to_pe0_level ' // & 979 968 'out of range and reset to 0' 980 969 CALL message( 'init_pegrid', 'PA0235', 0, 1, 0, 6, 0 ) … … 1038 1027 subdomain_size = ( nxr - nxl + 2 * nbgp + 1 ) * & 1039 1028 ( nyn - nys + 2 * nbgp + 1 ) * ( nzt - nzb + 2 ) 1040 gathered_size = ( nxr_l - nxl_l + 3 ) * ( nyn_l - nys_l + 3 ) * &1029 gathered_size = ( nxr_l - nxl_l + 3 ) * ( nyn_l - nys_l + 3 ) * & 1041 1030 ( nzt_l - nzb + 2 ) 1042 1031 1043 1032 #else 1044 message_string = 'multigrid gather/scatter impossible ' // &1033 message_string = 'multigrid gather/scatter impossible ' // & 1045 1034 'in non parallel mode' 1046 1035 CALL message( 'init_pegrid', 'PA0237', 1, 2, 0, 6, 0 ) … … 1063 1052 1064 1053 ! 1065 !-- Temporary problem: Currently calculation of maxerror i in routine poismg crashes1054 !-- Temporary problem: Currently calculation of maxerror in routine poismg crashes 1066 1055 !-- if grid data are collected on PE0 already on the finest grid level. 1067 1056 !-- To be solved later. -
palm/trunk/SOURCE/land_surface_model_mod.f90
r3026 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error messages revised and added 28 ! 29 ! 3026 2018-05-22 10:30:53Z schwenkel 27 30 ! Changed the name specific humidity to mixing ratio, since we are computing 28 31 ! mixing ratios. … … 431 434 USE radiation_model_mod, & 432 435 ONLY: albedo, albedo_type, emissivity, force_radiation_call, & 433 radiation _scheme, unscheduled_radiation_calls436 radiation, radiation_scheme, unscheduled_radiation_calls 434 437 435 438 USE statistics, & … … 1274 1277 TRIM( surface_type ) /= 'water' .AND. & 1275 1278 TRIM( surface_type ) /= 'netcdf' ) THEN 1276 message_string = 'unknown surface type surface_type = "' //&1279 message_string = 'unknown surface type: surface_type = "' // & 1277 1280 TRIM( surface_type ) // '"' 1278 1281 CALL message( 'lsm_check_parameters', 'PA0019', 1, 2, 0, 6, 0 ) … … 1295 1298 CALL message( 'lsm_check_parameters', 'PA0400', 1, 2, 0, 6, 0 ) 1296 1299 ENDIF 1300 1301 IF ( .NOT. radiation ) THEN 1302 message_string = 'lsm requires '// & 1303 'the radiation model to be switched on' 1304 CALL message( 'lsm_check_parameters', 'PA0400', 1, 2, 0, 6, 0 ) 1305 ENDIF 1297 1306 1298 1307 IF ( TRIM( surface_type ) == 'vegetation' ) THEN … … 1380 1389 ' is not allowed in combination with ', & 1381 1390 'most_method = ', most_method 1382 CALL message( 'lsm_check_parameters', 'PA041 7', 1, 2, 0, 6, 0 )1391 CALL message( 'lsm_check_parameters', 'PA0414', 1, 2, 0, 6, 0 ) 1383 1392 ENDIF 1384 1393 … … 1426 1435 CALL message( 'lsm_check_parameters', 'PA0352', 1, 2, 0, 6, 0 ) 1427 1436 ENDIF 1428 1437 1429 1438 IF ( z0h_pavement == 9999999.9_wp ) THEN 1430 1439 message_string = 'pavement_type = 0 (user_defined)'// & … … 1630 1639 DO k = nzb_soil, nzt_soil-1 1631 1640 dz_soil_center(k) = zs(k+1) - zs(k) 1632 IF ( dz_soil_center(k) == 0.0_wp ) THEN1641 IF ( dz_soil_center(k) <= 0.0_wp ) THEN 1633 1642 message_string = 'invalid soil layer configuration found ' // & 1634 '(dz_soil_center(k) = 0.0)'1643 '(dz_soil_center(k) <= 0.0)' 1635 1644 CALL message( 'lsm_rrd_local', 'PA0140', 1, 2, 0, 6, 0 ) 1636 1645 ENDIF -
palm/trunk/SOURCE/large_scale_forcing_nudging_mod.f90
r3026 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error messages revised 28 ! 29 ! 3026 2018-05-22 10:30:53Z schwenkel 27 30 ! Changed the name specific humidity to mixing ratio, since we are computing 28 31 ! mixing ratios. … … 732 735 !-- Check nudging and large scale forcing from external file 733 736 IF ( nudging .AND. ( .NOT. large_scale_forcing ) ) THEN 734 message_string = 'Nudging requires large_scale_forcing = .T.. &'//&735 'Surface fluxes and geostrophic wind should be &'//&737 message_string = 'Nudging requires large_scale_forcing = .T.. '// & 738 'Surface fluxes and geostrophic wind should be '// & 736 739 'prescribed in file LSF_DATA' 737 740 CALL message( 'check_parameters', 'PA0374', 1, 2, 0, 6, 0 ) … … 740 743 IF ( large_scale_forcing .AND. ( bc_lr /= 'cyclic' .OR. & 741 744 bc_ns /= 'cyclic' ) ) THEN 742 message_string = 'Non-cyclic lateral boundaries do not allow for &'//&745 message_string = 'Non-cyclic lateral boundaries do not allow for '//& 743 746 'the usage of large scale forcing from external file.' 744 747 CALL message( 'check_parameters', 'PA0375', 1, 2, 0, 6, 0 ) … … 746 749 747 750 IF ( large_scale_forcing .AND. ( .NOT. humidity ) ) THEN 748 message_string = 'The usage of large scale forcing from external &'//&751 message_string = 'The usage of large scale forcing from external '//& 749 752 'file LSF_DATA requires humidity = .T..' 750 753 CALL message( 'check_parameters', 'PA0376', 1, 2, 0, 6, 0 ) … … 752 755 753 756 IF ( large_scale_forcing .AND. passive_scalar ) THEN 754 message_string = 'The usage of large scale forcing from external &'//&757 message_string = 'The usage of large scale forcing from external '// & 755 758 'file LSF_DATA is not implemented for passive scalars' 756 759 CALL message( 'check_parameters', 'PA0440', 1, 2, 0, 6, 0 ) … … 759 762 IF ( large_scale_forcing .AND. topography /= 'flat' & 760 763 .AND. .NOT. lsf_exception ) THEN 761 message_string = 'The usage of large scale forcing from external &'//&764 message_string = 'The usage of large scale forcing from external '//& 762 765 'file LSF_DATA is not implemented for non-flat topography' 763 766 CALL message( 'check_parameters', 'PA0377', 1, 2, 0, 6, 0 ) … … 765 768 766 769 IF ( large_scale_forcing .AND. ocean ) THEN 767 message_string = 'The usage of large scale forcing from external &'//&770 message_string = 'The usage of large scale forcing from external '// & 768 771 'file LSF_DATA is not implemented for ocean runs' 769 772 CALL message( 'check_parameters', 'PA0378', 1, 2, 0, 6, 0 ) … … 858 861 TRIM( data_output_pr(var_count) ) // & 859 862 ' is not implemented for ' // & 860 ' large_scale_forcing = .FALSE.'861 CALL message( 'lsf_nudging_check_data_output_pr', 'PA039 3', &863 'nudging = .FALSE.' 864 CALL message( 'lsf_nudging_check_data_output_pr', 'PA0394', & 862 865 1, 2, 0, 6, 0 ) 863 866 ELSE … … 873 876 TRIM( data_output_pr(var_count) ) // & 874 877 ' is not implemented for ' // & 875 ' large_scale_forcing = .FALSE.'876 CALL message( 'lsf_nudging_check_data_output_pr', 'PA039 3', &878 'nudging = .FALSE.' 879 CALL message( 'lsf_nudging_check_data_output_pr', 'PA0394', & 877 880 1, 2, 0, 6, 0 ) 878 881 ELSE … … 888 891 TRIM( data_output_pr(var_count) ) // & 889 892 ' is not implemented for ' // & 890 ' large_scale_forcing = .FALSE.'891 CALL message( 'lsf_nudging_check_data_output_pr', 'PA039 3', &893 'nudging = .FALSE.' 894 CALL message( 'lsf_nudging_check_data_output_pr', 'PA0394', & 892 895 1, 2, 0, 6, 0 ) 893 896 ELSE … … 903 906 TRIM( data_output_pr(var_count) ) // & 904 907 ' is not implemented for ' // & 905 ' large_scale_forcing = .FALSE.'906 CALL message( 'lsf_nudging_check_data_output_pr', 'PA039 3', &908 'nudging = .FALSE.' 909 CALL message( 'lsf_nudging_check_data_output_pr', 'PA0394', & 907 910 1, 2, 0, 6, 0 ) 908 911 ELSE … … 1280 1283 1281 1284 IF ( ierrn /= 0 ) THEN 1282 WRITE ( message_string, * ) 'No time dependent surface variables ' //&1283 ' in&LSF_DATA for end of run found'1285 WRITE ( message_string, * ) 'No time dependent surface ' // & 1286 'variables in LSF_DATA for end of run found' 1284 1287 1285 1288 CALL message( 'ls_forcing', 'PA0363', 1, 2, 0, 6, 0 ) … … 1289 1292 IF ( time_surf(1) > end_time ) THEN 1290 1293 WRITE ( message_string, * ) 'Time dependent surface variables in ' // & 1291 ' &LSF_DATA set in after end of ' ,&1294 'LSF_DATA set in after end of ' , & 1292 1295 'simulation - lsf_surf is set to FALSE' 1293 1296 CALL message( 'ls_forcing', 'PA0371', 0, 0, 0, 6, 0 ) … … 1316 1319 IF ( ierrn < 0 ) THEN 1317 1320 WRITE( message_string, * ) 'No time dependent vertical profiles',& 1318 ' in &LSF_DATA for end of run found'1321 ' in LSF_DATA for end of run found' 1319 1322 CALL message( 'ls_forcing', 'PA0372', 1, 2, 0, 6, 0 ) 1320 1323 ENDIF … … 1362 1365 1363 1366 IF ( ierrn /= 0 ) THEN 1364 WRITE( message_string, * ) 'zu(',k,') = ', zu(k), 'm ', &1365 'is higher than the maximum height in LSF_DATA which ',&1366 ' is ', lowheight, 'm. Interpolation on PALM ',&1367 WRITE( message_string, * ) 'zu(',k,') = ', zu(k), 'm ', & 1368 'is higher than the maximum height in LSF_DATA ', & 1369 'which is ', lowheight, 'm. Interpolation on PALM ',& 1367 1370 'grid is not possible.' 1368 1371 CALL message( 'ls_forcing', 'PA0395', 1, 2, 0, 6, 0 ) … … 1832 1835 1833 1836 ierrn = 0 1834 READ ( finput, *, IOSTAT=ierrn ) highheight , hightnudge , &1835 highunudge , highvnudge , &1836 highwnudge , highptnudge, &1837 READ ( finput, *, IOSTAT=ierrn ) highheight , hightnudge , & 1838 highunudge , highvnudge , & 1839 highwnudge , highptnudge, & 1837 1840 highqnudge 1838 1841 IF (ierrn /= 0 ) THEN 1839 WRITE( message_string, * ) 'zu(',k,') = ', zu(k), 'm is ', &1840 'higher than the maximum height in NUDING_DATA which ', 1841 'is ', lowheight, 'm. Interpolation on PALM ', 1842 WRITE( message_string, * ) 'zu(',k,') = ', zu(k), 'm is ', & 1843 'higher than the maximum height in NUDING_DATA which ',& 1844 'is ', lowheight, 'm. Interpolation on PALM ', & 1842 1845 'grid is not possible.' 1843 1846 CALL message( 'nudging', 'PA0364', 1, 2, 0, 6, 0 ) … … 1872 1875 ENDIF 1873 1876 1874 WRITE( message_string, * ) 'Initial profiles of u, v and ',&1875 ' scalarsfrom NUDGING_DATA are used.'1877 WRITE( message_string, * ) 'Initial profiles of u, v, pt and q ', & 1878 'from NUDGING_DATA are used.' 1876 1879 CALL message( 'large_scale_forcing_nudging', 'PA0370', 0, 0, 0, 6, 0 ) 1877 1880 ENDIF -
palm/trunk/SOURCE/lpm_droplet_condensation.f90
r3039 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error messages revised 28 ! 29 ! 3039 2018-05-24 13:13:11Z schwenkel 27 30 ! bugfix for lcm with grid stretching 28 31 ! … … 380 383 !-- the model timestep might be too long. 381 384 IF ( ql_c(kp,jp,ip) > 100.0_wp ) THEN 382 WRITE( message_string, * ) 'k=',kp,' j=',jp,' i=',ip, &383 ' ql_c=',ql_c(kp,jp,ip), ' &part(',n,')%wf=',&385 WRITE( message_string, * ) 'k=',kp,' j=',jp,' i=',ip, & 386 ' ql_c=',ql_c(kp,jp,ip), ' part(',n,')%wf=', & 384 387 particles(n)%weight_factor,' delta_r=',delta_r 385 388 CALL message( 'lpm_droplet_condensation', 'PA0143', 2, 2, -1, 6, 1 ) … … 390 393 delta_r = new_r(n) - particles(n)%radius 391 394 IF ( delta_r < 0.0_wp .AND. new_r(n) < 0.0_wp ) THEN 392 WRITE( message_string, * ) '#1 k=',kp,' j=',jp,' i=',ip, &393 ' e_s=',e_s, ' e_a=',e_a,' t_int=',t_int, &394 ' &delta_r=',delta_r,&395 WRITE( message_string, * ) '#1 k=',kp,' j=',jp,' i=',ip, & 396 ' e_s=',e_s, ' e_a=',e_a,' t_int=',t_int, & 397 ' delta_r=',delta_r, & 395 398 ' particle_radius=',particles(n)%radius 396 399 CALL message( 'lpm_droplet_condensation', 'PA0144', 2, 2, -1, 6, 1 ) -
palm/trunk/SOURCE/lpm_init.f90
r3039 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error message revised 28 ! 29 ! 3039 2018-05-24 13:13:11Z schwenkel 27 30 ! bugfix for lcm with grid stretching 28 31 ! … … 333 336 !-- Check the number of particle groups. 334 337 IF ( number_of_particle_groups > max_number_of_particle_groups ) THEN 335 WRITE( message_string, * ) 'max_number_of_particle_groups =', &336 max_number_of_particle_groups , &337 ' &number_of_particle_groups reset to ',&338 WRITE( message_string, * ) 'max_number_of_particle_groups =', & 339 max_number_of_particle_groups , & 340 ' number_of_particle_groups reset to ', & 338 341 max_number_of_particle_groups 339 342 CALL message( 'lpm_init', 'PA0213', 0, 1, 0, 6, 0 ) … … 345 348 !-- propably (not realized so far). 346 349 IF ( surf_def_h(1)%ns >= 1 ) THEN 347 WRITE( message_string, * ) 'Overhanging topography do not work '// &350 WRITE( message_string, * ) 'Overhanging topography do not work '// & 348 351 'with particles' 349 352 CALL message( 'lpm_init', 'PA0212', 0, 1, 0, 6, 0 ) … … 466 469 467 470 CASE DEFAULT 468 WRITE( message_string, * ) 'unknown boundary condition ', &471 WRITE( message_string, * ) 'unknown boundary condition ', & 469 472 'bc_par_b = "', TRIM( bc_par_b ), '"' 470 473 CALL message( 'lpm_init', 'PA0217', 1, 2, 0, 6, 0 ) … … 483 486 484 487 CASE DEFAULT 485 WRITE( message_string, * ) 'unknown boundary condition ', &488 WRITE( message_string, * ) 'unknown boundary condition ', & 486 489 'bc_par_t = "', TRIM( bc_par_t ), '"' 487 490 CALL message( 'lpm_init', 'PA0218', 1, 2, 0, 6, 0 ) … … 540 543 541 544 CASE DEFAULT 542 WRITE( message_string, * ) 'unknown splitting condition ',&543 'splitting_mode = "',TRIM( splitting_mode ), '"'545 WRITE( message_string, * ) 'unknown splitting_mode = "', & 546 TRIM( splitting_mode ), '"' 544 547 CALL message( 'lpm_init', 'PA0146', 1, 2, 0, 6, 0 ) 545 548 … … 557 560 558 561 CASE DEFAULT 559 WRITE( message_string, * ) 'unknown splitting function ',&560 'splitting_function = "',TRIM( splitting_function ), '"'562 WRITE( message_string, * ) 'unknown splitting function = "', & 563 TRIM( splitting_function ), '"' 561 564 CALL message( 'lpm_init', 'PA0147', 1, 2, 0, 6, 0 ) 562 565 … … 619 622 DO i = 1, number_of_particle_groups 620 623 IF ( density_ratio(i) /= 0.0_wp .AND. radius(i) == 0 ) THEN 621 WRITE( message_string, * ) 'particle group #', i, ' has a',&624 WRITE( message_string, * ) 'particle group #', i, ' has a', & 622 625 'density ratio /= 0 but radius = 0' 623 626 CALL message( 'lpm_init', 'PA0215', 1, 2, 0, 6, 0 ) -
palm/trunk/SOURCE/lpm_read_restart_file.f90
r2718 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error messages revised, code adjusted according to PALMs coding standard 28 ! 29 ! 2718 2018-01-02 08:49:38Z maronga 27 30 ! Corrected "Former revisions" section 28 31 ! … … 114 117 !-- First open the input unit. 115 118 IF ( myid_char == '' ) THEN 116 OPEN ( 90, FILE='PARTICLE_RESTART_DATA_IN'//myid_char, &119 OPEN ( 90, FILE='PARTICLE_RESTART_DATA_IN'//myid_char, & 117 120 FORM='UNFORMATTED' ) 118 121 ELSE 119 OPEN ( 90, FILE='PARTICLE_RESTART_DATA_IN/'//myid_char, &122 OPEN ( 90, FILE='PARTICLE_RESTART_DATA_IN/'//myid_char, & 120 123 FORM='UNFORMATTED' ) 121 124 ENDIF … … 126 129 particle_binary_version = '4.0' 127 130 IF ( TRIM( version_on_file ) /= TRIM( particle_binary_version ) ) THEN 128 message_string = 'version mismatch concerning data from prior ' // &129 'run &version on file = "' //&130 TRIM( version_on_file ) // &131 ' &version in program = "' //&131 message_string = 'version mismatch concerning data from prior ' // & 132 'run version on file = "' // & 133 TRIM( version_on_file ) // & 134 ' version in program = "' // & 132 135 TRIM( particle_binary_version ) // '"' 133 136 CALL message( 'lpm_read_restart_file', 'PA0214', 1, 2, 0, 6, 0 ) … … 138 141 !-- min_nr_particle, the remainder is initialized by zero_particle to avoid 139 142 !-- errors. 140 zero_particle = particle_type( 0.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, &141 0.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, &142 0.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, &143 0.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, &143 zero_particle = particle_type( 0.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, & 144 0.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, & 145 0.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, & 146 0.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, 0.0_wp, & 144 147 0, 0, 0_idp, .FALSE., -1 ) 145 148 ! 146 149 !-- Read some particle parameters and the size of the particle arrays, 147 150 !-- allocate them and read their contents. 148 READ ( 90 ) bc_par_b, bc_par_lr, bc_par_ns, bc_par_t, &149 number_of_particle_groups, particle_groups, time_prel, &151 READ ( 90 ) bc_par_b, bc_par_lr, bc_par_ns, bc_par_t, & 152 number_of_particle_groups, particle_groups, time_prel, & 150 153 time_write_particle_data 151 154 152 ALLOCATE( prt_count(nzb:nzt+1,nysg:nyng,nxlg:nxrg), &155 ALLOCATE( prt_count(nzb:nzt+1,nysg:nyng,nxlg:nxrg), & 153 156 grid_particles(nzb:nzt+1,nysg:nyng,nxlg:nxrg) ) 154 157 -
palm/trunk/SOURCE/model_1d_mod.f90
r2965 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error message revised 28 ! 29 ! 2965 2018-04-13 07:37:25Z scharf 27 30 ! adjusted format string for 1D run control output 28 31 ! … … 1032 1035 stop_dt_1d = .TRUE. 1033 1036 1034 WRITE( message_string, * ) 'timestep has exceeded the lower limit &',&1037 WRITE( message_string, * ) 'timestep has exceeded the lower limit ', & 1035 1038 'dt_1d = ',dt_1d,' s simulation stopped!' 1036 1039 CALL message( 'timestep_1d', 'PA0192', 1, 2, 0, 6, 0 ) -
palm/trunk/SOURCE/modules.f90
r3026 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! z_max_do2d removed 28 ! 29 ! 3026 2018-05-22 10:30:53Z schwenkel 27 30 ! Changed the name specific humidity to mixing ratio, since we are computing 28 31 ! mixing ratios. … … 1519 1522 REAL(wp) :: zeta_max = 20.0_wp !< namelist parameter 1520 1523 REAL(wp) :: zeta_min = -20.0_wp !< namelist parameter 1521 REAL(wp) :: z_max_do2d = -1.0_wp !< namelist parameter1522 1524 REAL(wp) :: z0h_factor = 1.0_wp !< namelist parameter 1523 1525 -
palm/trunk/SOURCE/netcdf_data_input_mod.f90
r3041 r3045 20 20 ! Current revisions: 21 21 ! ----------------- 22 ! 23 ! 22 ! 23 ! 24 24 ! Former revisions: 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error message revised 28 ! 29 ! 3041 2018-05-25 10:39:54Z gronemeier 27 30 ! Add data type for global file attributes 28 31 ! Add read of global attributes of static driver … … 2003 2006 GOTO 12 2004 2007 2005 10 message_string = 'file TOPOGRAPHY '//TRIM( coupling_char )//&2006 ' does not exist'2008 10 message_string = 'file TOPOGRAPHY_DATA'// & 2009 TRIM( coupling_char )// ' does not exist' 2007 2010 CALL message( 'netcdf_data_input_mod', 'PA0208', 1, 2, 0, 6, 0 ) 2008 2011 -
palm/trunk/SOURCE/netcdf_interface_mod.f90
r3004 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error messages revised, code adjusted to PALMs coding standards, CASE pt_ext 28 ! pt_new disabled, comment revised 29 ! 30 ! 3004 2018-04-27 12:33:25Z Giersch 27 31 ! .NOT. found in if-query added to account for variables found in tcm 28 32 ! … … 708 712 IF ( netcdf_deflate < 0 .OR. netcdf_deflate > 9 ) THEN 709 713 WRITE ( message_string, '(A,I3,A)' ) 'netcdf_deflate out of ' // & 710 'range & given value: ', netcdf_deflate,&714 'range given value: ', netcdf_deflate, & 711 715 ', allowed range: 0-9' 712 716 CALL message( 'netcdf_define_header', 'PA0355', 2, 2, 0, 6, 0 ) … … 734 738 735 739 ! 736 !-- Select the mode to be processed. Possibilities are 3d, mask, xy, xz, yz, 737 !-- pr and ts. 740 !-- Select the mode to be processed. Possibilities are 3d, ma (mask), xy, xz, 741 !-- yz, pr (profiles), ps (particle timeseries), fl (flight data), ts 742 !-- (timeseries) or sp (spectra) 738 743 SELECT CASE ( mode ) 739 744 … … 1185 1190 1186 1191 IF ( TRIM( var_list ) /= TRIM( var_list_old ) ) THEN 1187 WRITE ( message_string, * ) 'netCDF file for ', TRIM( var ), &1188 ' data for mask', mid, ' from previous run found,', &1189 ' &but this file cannot be extended due to variable ',&1190 'mismatch. &New file is created instead.'1192 WRITE ( message_string, * ) 'netCDF file for ', TRIM( var ), & 1193 ' data for mask', mid, ' from previous run found,', & 1194 ' but this file cannot be extended due to variable ', & 1195 'mismatch. New file is created instead.' 1191 1196 CALL message( 'define_netcdf_header', 'PA0335', 0, 1, 0, 6, 0 ) 1192 1197 extend = .FALSE. … … 1206 1211 id_dim_zu_mask(mid,av) = id_dim_zu_mask_old(1) 1207 1212 1208 nc_stat = NF90_INQUIRE_DIMENSION( id_set_mask(mid,av), &1209 id_dim_zu_mask(mid,av), &1213 nc_stat = NF90_INQUIRE_DIMENSION( id_set_mask(mid,av), & 1214 id_dim_zu_mask(mid,av), & 1210 1215 len = nz_old ) 1211 1216 CALL netcdf_handle_error( 'netcdf_define_header', 510 ) 1212 1217 1213 1218 IF ( mask_size(mid,3) /= nz_old ) THEN 1214 WRITE ( message_string, * ) 'netCDF file for ', TRIM( var ), &1215 ' data for mask', mid, ' from previous run found,', &1216 ' &but this file cannot be extended due to mismatch in ',&1217 ' number of &vertical grid points.',&1218 ' &New file is created instead.'1219 WRITE ( message_string, * ) 'netCDF file for ', TRIM( var ), & 1220 ' data for mask', mid, ' from previous run found,', & 1221 ' but this file cannot be extended due to mismatch in ', & 1222 ' number of vertical grid points.', & 1223 ' New file is created instead.' 1219 1224 CALL message( 'define_netcdf_header', 'PA0336', 0, 1, 0, 6, 0 ) 1220 1225 extend = .FALSE. … … 1227 1232 !-- The current time must be larger than the last output time 1228 1233 !-- on the file. 1229 nc_stat = NF90_INQ_VARID( id_set_mask(mid,av), 'time', &1234 nc_stat = NF90_INQ_VARID( id_set_mask(mid,av), 'time', & 1230 1235 id_var_time_mask(mid,av) ) 1231 1236 CALL netcdf_handle_error( 'netcdf_define_header', 511 ) 1232 1237 1233 nc_stat = NF90_INQUIRE_VARIABLE( id_set_mask(mid,av), &1234 id_var_time_mask(mid,av), &1238 nc_stat = NF90_INQUIRE_VARIABLE( id_set_mask(mid,av), & 1239 id_var_time_mask(mid,av), & 1235 1240 dimids = id_dim_time_old ) 1236 1241 CALL netcdf_handle_error( 'netcdf_define_header', 512 ) 1237 1242 id_dim_time_mask(mid,av) = id_dim_time_old(1) 1238 1243 1239 nc_stat = NF90_INQUIRE_DIMENSION( id_set_mask(mid,av), &1240 id_dim_time_mask(mid,av), &1244 nc_stat = NF90_INQUIRE_DIMENSION( id_set_mask(mid,av), & 1245 id_dim_time_mask(mid,av), & 1241 1246 len = domask_time_count(mid,av) ) 1242 1247 CALL netcdf_handle_error( 'netcdf_define_header', 513 ) 1243 1248 1244 nc_stat = NF90_GET_VAR( id_set_mask(mid,av), &1245 id_var_time_mask(mid,av), &1246 last_time_coordinate, &1247 start = (/ domask_time_count(mid,av) /), &1249 nc_stat = NF90_GET_VAR( id_set_mask(mid,av), & 1250 id_var_time_mask(mid,av), & 1251 last_time_coordinate, & 1252 start = (/ domask_time_count(mid,av) /), & 1248 1253 count = (/ 1 /) ) 1249 1254 CALL netcdf_handle_error( 'netcdf_define_header', 514 ) 1250 1255 1251 1256 IF ( last_time_coordinate(1) >= simulated_time ) THEN 1252 WRITE ( message_string, * ) 'netCDF file for ', TRIM( var ), &1253 ' data for mask', mid, ' from previous run found,', &1254 ' &but this file cannot be extended because the current ',&1255 'output time &is less or equal than the last output time ',&1256 'on this file. &New file is created instead.'1257 WRITE ( message_string, * ) 'netCDF file for ', TRIM( var ), & 1258 ' data for mask', mid, ' from previous run found,', & 1259 ' but this file cannot be extended because the current ', & 1260 'output time is less or equal than the last output time ', & 1261 'on this file. New file is created instead.' 1257 1262 CALL message( 'define_netcdf_header', 'PA0337', 0, 1, 0, 6, 0 ) 1258 1263 domask_time_count(mid,av) = 0 … … 1283 1288 time_average_text = ' ' 1284 1289 ELSE 1285 WRITE (time_average_text, '('', '',F7.1,'' s average'')') &1290 WRITE (time_average_text, '('', '',F7.1,'' s average'')') & 1286 1291 averaging_interval 1287 1292 ENDIF 1288 1293 nc_stat = NF90_REDEF( id_set_mask(mid,av) ) 1289 1294 CALL netcdf_handle_error( 'netcdf_define_header', 516 ) 1290 nc_stat = NF90_PUT_ATT( id_set_mask(mid,av), NF90_GLOBAL, 'title', &1291 TRIM( run_description_header ) // &1295 nc_stat = NF90_PUT_ATT( id_set_mask(mid,av), NF90_GLOBAL, 'title', & 1296 TRIM( run_description_header ) // & 1292 1297 TRIM( time_average_text ) ) 1293 1298 CALL netcdf_handle_error( 'netcdf_define_header', 517 ) 1294 1299 nc_stat = NF90_ENDDEF( id_set_mask(mid,av) ) 1295 1300 CALL netcdf_handle_error( 'netcdf_define_header', 518 ) 1296 WRITE ( message_string, * ) 'netCDF file for ', TRIM( var ), &1297 ' data for mask', mid, ' from previous run found.', &1298 ' &This file will be extended.'1301 WRITE ( message_string, * ) 'netCDF file for ', TRIM( var ), & 1302 ' data for mask', mid, ' from previous run found.', & 1303 ' This file will be extended.' 1299 1304 CALL message( 'define_netcdf_header', 'PA0338', 0, 0, 0, 6, 0 ) 1300 1305 ! … … 1307 1312 ! 1308 1313 !-- Define some global attributes of the dataset 1309 nc_stat = NF90_PUT_ATT( id_set_3d(av), NF90_GLOBAL, 'Conventions', &1314 nc_stat = NF90_PUT_ATT( id_set_3d(av), NF90_GLOBAL, 'Conventions', & 1310 1315 'COARDS' ) 1311 1316 CALL netcdf_handle_error( 'netcdf_define_header', 62 ) … … 1756 1761 message_string = 'netCDF file for volume data ' // & 1757 1762 TRIM( var ) // ' from previous run found,' // & 1758 ' &but this file cannot be extended due to' // &1763 ' but this file cannot be extended due to' // & 1759 1764 ' variable mismatch.' // & 1760 ' &New file is created instead.'1765 ' New file is created instead.' 1761 1766 CALL message( 'define_netcdf_header', 'PA0245', 0, 1, 0, 6, 0 ) 1762 1767 extend = .FALSE. … … 1781 1786 message_string = 'netCDF file for volume data ' // & 1782 1787 TRIM( var ) // ' from previous run found,' // & 1783 ' &but this file cannot be extended due to' // &1788 ' but this file cannot be extended due to' // & 1784 1789 ' mismatch in number of' // & 1785 ' &vertical grid points (nz_do3d).' // &1786 ' &New file is created instead.'1790 ' vertical grid points (nz_do3d).' // & 1791 ' New file is created instead.' 1787 1792 CALL message( 'define_netcdf_header', 'PA0246', 0, 1, 0, 6, 0 ) 1788 1793 extend = .FALSE. … … 1822 1827 1823 1828 IF ( last_time_coordinate(1) >= simulated_time ) THEN 1824 message_string = 'netCDF file for volume data ' // &1829 message_string = 'netCDF file for volume data ' // & 1825 1830 TRIM( var ) // ' from previous run found,' // & 1826 ' &but this file cannot be extended becaus' // &1831 ' but this file cannot be extended becaus' // & 1827 1832 'e the current output time' // & 1828 ' &is less or equal than the last output t' // &1833 ' is less or equal than the last output t' // & 1829 1834 'ime on this file.' // & 1830 ' &New file is created instead.'1835 ' New file is created instead.' 1831 1836 CALL message( 'define_netcdf_header', 'PA0247', 0, 1, 0, 6, 0 ) 1832 1837 do3d_time_count(av) = 0 … … 1842 1847 message_string = 'netCDF file for volume data ' // & 1843 1848 TRIM( var ) // ' from previous run found,' // & 1844 ' &but this file cannot be extended becaus' // &1845 'e the number of output time levels &has b' // &1849 ' but this file cannot be extended becaus' // & 1850 'e the number of output time levels has b' // & 1846 1851 'een increased compared to the previous s' // & 1847 1852 'imulation.' // & 1848 ' &New file is created instead.'1853 ' New file is created instead.' 1849 1854 CALL message( 'define_netcdf_header', 'PA0388', 0, 1, 0, 6, 0 ) 1850 1855 do3d_time_count(av) = 0 … … 1912 1917 message_string = 'netCDF file for volume data ' // & 1913 1918 TRIM( var ) // ' from previous run found.' // & 1914 ' &This file will be extended.'1919 ' This file will be extended.' 1915 1920 CALL message( 'define_netcdf_header', 'PA0248', 0, 0, 0, 6, 0 ) 1916 1921 … … 2470 2475 message_string = 'netCDF file for cross-sections ' // & 2471 2476 TRIM( var ) // ' from previous run found,' // & 2472 ' & but this file cannot be extended due to' //&2477 ' but this file cannot be extended due to' // & 2473 2478 ' variable mismatch.' // & 2474 ' &New file is created instead.'2479 ' New file is created instead.' 2475 2480 CALL message( 'define_netcdf_header', 'PA0249', 0, 1, 0, 6, 0 ) 2476 2481 extend = .FALSE. … … 2503 2508 message_string = 'netCDF file for cross-sections ' // & 2504 2509 TRIM( var ) // ' from previous run found,' // & 2505 ' &but this file cannot be extended due to' // &2510 ' but this file cannot be extended due to' // & 2506 2511 ' mismatch in number of' // & 2507 ' &cross sections.' // &2508 ' &New file is created instead.'2512 ' cross sections.' // & 2513 ' New file is created instead.' 2509 2514 CALL message( 'define_netcdf_header', 'PA0250', 0, 1, 0, 6, 0 ) 2510 2515 extend = .FALSE. … … 2522 2527 IF ( section(i,1) /= -1 ) THEN 2523 2528 IF ( zu(section(i,1)) /= netcdf_data(i) ) THEN 2524 message_string = 'netCDF file for cross-sections ' // &2525 TRIM( var ) // ' from previous run found,' // &2526 ' &but this file cannot be extended' //&2527 ' due to mismatch in cross' // &2528 ' §ion levels.' //&2529 ' &New file is created instead.'2530 CALL message( 'define_netcdf_header', 'PA0251', &2529 message_string = 'netCDF file for cross-sections ' // & 2530 TRIM( var ) // ' from previous run found,' // & 2531 ' but this file cannot be extended' // & 2532 ' due to mismatch in cross' // & 2533 ' section levels.' // & 2534 ' New file is created instead.' 2535 CALL message( 'define_netcdf_header', 'PA0251', & 2531 2536 0, 1, 0, 6, 0 ) 2532 2537 extend = .FALSE. … … 2535 2540 ELSE 2536 2541 IF ( -1.0_wp /= netcdf_data(i) ) THEN 2537 message_string = 'netCDF file for cross-sections ' // &2538 TRIM( var ) // ' from previous run found,' // &2539 ' &but this file cannot be extended' //&2540 ' due to mismatch in cross' // &2541 ' §ion levels.' //&2542 ' &New file is created instead.'2543 CALL message( 'define_netcdf_header', 'PA0251', &2542 message_string = 'netCDF file for cross-sections ' // & 2543 TRIM( var ) // ' from previous run found,' // & 2544 ' but this file cannot be extended' // & 2545 ' due to mismatch in cross' // & 2546 ' section levels.' // & 2547 ' New file is created instead.' 2548 CALL message( 'define_netcdf_header', 'PA0251', & 2544 2549 0, 1, 0, 6, 0 ) 2545 2550 extend = .FALSE. … … 2575 2580 IF ( netcdf_data_format < 5 ) do2d_xy_time_count(av) = ntime_count 2576 2581 2577 nc_stat = NF90_GET_VAR( id_set_xy(av), id_var_time_xy(av), &2578 last_time_coordinate, &2579 start = (/ do2d_xy_time_count(av) /), &2582 nc_stat = NF90_GET_VAR( id_set_xy(av), id_var_time_xy(av), & 2583 last_time_coordinate, & 2584 start = (/ do2d_xy_time_count(av) /), & 2580 2585 count = (/ 1 /) ) 2581 2586 CALL netcdf_handle_error( 'netcdf_define_header', 137 ) 2582 2587 2583 2588 IF ( last_time_coordinate(1) >= simulated_time ) THEN 2584 message_string = 'netCDF file for cross sections ' // &2585 TRIM( var ) // ' from previous run found,' // &2586 ' &but this file cannot be extended becaus' //&2587 'e the current output time' // &2588 ' &is less or equal than the last output t' //&2589 'ime on this file.' // &2590 ' &New file is created instead.'2589 message_string = 'netCDF file for cross sections ' // & 2590 TRIM( var ) // ' from previous run found,' // & 2591 ' but this file cannot be extended becaus' // & 2592 'e the current output time' // & 2593 ' is less or equal than the last output t' // & 2594 'ime on this file.' // & 2595 ' New file is created instead.' 2591 2596 CALL message( 'define_netcdf_header', 'PA0252', 0, 1, 0, 6, 0 ) 2592 2597 do2d_xy_time_count(av) = 0 … … 2602 2607 message_string = 'netCDF file for cross sections ' // & 2603 2608 TRIM( var ) // ' from previous run found,' // & 2604 ' &but this file cannot be extended becaus' // &2605 'e the number of output time levels &has b' // &2609 ' but this file cannot be extended becaus' // & 2610 'e the number of output time levels has b' // & 2606 2611 'een increased compared to the previous s' // & 2607 2612 'imulation.' // & 2608 ' &New file is created instead.'2613 ' New file is created instead.' 2609 2614 CALL message( 'define_netcdf_header', 'PA0389', 0, 1, 0, 6, 0 ) 2610 2615 do2d_xy_time_count(av) = 0 … … 2666 2671 nc_stat = NF90_REDEF( id_set_xy(av) ) 2667 2672 CALL netcdf_handle_error( 'netcdf_define_header', 431 ) 2668 nc_stat = NF90_PUT_ATT( id_set_xy(av), NF90_GLOBAL, 'title', &2669 TRIM( run_description_header ) // &2673 nc_stat = NF90_PUT_ATT( id_set_xy(av), NF90_GLOBAL, 'title', & 2674 TRIM( run_description_header ) // & 2670 2675 TRIM( time_average_text ) ) 2671 2676 CALL netcdf_handle_error( 'netcdf_define_header', 139 ) 2672 2677 nc_stat = NF90_ENDDEF( id_set_xy(av) ) 2673 2678 CALL netcdf_handle_error( 'netcdf_define_header', 432 ) 2674 message_string = 'netCDF file for cross-sections ' // &2675 TRIM( var ) // ' from previous run found.' // &2676 ' &This file will be extended.'2679 message_string = 'netCDF file for cross-sections ' // & 2680 TRIM( var ) // ' from previous run found.' // & 2681 ' This file will be extended.' 2677 2682 CALL message( 'define_netcdf_header', 'PA0253', 0, 0, 0, 6, 0 ) 2678 2683 … … 2682 2687 ! 2683 2688 !-- Define some global attributes of the dataset 2684 nc_stat = NF90_PUT_ATT( id_set_xz(av), NF90_GLOBAL, 'Conventions', &2689 nc_stat = NF90_PUT_ATT( id_set_xz(av), NF90_GLOBAL, 'Conventions', & 2685 2690 'COARDS' ) 2686 2691 CALL netcdf_handle_error( 'netcdf_define_header', 140 ) … … 2689 2694 time_average_text = ' ' 2690 2695 ELSE 2691 WRITE (time_average_text, '('', '',F7.1,'' s average'')') &2696 WRITE (time_average_text, '('', '',F7.1,'' s average'')') & 2692 2697 averaging_interval 2693 2698 ENDIF 2694 nc_stat = NF90_PUT_ATT( id_set_xz(av), NF90_GLOBAL, 'title', &2695 TRIM( run_description_header ) // &2699 nc_stat = NF90_PUT_ATT( id_set_xz(av), NF90_GLOBAL, 'title', & 2700 TRIM( run_description_header ) // & 2696 2701 TRIM( time_average_text ) ) 2697 2702 CALL netcdf_handle_error( 'netcdf_define_header', 141 ) … … 2879 2884 2880 2885 IF ( .NOT. found ) THEN 2881 WRITE ( message_string, * ) 'no grid defined for', &2886 WRITE ( message_string, * ) 'no grid defined for', & 2882 2887 ' variable ', TRIM( do2d(av,i) ) 2883 CALL message( 'define_netcdf_header', 'PA0244', &2888 CALL message( 'define_netcdf_header', 'PA0244', & 2884 2889 0, 1, 0, 6, 0 ) 2885 2890 ENDIF … … 3113 3118 message_string = 'netCDF file for cross-sections ' // & 3114 3119 TRIM( var ) // ' from previous run found,' // & 3115 ' & but this file cannot be extended due to' //&3120 ' but this file cannot be extended due to' // & 3116 3121 ' variable mismatch.' // & 3117 ' &New file is created instead.'3122 ' New file is created instead.' 3118 3123 CALL message( 'define_netcdf_header', 'PA0249', 0, 1, 0, 6, 0 ) 3119 3124 extend = .FALSE. … … 3146 3151 message_string = 'netCDF file for cross-sections ' // & 3147 3152 TRIM( var ) // ' from previous run found,' // & 3148 ' &but this file cannot be extended due to' // &3153 ' but this file cannot be extended due to' // & 3149 3154 ' mismatch in number of' // & 3150 ' &cross sections.' // &3151 ' &New file is created instead.'3155 ' cross sections.' // & 3156 ' New file is created instead.' 3152 3157 CALL message( 'define_netcdf_header', 'PA0250', 0, 1, 0, 6, 0 ) 3153 3158 extend = .FALSE. … … 3165 3170 IF ( section(i,2) /= -1 ) THEN 3166 3171 IF ( ( ( section(i,2) + 0.5 ) * dy ) /= netcdf_data(i) ) THEN 3167 message_string = 'netCDF file for cross-sections ' // &3168 TRIM( var ) // ' from previous run found,' // &3169 ' &but this file cannot be extended' //&3170 ' due to mismatch in cross' // &3171 ' §ion levels.' //&3172 '&New file is created instead.'3173 CALL message( 'define_netcdf_header', 'PA0251', &3172 message_string = 'netCDF file for cross-sections ' // & 3173 TRIM( var ) // ' from previous run found,' // & 3174 ' but this file cannot be extended' // & 3175 ' due to mismatch in cross' // & 3176 ' section levels.' // & 3177 ' New file is created instead.' 3178 CALL message( 'define_netcdf_header', 'PA0251', & 3174 3179 0, 1, 0, 6, 0 ) 3175 3180 extend = .FALSE. … … 3178 3183 ELSE 3179 3184 IF ( -1.0_wp /= netcdf_data(i) ) THEN 3180 message_string = 'netCDF file for cross-sections ' // &3181 TRIM( var ) // ' from previous run found,' // &3182 ' &but this file cannot be extended' //&3183 ' due to mismatch in cross' // &3184 ' §ion levels.' //&3185 ' &New file is created instead.'3186 CALL message( 'define_netcdf_header', 'PA0251', &3185 message_string = 'netCDF file for cross-sections ' // & 3186 TRIM( var ) // ' from previous run found,' // & 3187 ' but this file cannot be extended' // & 3188 ' due to mismatch in cross' // & 3189 ' section levels.' // & 3190 ' New file is created instead.' 3191 CALL message( 'define_netcdf_header', 'PA0251', & 3187 3192 0, 1, 0, 6, 0 ) 3188 3193 extend = .FALSE. … … 3218 3223 IF ( netcdf_data_format < 5 ) do2d_xz_time_count(av) = ntime_count 3219 3224 3220 nc_stat = NF90_GET_VAR( id_set_xz(av), id_var_time_xz(av), &3221 last_time_coordinate, &3222 start = (/ do2d_xz_time_count(av) /), &3225 nc_stat = NF90_GET_VAR( id_set_xz(av), id_var_time_xz(av), & 3226 last_time_coordinate, & 3227 start = (/ do2d_xz_time_count(av) /), & 3223 3228 count = (/ 1 /) ) 3224 3229 CALL netcdf_handle_error( 'netcdf_define_header', 176 ) 3225 3230 3226 3231 IF ( last_time_coordinate(1) >= simulated_time ) THEN 3227 message_string = 'netCDF file for cross sections ' // &3228 TRIM( var ) // ' from previous run found,' // &3229 ' &but this file cannot be extended becaus' //&3230 'e the current output time' // &3231 ' &is less or equal than the last output t' //&3232 'ime on this file.' // &3233 ' &New file is created instead.'3232 message_string = 'netCDF file for cross sections ' // & 3233 TRIM( var ) // ' from previous run found,' // & 3234 ' but this file cannot be extended becaus' // & 3235 'e the current output time' // & 3236 ' is less or equal than the last output t' // & 3237 'ime on this file.' // & 3238 ' New file is created instead.' 3234 3239 CALL message( 'define_netcdf_header', 'PA0252', 0, 1, 0, 6, 0 ) 3235 3240 do2d_xz_time_count(av) = 0 … … 3245 3250 message_string = 'netCDF file for cross sections ' // & 3246 3251 TRIM( var ) // ' from previous run found,' // & 3247 ' &but this file cannot be extended becaus' // &3248 'e the number of output time levels &has b' // &3252 ' but this file cannot be extended becaus' // & 3253 'e the number of output time levels has b' // & 3249 3254 'een increased compared to the previous s' // & 3250 3255 'imulation.' // & 3251 ' &New file is created instead.'3256 ' New file is created instead.' 3252 3257 CALL message( 'define_netcdf_header', 'PA0390', 0, 1, 0, 6, 0 ) 3253 3258 do2d_xz_time_count(av) = 0 … … 3325 3330 nc_stat = NF90_REDEF( id_set_xz(av) ) 3326 3331 CALL netcdf_handle_error( 'netcdf_define_header', 433 ) 3327 nc_stat = NF90_PUT_ATT( id_set_xz(av), NF90_GLOBAL, 'title', &3328 TRIM( run_description_header ) // &3332 nc_stat = NF90_PUT_ATT( id_set_xz(av), NF90_GLOBAL, 'title', & 3333 TRIM( run_description_header ) // & 3329 3334 TRIM( time_average_text ) ) 3330 3335 CALL netcdf_handle_error( 'netcdf_define_header', 178 ) 3331 3336 nc_stat = NF90_ENDDEF( id_set_xz(av) ) 3332 3337 CALL netcdf_handle_error( 'netcdf_define_header', 434 ) 3333 message_string = 'netCDF file for cross-sections ' // &3334 TRIM( var ) // ' from previous run found.' // &3335 ' &This file will be extended.'3338 message_string = 'netCDF file for cross-sections ' // & 3339 TRIM( var ) // ' from previous run found.' // & 3340 ' This file will be extended.' 3336 3341 CALL message( 'define_netcdf_header', 'PA0253', 0, 0, 0, 6, 0 ) 3337 3342 … … 3341 3346 ! 3342 3347 !-- Define some global attributes of the dataset 3343 nc_stat = NF90_PUT_ATT( id_set_yz(av), NF90_GLOBAL, 'Conventions', &3348 nc_stat = NF90_PUT_ATT( id_set_yz(av), NF90_GLOBAL, 'Conventions', & 3344 3349 'COARDS' ) 3345 3350 CALL netcdf_handle_error( 'netcdf_define_header', 179 ) … … 3348 3353 time_average_text = ' ' 3349 3354 ELSE 3350 WRITE (time_average_text, '('', '',F7.1,'' s average'')') &3355 WRITE (time_average_text, '('', '',F7.1,'' s average'')') & 3351 3356 averaging_interval 3352 3357 ENDIF 3353 nc_stat = NF90_PUT_ATT( id_set_yz(av), NF90_GLOBAL, 'title', &3354 TRIM( run_description_header ) // &3358 nc_stat = NF90_PUT_ATT( id_set_yz(av), NF90_GLOBAL, 'title', & 3359 TRIM( run_description_header ) // & 3355 3360 TRIM( time_average_text ) ) 3356 3361 CALL netcdf_handle_error( 'netcdf_define_header', 180 ) 3357 3362 IF ( av == 1 ) THEN 3358 3363 WRITE ( time_average_text,'(F7.1,'' s avg'')' ) averaging_interval 3359 nc_stat = NF90_PUT_ATT( id_set_yz(av), NF90_GLOBAL, 'time_avg', &3364 nc_stat = NF90_PUT_ATT( id_set_yz(av), NF90_GLOBAL, 'time_avg', & 3360 3365 TRIM( time_average_text ) ) 3361 3366 CALL netcdf_handle_error( 'netcdf_define_header', 180 ) … … 3759 3764 message_string = 'netCDF file for cross-sections ' // & 3760 3765 TRIM( var ) // ' from previous run found,' // & 3761 ' & but this file cannot be extended due to' //&3766 ' but this file cannot be extended due to' // & 3762 3767 ' variable mismatch.' // & 3763 ' &New file is created instead.'3768 ' New file is created instead.' 3764 3769 CALL message( 'define_netcdf_header', 'PA0249', 0, 1, 0, 6, 0 ) 3765 3770 extend = .FALSE. … … 3792 3797 message_string = 'netCDF file for cross-sections ' // & 3793 3798 TRIM( var ) // ' from previous run found,' // & 3794 ' &but this file cannot be extended due to' // &3799 ' but this file cannot be extended due to' // & 3795 3800 ' mismatch in number of' // & 3796 ' &cross sections.' // &3797 ' &New file is created instead.'3801 ' cross sections.' // & 3802 ' New file is created instead.' 3798 3803 CALL message( 'define_netcdf_header', 'PA0250', 0, 1, 0, 6, 0 ) 3799 3804 extend = .FALSE. … … 3811 3816 IF ( section(i,3) /= -1 ) THEN 3812 3817 IF ( ( ( section(i,3) + 0.5 ) * dx ) /= netcdf_data(i) ) THEN 3813 message_string = 'netCDF file for cross-sections ' // &3814 TRIM( var ) // ' from previous run found,' // &3815 ' &but this file cannot be extended' //&3816 ' due to mismatch in cross' // &3817 ' §ion levels.' //&3818 '&New file is created instead.'3819 CALL message( 'define_netcdf_header', 'PA0251', &3818 message_string = 'netCDF file for cross-sections ' // & 3819 TRIM( var ) // ' from previous run found,' // & 3820 ' but this file cannot be extended' // & 3821 ' due to mismatch in cross' // & 3822 ' section levels.' // & 3823 ' New file is created instead.' 3824 CALL message( 'define_netcdf_header', 'PA0251', & 3820 3825 0, 1, 0, 6, 0 ) 3821 3826 extend = .FALSE. … … 3824 3829 ELSE 3825 3830 IF ( -1.0_wp /= netcdf_data(i) ) THEN 3826 message_string = 'netCDF file for cross-sections ' // &3827 TRIM( var ) // ' from previous run found,' // &3828 ' &but this file cannot be extended' //&3829 ' due to mismatch in cross' // &3830 ' §ion levels.' //&3831 ' &New file is created instead.'3832 CALL message( 'define_netcdf_header', 'PA0251', &3831 message_string = 'netCDF file for cross-sections ' // & 3832 TRIM( var ) // ' from previous run found,' // & 3833 ' but this file cannot be extended' // & 3834 ' due to mismatch in cross' // & 3835 ' section levels.' // & 3836 ' New file is created instead.' 3837 CALL message( 'define_netcdf_header', 'PA0251', & 3833 3838 0, 1, 0, 6, 0 ) 3834 3839 extend = .FALSE. … … 3864 3869 IF ( netcdf_data_format < 5 ) do2d_yz_time_count(av) = ntime_count 3865 3870 3866 nc_stat = NF90_GET_VAR( id_set_yz(av), id_var_time_yz(av), &3867 last_time_coordinate, &3868 start = (/ do2d_yz_time_count(av) /), &3871 nc_stat = NF90_GET_VAR( id_set_yz(av), id_var_time_yz(av), & 3872 last_time_coordinate, & 3873 start = (/ do2d_yz_time_count(av) /), & 3869 3874 count = (/ 1 /) ) 3870 3875 CALL netcdf_handle_error( 'netcdf_define_header', 215 ) 3871 3876 3872 3877 IF ( last_time_coordinate(1) >= simulated_time ) THEN 3873 message_string = 'netCDF file for cross sections ' // &3874 TRIM( var ) // ' from previous run found,' // &3875 ' &but this file cannot be extended becaus' //&3876 'e the current output time' // &3877 ' &is less or equal than the last output t' //&3878 'ime on this file.' // &3879 ' &New file is created instead.'3878 message_string = 'netCDF file for cross sections ' // & 3879 TRIM( var ) // ' from previous run found,' // & 3880 ' but this file cannot be extended becaus' // & 3881 'e the current output time' // & 3882 ' is less or equal than the last output t' // & 3883 'ime on this file.' // & 3884 ' New file is created instead.' 3880 3885 CALL message( 'define_netcdf_header', 'PA0252', 0, 1, 0, 6, 0 ) 3881 3886 do2d_yz_time_count(av) = 0 … … 3891 3896 message_string = 'netCDF file for cross sections ' // & 3892 3897 TRIM( var ) // ' from previous run found,' // & 3893 ' &but this file cannot be extended becaus' // &3894 'e the number of output time levels &has b' // &3898 ' but this file cannot be extended becaus' // & 3899 'e the number of output time levels has b' // & 3895 3900 'een increased compared to the previous s' // & 3896 3901 'imulation.' // & 3897 ' &New file is created instead.'3902 ' New file is created instead.' 3898 3903 CALL message( 'define_netcdf_header', 'PA0391', 0, 1, 0, 6, 0 ) 3899 3904 do2d_yz_time_count(av) = 0 … … 3971 3976 nc_stat = NF90_REDEF( id_set_yz(av) ) 3972 3977 CALL netcdf_handle_error( 'netcdf_define_header', 435 ) 3973 nc_stat = NF90_PUT_ATT( id_set_yz(av), NF90_GLOBAL, 'title', &3974 TRIM( run_description_header ) // &3978 nc_stat = NF90_PUT_ATT( id_set_yz(av), NF90_GLOBAL, 'title', & 3979 TRIM( run_description_header ) // & 3975 3980 TRIM( time_average_text ) ) 3976 3981 CALL netcdf_handle_error( 'netcdf_define_header', 217 ) 3977 3982 nc_stat = NF90_ENDDEF( id_set_yz(av) ) 3978 3983 CALL netcdf_handle_error( 'netcdf_define_header', 436 ) 3979 message_string = 'netCDF file for cross-sections ' // &3980 TRIM( var ) // ' from previous run found.' // &3981 ' &This file will be extended.'3984 message_string = 'netCDF file for cross-sections ' // & 3985 TRIM( var ) // ' from previous run found.' // & 3986 ' This file will be extended.' 3982 3987 CALL message( 'define_netcdf_header', 'PA0253', 0, 0, 0, 6, 0 ) 3983 3988 … … 3988 3993 !-- Define some global attributes of the dataset 3989 3994 IF ( averaging_interval_pr /= 0.0_wp ) THEN 3990 WRITE (time_average_text,'('', '',F7.1,'' s average'')') &3995 WRITE (time_average_text,'('', '',F7.1,'' s average'')') & 3991 3996 averaging_interval_pr 3992 nc_stat = NF90_PUT_ATT( id_set_pr, NF90_GLOBAL, 'title', &3993 TRIM( run_description_header ) // &3997 nc_stat = NF90_PUT_ATT( id_set_pr, NF90_GLOBAL, 'title', & 3998 TRIM( run_description_header ) // & 3994 3999 TRIM( time_average_text ) ) 3995 4000 CALL netcdf_handle_error( 'netcdf_define_header', 218 ) 3996 4001 3997 4002 WRITE ( time_average_text,'(F7.1,'' s avg'')' ) averaging_interval_pr 3998 nc_stat = NF90_PUT_ATT( id_set_pr, NF90_GLOBAL, 'time_avg', &4003 nc_stat = NF90_PUT_ATT( id_set_pr, NF90_GLOBAL, 'time_avg', & 3999 4004 TRIM( time_average_text ) ) 4000 4005 ELSE 4001 nc_stat = NF90_PUT_ATT( id_set_pr, NF90_GLOBAL, 'title', &4006 nc_stat = NF90_PUT_ATT( id_set_pr, NF90_GLOBAL, 'title', & 4002 4007 TRIM( run_description_header ) ) 4003 4008 ENDIF … … 4092 4097 DO j = 1, cross_profiles_count 4093 4098 4094 IF ( TRIM(cross_profiles_char(j)) == TRIM(data_output_pr(i))) &4099 IF ( TRIM(cross_profiles_char(j)) == TRIM(data_output_pr(i))) & 4095 4100 THEN 4096 4101 EXIT … … 4101 4106 cross_profiles_count = cross_profiles_count + 1 4102 4107 cross_profiles_maxi = cross_profiles_maxi + 1 4103 cross_profiles_char(MIN( crmax, cross_profiles_count )) = &4108 cross_profiles_char(MIN( crmax, cross_profiles_count )) = & 4104 4109 TRIM( data_output_pr(i) ) 4105 cross_profiles_numb(MIN( crmax, cross_profiles_count )) = &4110 cross_profiles_numb(MIN( crmax, cross_profiles_count )) = & 4106 4111 cross_profiles_maxi 4107 4112 ENDIF … … 4111 4116 4112 4117 IF ( cross_profiles_count >= crmax ) THEN 4113 message_string = 'It is not allowed to arrange more than ' &4114 // '100 profiles with & cross_profiles. Apart'&4115 // ' from that, all profiles are saved & to '&4118 message_string = 'It is not allowed to arrange more than ' & 4119 // '100 profiles with cross_profiles. Apart' & 4120 // ' from that, all profiles are saved to ' & 4116 4121 // 'the netCDF file.' 4117 4122 CALL message( 'define_netcdf_header', 'PA0354', 0, 0, 0, 6, 0 ) … … 4285 4290 4286 4291 IF ( TRIM( var_list ) /= TRIM( var_list_old ) ) THEN 4287 message_string = 'netCDF file for vertical profiles ' // &4288 'from previous run found,' // &4289 ' & but this file cannot be extended due to' //&4290 ' variable mismatch.' // &4291 ' &New file is created instead.'4292 message_string = 'netCDF file for vertical profiles ' // & 4293 'from previous run found,' // & 4294 ' but this file cannot be extended due to' // & 4295 ' variable mismatch.' // & 4296 ' New file is created instead.' 4292 4297 CALL message( 'define_netcdf_header', 'PA0254', 0, 1, 0, 6, 0 ) 4293 4298 extend = .FALSE. … … 4319 4324 4320 4325 IF ( last_time_coordinate(1) >= simulated_time ) THEN 4321 message_string = 'netCDF file for vertical profiles ' // &4322 'from previous run found,' // &4323 ' &but this file cannot be extended becaus' //&4324 'e the current output time' // &4325 ' &is less or equal than the last output t' //&4326 'ime on this file.' // &4327 ' &New file is created instead.'4326 message_string = 'netCDF file for vertical profiles ' // & 4327 'from previous run found,' // & 4328 ' but this file cannot be extended becaus' // & 4329 'e the current output time' // & 4330 ' is less or equal than the last output t' // & 4331 'ime on this file.' // & 4332 ' New file is created instead.' 4328 4333 CALL message( 'define_netcdf_header', 'PA0255', 0, 1, 0, 6, 0 ) 4329 4334 dopr_time_count = 0 … … 4339 4344 4340 4345 IF ( statistic_regions == 0 ) THEN 4341 nc_stat = NF90_INQ_VARID( id_set_pr, data_output_pr(i), &4346 nc_stat = NF90_INQ_VARID( id_set_pr, data_output_pr(i), & 4342 4347 id_var_dopr(i,0) ) 4343 4348 CALL netcdf_handle_error( 'netcdf_define_header', 245 ) … … 4346 4351 WRITE ( suffix, '(''_'',I2.2)' ) j 4347 4352 netcdf_var_name = TRIM( data_output_pr(i) ) // suffix 4348 nc_stat = NF90_INQ_VARID( id_set_pr, netcdf_var_name, &4353 nc_stat = NF90_INQ_VARID( id_set_pr, netcdf_var_name, & 4349 4354 id_var_dopr(i,j) ) 4350 4355 CALL netcdf_handle_error( 'netcdf_define_header', 246 ) … … 4378 4383 nc_stat = NF90_REDEF( id_set_pr ) 4379 4384 CALL netcdf_handle_error( 'netcdf_define_header', 437 ) 4380 nc_stat = NF90_PUT_ATT( id_set_pr, NF90_GLOBAL, 'title', &4381 TRIM( run_description_header ) // &4385 nc_stat = NF90_PUT_ATT( id_set_pr, NF90_GLOBAL, 'title', & 4386 TRIM( run_description_header ) // & 4382 4387 TRIM( time_average_text ) ) 4383 4388 CALL netcdf_handle_error( 'netcdf_define_header', 248 ) … … 4385 4390 nc_stat = NF90_ENDDEF( id_set_pr ) 4386 4391 CALL netcdf_handle_error( 'netcdf_define_header', 438 ) 4387 message_string = 'netCDF file for vertical profiles ' // &4388 'from previous run found.' // &4389 ' &This file will be extended.'4392 message_string = 'netCDF file for vertical profiles ' // & 4393 'from previous run found.' // & 4394 ' This file will be extended.' 4390 4395 CALL message( 'define_netcdf_header', 'PA0256', 0, 0, 0, 6, 0 ) 4391 4396 … … 4395 4400 ! 4396 4401 !-- Define some global attributes of the dataset 4397 nc_stat = NF90_PUT_ATT( id_set_ts, NF90_GLOBAL, 'title', &4402 nc_stat = NF90_PUT_ATT( id_set_ts, NF90_GLOBAL, 'title', & 4398 4403 TRIM( run_description_header ) ) 4399 4404 CALL netcdf_handle_error( 'netcdf_define_header', 249 ) … … 4476 4481 DO j = 0, statistic_regions 4477 4482 WRITE ( suffix, '(''_'',I2.2)' ) j 4478 var_list = TRIM( var_list ) // TRIM( dots_label(i) ) // &4483 var_list = TRIM( var_list ) // TRIM( dots_label(i) ) // & 4479 4484 suffix // ';' 4480 4485 ENDDO … … 4484 4489 4485 4490 IF ( TRIM( var_list ) /= TRIM( var_list_old ) ) THEN 4486 message_string = 'netCDF file for time series ' // &4487 'from previous run found,' // &4488 ' & but this file cannot be extended due to' //&4489 ' variable mismatch.' // &4490 ' &New file is created instead.'4491 message_string = 'netCDF file for time series ' // & 4492 'from previous run found,' // & 4493 ' but this file cannot be extended due to' // & 4494 ' variable mismatch.' // & 4495 ' New file is created instead.' 4491 4496 CALL message( 'define_netcdf_header', 'PA0257', 0, 1, 0, 6, 0 ) 4492 4497 extend = .FALSE. … … 4502 4507 CALL netcdf_handle_error( 'netcdf_define_header', 261 ) 4503 4508 4504 nc_stat = NF90_INQUIRE_VARIABLE( id_set_ts, id_var_time_ts, &4509 nc_stat = NF90_INQUIRE_VARIABLE( id_set_ts, id_var_time_ts, & 4505 4510 dimids = id_dim_time_old ) 4506 4511 CALL netcdf_handle_error( 'netcdf_define_header', 262 ) 4507 4512 id_dim_time_ts = id_dim_time_old(1) 4508 4513 4509 nc_stat = NF90_INQUIRE_DIMENSION( id_set_ts, id_dim_time_ts, &4514 nc_stat = NF90_INQUIRE_DIMENSION( id_set_ts, id_dim_time_ts, & 4510 4515 len = dots_time_count ) 4511 4516 CALL netcdf_handle_error( 'netcdf_define_header', 263 ) 4512 4517 4513 nc_stat = NF90_GET_VAR( id_set_ts, id_var_time_ts, &4514 last_time_coordinate, &4515 start = (/ dots_time_count /), &4518 nc_stat = NF90_GET_VAR( id_set_ts, id_var_time_ts, & 4519 last_time_coordinate, & 4520 start = (/ dots_time_count /), & 4516 4521 count = (/ 1 /) ) 4517 4522 CALL netcdf_handle_error( 'netcdf_define_header', 264 ) 4518 4523 4519 4524 IF ( last_time_coordinate(1) >= simulated_time ) THEN 4520 message_string = 'netCDF file for time series ' // &4521 'from previous run found,' // &4522 ' &but this file cannot be extended becaus' //&4523 'e the current output time' // &4524 ' &is less or equal than the last output t' //&4525 'ime on this file.' // &4526 ' &New file is created instead.'4525 message_string = 'netCDF file for time series ' // & 4526 'from previous run found,' // & 4527 ' but this file cannot be extended becaus' // & 4528 'e the current output time' // & 4529 ' is less or equal than the last output t' // & 4530 'ime on this file.' // & 4531 ' New file is created instead.' 4527 4532 CALL message( 'define_netcdf_header', 'PA0258', 0, 1, 0, 6, 0 ) 4528 4533 dots_time_count = 0 … … 4562 4567 nc_stat = NF90_REDEF( id_set_ts ) 4563 4568 CALL netcdf_handle_error( 'netcdf_define_header', 439 ) 4564 nc_stat = NF90_PUT_ATT( id_set_ts, NF90_GLOBAL, 'title', &4569 nc_stat = NF90_PUT_ATT( id_set_ts, NF90_GLOBAL, 'title', & 4565 4570 TRIM( run_description_header ) ) 4566 4571 CALL netcdf_handle_error( 'netcdf_define_header', 267 ) 4567 4572 nc_stat = NF90_ENDDEF( id_set_ts ) 4568 4573 CALL netcdf_handle_error( 'netcdf_define_header', 440 ) 4569 message_string = 'netCDF file for time series ' // &4570 'from previous run found.' // &4571 ' &This file will be extended.'4574 message_string = 'netCDF file for time series ' // & 4575 'from previous run found.' // & 4576 ' This file will be extended.' 4572 4577 CALL message( 'define_netcdf_header', 'PA0259', 0, 0, 0, 6, 0 ) 4573 4578 … … 4578 4583 !-- Define some global attributes of the dataset 4579 4584 IF ( averaging_interval_sp /= 0.0_wp ) THEN 4580 WRITE (time_average_text,'('', '',F7.1,'' s average'')') &4585 WRITE (time_average_text,'('', '',F7.1,'' s average'')') & 4581 4586 averaging_interval_sp 4582 nc_stat = NF90_PUT_ATT( id_set_sp, NF90_GLOBAL, 'title', &4583 TRIM( run_description_header ) // &4587 nc_stat = NF90_PUT_ATT( id_set_sp, NF90_GLOBAL, 'title', & 4588 TRIM( run_description_header ) // & 4584 4589 TRIM( time_average_text ) ) 4585 4590 CALL netcdf_handle_error( 'netcdf_define_header', 268 ) … … 4801 4806 4802 4807 IF ( TRIM( var_list ) /= TRIM( var_list_old ) ) THEN 4803 message_string = 'netCDF file for spectra ' // &4804 'from previous run found,' // &4805 ' & but this file cannot be extended due to' //&4806 ' variable mismatch.' // &4807 ' &New file is created instead.'4808 message_string = 'netCDF file for spectra ' // & 4809 'from previous run found,' // & 4810 ' but this file cannot be extended due to' // & 4811 ' variable mismatch.' // & 4812 ' New file is created instead.' 4808 4813 CALL message( 'define_netcdf_header', 'PA0260', 0, 1, 0, 6, 0 ) 4809 4814 extend = .FALSE. … … 4835 4840 4836 4841 IF ( ns /= ns_old ) THEN 4837 message_string = 'netCDF file for spectra ' // &4838 ' from previous run found,' // &4839 ' &but this file cannot be extended due to' //&4840 ' mismatch in number of' // &4841 ' &vertical levels.' //&4842 ' &New file is created instead.'4842 message_string = 'netCDF file for spectra ' // & 4843 ' from previous run found,' // & 4844 ' but this file cannot be extended due to' // & 4845 ' mismatch in number of' // & 4846 ' vertical levels.' // & 4847 ' New file is created instead.' 4843 4848 CALL message( 'define_netcdf_header', 'PA0261', 0, 1, 0, 6, 0 ) 4844 4849 extend = .FALSE. … … 4857 4862 message_string = 'netCDF file for spectra ' // & 4858 4863 ' from previous run found,' // & 4859 ' &but this file cannot be extended due to' // &4864 ' but this file cannot be extended due to' // & 4860 4865 ' mismatch in heights of' // & 4861 ' &vertical levels.' // &4862 ' &New file is created instead.'4866 ' vertical levels.' // & 4867 ' New file is created instead.' 4863 4868 CALL message( 'define_netcdf_header', 'PA0262', 0, 1, 0, 6, 0 ) 4864 4869 extend = .FALSE. … … 4893 4898 4894 4899 IF ( last_time_coordinate(1) >= simulated_time ) THEN 4895 message_string = 'netCDF file for spectra ' // &4896 'from previous run found,' // &4897 ' &but this file cannot be extended becaus' //&4898 'e the current output time' // &4899 ' &is less or equal than the last output t' //&4900 'ime on this file.' // &4901 ' &New file is created instead.'4900 message_string = 'netCDF file for spectra ' // & 4901 'from previous run found,' // & 4902 ' but this file cannot be extended becaus' // & 4903 'e the current output time' // & 4904 ' is less or equal than the last output t' // & 4905 'ime on this file.' // & 4906 ' New file is created instead.' 4902 4907 CALL message( 'define_netcdf_header', 'PA0263', 0, 1, 0, 6, 0 ) 4903 4908 dosp_time_count = 0 … … 4948 4953 4949 4954 WRITE ( time_average_text,'(F7.1,'' s avg'')' ) averaging_interval_sp 4950 nc_stat = NF90_PUT_ATT( id_set_sp, NF90_GLOBAL, 'time_avg', &4955 nc_stat = NF90_PUT_ATT( id_set_sp, NF90_GLOBAL, 'time_avg', & 4951 4956 TRIM( time_average_text ) ) 4952 4957 ELSE 4953 nc_stat = NF90_PUT_ATT( id_set_sp, NF90_GLOBAL, 'title', &4958 nc_stat = NF90_PUT_ATT( id_set_sp, NF90_GLOBAL, 'title', & 4954 4959 TRIM( run_description_header ) ) 4955 4960 ENDIF … … 4957 4962 nc_stat = NF90_ENDDEF( id_set_sp ) 4958 4963 CALL netcdf_handle_error( 'netcdf_define_header', 442 ) 4959 message_string = 'netCDF file for spectra ' // &4960 'from previous run found.' // &4961 ' &This file will be extended.'4964 message_string = 'netCDF file for spectra ' // & 4965 'from previous run found.' // & 4966 ' This file will be extended.' 4962 4967 CALL message( 'define_netcdf_header', 'PA0264', 0, 0, 0, 6, 0 ) 4963 4968 4964 4965 CASE ( 'pt_new' ) 4969 ! 4970 !-- Currently disabled (DATA_PRT_NETCDF) 4971 ! CASE ( 'pt_new' ) 4966 4972 4967 4973 ! 4968 4974 !-- Define some global attributes of the dataset 4969 nc_stat = NF90_PUT_ATT( id_set_prt, NF90_GLOBAL, 'title',&4970 TRIM( run_description_header ) )4971 CALL netcdf_handle_error( 'netcdf_define_header', 310 )4975 ! nc_stat = NF90_PUT_ATT( id_set_prt, NF90_GLOBAL, 'title', & 4976 ! TRIM( run_description_header ) ) 4977 ! CALL netcdf_handle_error( 'netcdf_define_header', 310 ) 4972 4978 4973 4979 ! 4974 4980 !-- Define time coordinate for particles (unlimited dimension) 4975 CALL netcdf_create_dim( id_set_prt, 'time', NF90_UNLIMITED, &4976 id_dim_time_prt, 311 )4977 CALL netcdf_create_var( id_set_prt, (/ id_dim_time_prt /), 'time', &4978 NF90_DOUBLE, id_var_time_prt, 'seconds', '', &4979 312, 313, 000 )4981 ! CALL netcdf_create_dim( id_set_prt, 'time', NF90_UNLIMITED, & 4982 ! id_dim_time_prt, 311 ) 4983 ! CALL netcdf_create_var( id_set_prt, (/ id_dim_time_prt /), 'time', & 4984 ! NF90_DOUBLE, id_var_time_prt, 'seconds', '', & 4985 ! 312, 313, 000 ) 4980 4986 ! 4981 4987 !-- netCDF4 allows more than one unlimited dimension 4982 CALL netcdf_create_dim( id_set_prt, 'particle_number', &4983 NF90_UNLIMITED, id_dim_prtnum, 314 )4984 4985 CALL netcdf_create_var( id_set_prt, (/ id_dim_prtnum /), &4986 'particle_number', NF90_DOUBLE, &4987 id_var_prtnum, 'particle number', '', 315, &4988 316, 000 )4988 ! CALL netcdf_create_dim( id_set_prt, 'particle_number', & 4989 ! NF90_UNLIMITED, id_dim_prtnum, 314 ) 4990 4991 ! CALL netcdf_create_var( id_set_prt, (/ id_dim_prtnum /), & 4992 ! 'particle_number', NF90_DOUBLE, & 4993 ! id_var_prtnum, 'particle number', '', 315, & 4994 ! 316, 000 ) 4989 4995 ! 4990 4996 !-- Define variable which contains the real number of particles in use 4991 CALL netcdf_create_var( id_set_prt, (/ id_dim_time_prt /), &4992 'real_num_of_prt', NF90_DOUBLE, &4993 id_var_rnop_prt, 'particle number', '', 317, &4994 318, 000 )4997 ! CALL netcdf_create_var( id_set_prt, (/ id_dim_time_prt /), & 4998 ! 'real_num_of_prt', NF90_DOUBLE, & 4999 ! id_var_rnop_prt, 'particle number', '', 317, & 5000 ! 318, 000 ) 4995 5001 ! 4996 5002 !-- Define the variables 4997 DO i = 1, 174998 4999 CALL netcdf_create_var( id_set_prt, (/ id_dim_prtnum, &5000 id_dim_time_prt /), prt_var_names(i), &5001 nc_precision(8), id_var_prt(i), &5002 TRIM( prt_var_units(i) ), &5003 TRIM( prt_var_names(i) ), 319, 320, 321 )5004 5005 ENDDO5003 ! DO i = 1, 17 5004 5005 ! CALL netcdf_create_var( id_set_prt, (/ id_dim_prtnum, & 5006 ! id_dim_time_prt /), prt_var_names(i), & 5007 ! nc_precision(8), id_var_prt(i), & 5008 ! TRIM( prt_var_units(i) ), & 5009 ! TRIM( prt_var_names(i) ), 319, 320, 321 ) 5010 5011 ! ENDDO 5006 5012 5007 5013 ! 5008 5014 !-- Leave netCDF define mode 5009 nc_stat = NF90_ENDDEF( id_set_prt ) 5010 CALL netcdf_handle_error( 'netcdf_define_header', 322 ) 5011 5012 5013 CASE ( 'pt_ext' ) 5015 ! nc_stat = NF90_ENDDEF( id_set_prt ) 5016 ! CALL netcdf_handle_error( 'netcdf_define_header', 322 ) 5017 5018 ! 5019 !-- Currently disabled (DATA_PRT_NETCDF) 5020 ! CASE ( 'pt_ext' ) 5014 5021 5015 5022 ! … … 5018 5025 !-- The current time must be larger than the last output time 5019 5026 !-- on the file. 5020 nc_stat = NF90_INQ_VARID( id_set_prt, 'time', id_var_time_prt )5021 CALL netcdf_handle_error( 'netcdf_define_header', 323 )5022 5023 nc_stat = NF90_INQUIRE_VARIABLE( id_set_prt, id_var_time_prt, &5024 dimids = id_dim_time_old )5025 CALL netcdf_handle_error( 'netcdf_define_header', 324 )5026 id_dim_time_prt = id_dim_time_old(1)5027 5028 nc_stat = NF90_INQUIRE_DIMENSION( id_set_prt, id_dim_time_prt, &5029 len = prt_time_count )5030 CALL netcdf_handle_error( 'netcdf_define_header', 325 )5031 5032 nc_stat = NF90_GET_VAR( id_set_prt, id_var_time_prt, &5033 last_time_coordinate, &5034 start = (/ prt_time_count /), &5035 count = (/ 1 /) )5036 CALL netcdf_handle_error( 'netcdf_define_header', 326 )5037 5038 IF ( last_time_coordinate(1) >= simulated_time ) THEN5039 message_string = 'netCDF file for particles ' //&5040 'from previous run found,' //&5041 '&but this file cannot be extended becaus' //&5042 'e the current output time' //&5043 '&is less or equal than the last output t' //&5044 'ime on this file.' //&5045 '&New file is created instead.'5046 CALL message( 'define_netcdf_header', 'PA0265', 0, 1, 0, 6, 0 )5047 prt_time_count = 05048 extend = .FALSE.5049 RETURN5050 ENDIF5027 ! nc_stat = NF90_INQ_VARID( id_set_prt, 'time', id_var_time_prt ) 5028 ! CALL netcdf_handle_error( 'netcdf_define_header', 323 ) 5029 5030 ! nc_stat = NF90_INQUIRE_VARIABLE( id_set_prt, id_var_time_prt, & 5031 ! dimids = id_dim_time_old ) 5032 ! CALL netcdf_handle_error( 'netcdf_define_header', 324 ) 5033 ! id_dim_time_prt = id_dim_time_old(1) 5034 5035 ! nc_stat = NF90_INQUIRE_DIMENSION( id_set_prt, id_dim_time_prt, & 5036 ! len = prt_time_count ) 5037 ! CALL netcdf_handle_error( 'netcdf_define_header', 325 ) 5038 5039 ! nc_stat = NF90_GET_VAR( id_set_prt, id_var_time_prt, & 5040 ! last_time_coordinate, & 5041 ! start = (/ prt_time_count /), & 5042 ! count = (/ 1 /) ) 5043 ! CALL netcdf_handle_error( 'netcdf_define_header', 326 ) 5044 5045 ! IF ( last_time_coordinate(1) >= simulated_time ) THEN 5046 ! message_string = 'netCDF file for particles ' // & 5047 ! 'from previous run found,' // & 5048 ! ' but this file cannot be extended becaus' // & 5049 ! 'e the current output time' // & 5050 ! ' is less or equal than the last output t' // & 5051 ! 'ime on this file.' // & 5052 ! ' New file is created instead.' 5053 ! CALL message( 'define_netcdf_header', 'PA0265', 0, 1, 0, 6, 0 ) 5054 ! prt_time_count = 0 5055 ! extend = .FALSE. 5056 ! RETURN 5057 ! ENDIF 5051 5058 5052 5059 ! 5053 5060 !-- Dataset seems to be extendable. 5054 5061 !-- Now get the variable ids. 5055 nc_stat = NF90_INQ_VARID( id_set_prt, 'real_num_of_prt',&5056 5057 5058 5059 DO i = 1, 175060 5061 nc_stat = NF90_INQ_VARID( id_set_prt, prt_var_names(i),&5062 id_var_prt(i) )5063 CALL netcdf_handle_error( 'netcdf_define_header', 328 )5064 5065 ENDDO5066 5067 message_string = 'netCDF file for particles ' //&5068 'from previous run found.' //&5069 '&This file will be extended.'5070 CALL message( 'define_netcdf_header', 'PA0266', 0, 0, 0, 6, 0 )5062 ! nc_stat = NF90_INQ_VARID( id_set_prt, 'real_num_of_prt', & 5063 ! id_var_rnop_prt ) 5064 ! CALL netcdf_handle_error( 'netcdf_define_header', 327 ) 5065 5066 ! DO i = 1, 17 5067 5068 ! nc_stat = NF90_INQ_VARID( id_set_prt, prt_var_names(i), & 5069 ! id_var_prt(i) ) 5070 ! CALL netcdf_handle_error( 'netcdf_define_header', 328 ) 5071 5072 ! ENDDO 5073 5074 ! message_string = 'netCDF file for particles ' // & 5075 ! 'from previous run found.' // & 5076 ! ' This file will be extended.' 5077 ! CALL message( 'define_netcdf_header', 'PA0266', 0, 0, 0, 6, 0 ) 5071 5078 5072 5079 … … 5076 5083 ! 5077 5084 !-- Define some global attributes of the dataset 5078 nc_stat = NF90_PUT_ATT( id_set_pts, NF90_GLOBAL, 'title', &5085 nc_stat = NF90_PUT_ATT( id_set_pts, NF90_GLOBAL, 'title', & 5079 5086 TRIM( run_description_header ) ) 5080 5087 CALL netcdf_handle_error( 'netcdf_define_header', 396 ) … … 5173 5180 5174 5181 IF ( TRIM( var_list ) /= TRIM( var_list_old ) ) THEN 5175 message_string = 'netCDF file for particle time series ' // &5176 'from previous run found,' // &5177 ' & but this file cannot be extended due to' //&5178 ' variable mismatch.' // &5179 ' &New file is created instead.'5182 message_string = 'netCDF file for particle time series ' // & 5183 'from previous run found,' // & 5184 ' but this file cannot be extended due to' // & 5185 ' variable mismatch.' // & 5186 ' New file is created instead.' 5180 5187 CALL message( 'define_netcdf_header', 'PA0267', 0, 1, 0, 6, 0 ) 5181 5188 extend = .FALSE. … … 5207 5214 5208 5215 IF ( last_time_coordinate(1) >= simulated_time ) THEN 5209 message_string = 'netCDF file for particle time series ' // &5210 'from previous run found,' // &5211 ' &but this file cannot be extended becaus' //&5212 'e the current output time' // &5213 ' &is less or equal than the last output t' //&5214 'ime on this file.' // &5215 ' &New file is created instead.'5216 message_string = 'netCDF file for particle time series ' // & 5217 'from previous run found,' // & 5218 ' but this file cannot be extended becaus' // & 5219 'e the current output time' // & 5220 ' is less or equal than the last output t' // & 5221 'ime on this file.' // & 5222 ' New file is created instead.' 5216 5223 CALL message( 'define_netcdf_header', 'PA0268', 0, 1, 0, 6, 0 ) 5217 5224 dopts_time_count = 0 … … 5255 5262 nc_stat = NF90_REDEF( id_set_pts ) 5256 5263 CALL netcdf_handle_error( 'netcdf_define_header', 443 ) 5257 nc_stat = NF90_PUT_ATT( id_set_pts, NF90_GLOBAL, 'title', &5264 nc_stat = NF90_PUT_ATT( id_set_pts, NF90_GLOBAL, 'title', & 5258 5265 TRIM( run_description_header ) ) 5259 5266 CALL netcdf_handle_error( 'netcdf_define_header', 411 ) 5260 5267 nc_stat = NF90_ENDDEF( id_set_pts ) 5261 5268 CALL netcdf_handle_error( 'netcdf_define_header', 444 ) 5262 message_string = 'netCDF file for particle time series ' // &5263 'from previous run found.' // &5264 ' &This file will be extended.'5269 message_string = 'netCDF file for particle time series ' // & 5270 'from previous run found.' // & 5271 ' This file will be extended.' 5265 5272 CALL message( 'netcdf_define_header', 'PA0269', 0, 0, 0, 6, 0 ) 5266 5273 … … 5355 5362 message_string = 'netCDF file for flight time series ' // & 5356 5363 'from previous run found,' // & 5357 ' & but this file cannot be extended due to' //&5364 ' but this file cannot be extended due to' // & 5358 5365 ' variable mismatch.' // & 5359 ' &New file is created instead.'5366 ' New file is created instead.' 5360 5367 CALL message( 'define_netcdf_header', 'PA0257', 0, 1, 0, 6, 0 ) 5361 5368 extend = .FALSE. … … 5371 5378 CALL netcdf_handle_error( 'netcdf_define_header', 261 ) 5372 5379 5373 nc_stat = NF90_INQUIRE_VARIABLE( id_set_fl, id_var_time_fl, &5380 nc_stat = NF90_INQUIRE_VARIABLE( id_set_fl, id_var_time_fl, & 5374 5381 dimids = id_dim_time_old ) 5375 5382 CALL netcdf_handle_error( 'netcdf_define_header', 262 ) 5376 5383 id_dim_time_fl = id_dim_time_old(1) 5377 5384 5378 nc_stat = NF90_INQUIRE_DIMENSION( id_set_fl, id_dim_time_fl, &5385 nc_stat = NF90_INQUIRE_DIMENSION( id_set_fl, id_dim_time_fl, & 5379 5386 len = dofl_time_count ) 5380 5387 CALL netcdf_handle_error( 'netcdf_define_header', 263 ) … … 5387 5394 5388 5395 IF ( last_time_coordinate(1) >= simulated_time ) THEN 5389 message_string = 'netCDF file for flight-time series ' // &5390 'from previous run found,' // &5391 ' &but this file cannot be extended becaus' //&5392 'e the current output time' // &5393 ' &is less or equal than the last output t' //&5394 'ime on this file.' // &5395 ' &New file is created instead.'5396 message_string = 'netCDF file for flight-time series ' // & 5397 'from previous run found,' // & 5398 ' but this file cannot be extended becaus' // & 5399 'e the current output time' // & 5400 ' is less or equal than the last output t' // & 5401 'ime on this file.' // & 5402 ' New file is created instead.' 5396 5403 CALL message( 'define_netcdf_header', 'PA0258', 0, 1, 0, 6, 0 ) 5397 5404 dofl_time_count = 0 … … 5441 5448 message_string = 'netCDF file for flight-time series ' // & 5442 5449 'from previous run found.' // & 5443 ' &This file will be extended.'5450 ' This file will be extended.' 5444 5451 CALL message( 'define_netcdf_header', 'PA0259', 0, 0, 0, 6, 0 ) 5445 5452 -
palm/trunk/SOURCE/parin.f90
r2995 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! z_max_do2d removed, error messages revised 28 ! 29 ! 2995 2018-04-19 12:13:16Z Giersch 27 30 ! time_since_reference_point must be calculated/initialized before the first 28 31 ! call of functions related to the radiation model which occur in … … 639 642 skip_time_do2d_xy, skip_time_do2d_xz, skip_time_do2d_yz, & 640 643 skip_time_do3d, skip_time_domask, synchronous_exchange, & 641 termination_time_needed, vnest_start_time , z_max_do2d644 termination_time_needed, vnest_start_time 642 645 643 646 NAMELIST /runtime_parameters/ averaging_interval, averaging_interval_pr, & … … 660 663 skip_time_do2d_xy, skip_time_do2d_xz, skip_time_do2d_yz, & 661 664 skip_time_do3d, skip_time_domask, synchronous_exchange, & 662 termination_time_needed, vnest_start_time , z_max_do2d665 termination_time_needed, vnest_start_time 663 666 664 667 NAMELIST /envpar/ batch_job, host, local_dvrserver_running, & … … 669 672 ! 670 673 !-- First read values of environment variables (this NAMELIST file is 671 !-- generated by mrun)674 !-- generated by palmrun) 672 675 CALL location_message( 'reading environment parameters from ENVPAR', .FALSE. ) 673 676 … … 676 679 IF ( ioerr /= 0 ) THEN 677 680 message_string = 'local file ENVPAR not found' // & 678 ' &some variables for steering may not be properly set'681 ' some variables for steering may not be properly set' 679 682 CALL message( 'parin', 'PA0276', 0, 1, 0, 6, 0 ) 680 683 ELSE … … 682 685 IF ( ioerr < 0 ) THEN 683 686 message_string = 'no envpar-NAMELIST found in local file ' // & 684 'ENVPAR &some variables for steering may ' //&687 'ENVPAR or some variables for steering may ' // & 685 688 'not be properly set' 686 689 CALL message( 'parin', 'PA0278', 0, 1, 0, 6, 0 ) 687 690 ELSEIF ( ioerr > 0 ) THEN 688 691 message_string = 'errors in local file ENVPAR' // & 689 ' &some variables for steering may not be properly set'692 ' some variables for steering may not be properly set' 690 693 CALL message( 'parin', 'PA0277', 0, 1, 0, 6, 0 ) 691 694 ENDIF … … 742 745 GOTO 12 743 746 744 10 message_string = 'errors in initialization_parameters &or no ' // &745 ' initialization_parameters-namelist ' //&747 10 message_string = 'errors in &initialization_parameters or no ' // & 748 '&initialization_parameters-namelist ' // & 746 749 'found (CRAY-machines only)' 747 750 CALL message( 'parin', 'PA0271', 1, 2, 0, 6, 0 ) … … 750 753 READ ( 11, inipar, ERR=13, END=14 ) 751 754 752 message_string = 'namelist inipar is deprecated and will be ' //&753 'removed in near future. Please &use namelist ' //&754 ' initialization_parameters instead'755 CALL message( 'parin', 'PA0 272', 0, 1, 0, 6, 0 )755 message_string = 'namelist &inipar is deprecated and will be ' // & 756 'removed in near future. Please use namelist ' // & 757 '&initialization_parameters instead' 758 CALL message( 'parin', 'PA0017', 0, 1, 0, 6, 0 ) 756 759 757 760 GOTO 12 758 761 759 13 message_string = 'errors in inipar &or no inipar-namelist ' // &762 13 message_string = 'errors in inipar or no inipar-namelist ' // & 760 763 'found (CRAY-machines only)' 761 764 CALL message( 'parin', 'PA0271', 1, 2, 0, 6, 0 ) 762 765 763 14 message_string = 'no initialization_parameters-namelist found'766 14 message_string = 'no &initialization_parameters-namelist found' 764 767 CALL message( 'parin', 'PA0272', 1, 2, 0, 6, 0 ) 765 768 -
palm/trunk/SOURCE/plant_canopy_model_mod.f90
r3022 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error message revised 28 ! 29 ! 3022 2018-05-18 11:12:35Z suehring 27 30 ! Bugfix in allocation of transpiration rate 28 31 ! … … 359 362 IF ( canopy_drag_coeff == 0.0_wp ) THEN 360 363 message_string = 'plant_canopy = .TRUE. requires a non-zero drag '// & 361 'coefficient &given value is canopy_drag_coeff = 0.0'364 'coefficient, given value is canopy_drag_coeff = 0.0' 362 365 CALL message( 'pcm_check_parameters', 'PA0041', 1, 2, 0, 6, 0 ) 363 366 ENDIF 364 367 365 IF ( ( alpha_lad /= 9999999.9_wp .AND. beta_lad == 9999999.9_wp ) 368 IF ( ( alpha_lad /= 9999999.9_wp .AND. beta_lad == 9999999.9_wp ) .OR.& 366 369 beta_lad /= 9999999.9_wp .AND. alpha_lad == 9999999.9_wp ) THEN 367 370 message_string = 'using the beta function for the construction ' // & -
palm/trunk/SOURCE/pmc_interface_mod.f90
r3022 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error messages revised 28 ! 29 ! 3022 2018-05-18 11:12:35Z suehring 27 30 ! Minor fix - working precision added to real number 28 31 ! … … 4107 4110 IF ( end_time /= end_time_root ) THEN 4108 4111 WRITE( message_string, * ) 'mismatch between root model and ', & 4109 'child settings & end_time(root) = ', end_time_root,&4110 ' & end_time(child) = ', end_time, ' & child value is set',&4112 'child settings: end_time(root) = ', end_time_root, & 4113 ' end_time(child) = ', end_time, ' child value is set', & 4111 4114 ' to root value' 4112 4115 CALL message( 'pmci_check_setting_mismatches', 'PA0419', 0, 1, 0, 6, & … … 4123 4126 IF ( restart_time /= restart_time_root ) THEN 4124 4127 WRITE( message_string, * ) 'mismatch between root model and ', & 4125 'child settings & restart_time(root) = ', restart_time_root,&4126 ' & restart_time(child) = ', restart_time, ' & child ',&4128 'child settings: restart_time(root) = ', restart_time_root, & 4129 ' restart_time(child) = ', restart_time, ' child ', & 4127 4130 'value is set to root value' 4128 4131 CALL message( 'pmci_check_setting_mismatches', 'PA0419', 0, 1, 0, 6, & … … 4139 4142 IF ( dt_restart /= dt_restart_root ) THEN 4140 4143 WRITE( message_string, * ) 'mismatch between root model and ', & 4141 'child settings & dt_restart(root) = ', dt_restart_root,&4142 ' & dt_restart(child) = ', dt_restart, ' & child ',&4144 'child settings: dt_restart(root) = ', dt_restart_root, & 4145 ' dt_restart(child) = ', dt_restart, ' child ', & 4143 4146 'value is set to root value' 4144 4147 CALL message( 'pmci_check_setting_mismatches', 'PA0419', 0, 1, 0, 6, & … … 4155 4158 IF ( time_restart /= time_restart_root ) THEN 4156 4159 WRITE( message_string, * ) 'mismatch between root model and ', & 4157 'child settings &time_restart(root) = ', time_restart_root, &4158 ' & time_restart(child) = ', time_restart, ' & child ',&4160 'child settings: time_restart(root) = ', time_restart_root, & 4161 ' time_restart(child) = ', time_restart, ' child ', & 4159 4162 'value is set to root value' 4160 4163 CALL message( 'pmci_check_setting_mismatches', 'PA0419', 0, 1, 0, 6, & -
palm/trunk/SOURCE/radiation_model_mod.f90
r3026 r3045 28 28 ! ----------------- 29 29 ! $Id$ 30 ! Error message revised 31 ! 32 ! 3026 2018-05-22 10:30:53Z schwenkel 30 33 ! Changed the name specific humidity to mixing ratio, since we are computing 31 34 ! mixing ratios. … … 1332 1335 IF ( albedo_type == 0 .AND. albedo == 9999999.9_wp .AND. & 1333 1336 radiation_scheme == 'clear-sky') THEN 1334 message_string = 'radiation_scheme = "clear-sky" in combination' 1335 'with albedo_type = 0 requires setting of albedo'//&1336 ' /= 9999999.9'1337 message_string = 'radiation_scheme = "clear-sky" in combination'//& 1338 'with albedo_type = 0 requires setting of'// & 1339 'albedo /= 9999999.9' 1337 1340 CALL message( 'check_parameters', 'PA0410', 1, 2, 0, 6, 0 ) 1338 1341 ENDIF -
palm/trunk/SOURCE/read_restart_data_mod.f90
r3004 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error messages revised 28 ! 29 ! 3004 2018-04-27 12:33:25Z Giersch 27 30 ! precipitation_rate_av removed 28 31 ! … … 164 167 binary_version_global = '4.7' 165 168 IF ( TRIM( version_on_file ) /= TRIM( binary_version_global ) ) THEN 166 WRITE( message_string, * ) 'version mismatch concerning control ',&167 ' variables',&168 ' &version on file = "', &169 WRITE( message_string, * ) 'version mismatch concerning ', & 170 'binary_version_global:', & 171 ' version on file = "', & 169 172 TRIM( version_on_file ), '"', & 170 ' &version on program = "', &173 ' version on program = "', & 171 174 TRIM( binary_version_global ), '"' 172 175 CALL message( 'rrd_global', 'PA0296', 1, 2, 0, 6, 0 ) … … 887 890 IF ( nz_on_file /= nz ) THEN 888 891 WRITE( message_string, * ) 'mismatch concerning number of ', & 889 'gridpoints along z ',&890 ' &nz on file = "', nz_on_file, '"', &891 ' &nz from run = "', nz, '"'892 'gridpoints along z:', & 893 ' nz on file = "', nz_on_file, '"', & 894 ' nz from run = "', nz, '"' 892 895 CALL message( 'rrd_read_parts_of_global', 'PA0304', 1, 2, 0, 6, 0 ) 893 896 ENDIF … … 904 907 WRITE( message_string, * ) 'number of user profiles on res', & 905 908 'tart data file differs from the ', & 906 'current run &max_pr_user on file = "',&909 'current run: max_pr_user on file = "',& 907 910 max_pr_user_on_file, '"', & 908 ' &max_pr_user from run = "', &911 ' max_pr_user from run = "', & 909 912 max_pr_user, '"' 910 913 CALL message( 'rrd_read_parts_of_global', 'PA0306', 0, 0, 0, 6, 0 ) … … 924 927 IF ( statistic_regions_on_file /= statistic_regions ) THEN 925 928 WRITE( message_string, * ) 'statistic regions on restart data file ',& 926 'differ from the current run ',&927 ' &statistic regions on file = "', &929 'differ from the current run:', & 930 ' statistic regions on file = "', & 928 931 statistic_regions_on_file, '"', & 929 ' &statistic regions from run = "', &932 ' statistic regions from run = "', & 930 933 statistic_regions, '"', & 931 ' &statistic data may be lost!'934 ' statistic data may be lost!' 932 935 CALL message( 'rrd_read_parts_of_global', 'PA0308', 0, 1, 0, 6, 0 ) 933 936 tmp_sr = MIN( statistic_regions_on_file, statistic_regions ) … … 949 952 IF ( average_count_pr /= 0 ) THEN 950 953 WRITE( message_string, * ) 'inflow profiles not ', & 951 'temporally averaged. &Averaging will be ', &954 'temporally averaged. Averaging will be ', & 952 955 'done now using', average_count_pr, & 953 956 ' samples.' … … 1242 1245 THEN 1243 1246 WRITE( message_string, * ) 'number of PEs or virtual PE-grid changed ', & 1244 'in restart run &PE', myid, ' will read from files ', &1247 'in restart run PE', myid, ' will read from files ', & 1245 1248 file_list(1:files_to_be_opened) 1246 1249 CALL message( 'rrd_local', 'PA0285', 0, 0, 0, 6, 0 ) … … 1271 1274 binary_version_local = '4.7' 1272 1275 IF ( TRIM( version_on_file ) /= TRIM( binary_version_local ) ) THEN 1273 WRITE( message_string, * ) 'version mismatch concerning data ',&1274 ' from prior run',&1275 ' &version on file = "', TRIM( version_on_file ), '"', &1276 ' &version in program = "', TRIM( binary_version_local ), '"'1276 WRITE( message_string, * ) 'version mismatch concerning ', & 1277 'binary_version_local:', & 1278 ' version on file = "', TRIM( version_on_file ), '"', & 1279 ' version in program = "', TRIM( binary_version_local ), '"' 1277 1280 CALL message( 'rrd_local', 'PA0286', 1, 2, 0, 6, 0 ) 1278 1281 ENDIF … … 1287 1290 WRITE( message_string, * ) 'problem with index bound nxl on ', & 1288 1291 'restart file "', myid_char, '"', & 1289 ' &nxl = ', nxl_on_file, ' but it should be', &1290 ' &= ', hor_index_bounds_previous_run(1,j), &1291 ' &from the index bound information array'1292 ' nxl = ', nxl_on_file, ' but it should be', & 1293 ' = ', hor_index_bounds_previous_run(1,j), & 1294 ' from the index bound information array' 1292 1295 CALL message( 'rrd_local', 'PA0287', 2, 2, -1, 6, 1 ) 1293 1296 ENDIF … … 1296 1299 WRITE( message_string, * ) 'problem with index bound nxr on ', & 1297 1300 'restart file "', myid_char, '"' , & 1298 ' &nxr = ', nxr_on_file, ' but it should be', &1299 ' &= ', hor_index_bounds_previous_run(2,j), &1300 ' &from the index bound information array'1301 ' nxr = ', nxr_on_file, ' but it should be', & 1302 ' = ', hor_index_bounds_previous_run(2,j), & 1303 ' from the index bound information array' 1301 1304 CALL message( 'rrd_local', 'PA0288', 2, 2, -1, 6, 1 ) 1302 1305 … … 1306 1309 WRITE( message_string, * ) 'problem with index bound nys on ', & 1307 1310 'restart file "', myid_char, '"', & 1308 ' &nys = ', nys_on_file, ' but it should be', &1309 ' &= ', hor_index_bounds_previous_run(3,j), &1310 '&from the index bound information array'1311 ' nys = ', nys_on_file, ' but it should be', & 1312 ' = ', hor_index_bounds_previous_run(3,j), & 1313 ' from the index bound information array' 1311 1314 CALL message( 'rrd_local', 'PA0289', 2, 2, -1, 6, 1 ) 1312 1315 ENDIF … … 1315 1318 WRITE( message_string, * ) 'problem with index bound nyn on ', & 1316 1319 'restart file "', myid_char, '"', & 1317 ' &nyn = ', nyn_on_file, ' but it should be', &1318 ' &= ', hor_index_bounds_previous_run(4,j), &1319 ' &from the index bound information array'1320 ' nyn = ', nyn_on_file, ' but it should be', & 1321 ' = ', hor_index_bounds_previous_run(4,j), & 1322 ' from the index bound information array' 1320 1323 CALL message( 'rrd_local', 'PA0290', 2, 2, -1, 6, 1 ) 1321 1324 ENDIF … … 1323 1326 IF ( nzb_on_file /= nzb ) THEN 1324 1327 WRITE( message_string, * ) 'mismatch between actual data and data ', & 1325 ' &from prior run on PE ', myid,&1326 ' &nzb on file = ', nzb_on_file, &1327 ' &nzb = ', nzb1328 'from prior run on PE ', myid, & 1329 ' nzb on file = ', nzb_on_file, & 1330 ' nzb = ', nzb 1328 1331 CALL message( 'rrd_local', 'PA0291', 1, 2, 0, 6, 0 ) 1329 1332 ENDIF … … 1331 1334 IF ( nzt_on_file /= nzt ) THEN 1332 1335 WRITE( message_string, * ) 'mismatch between actual data and data ', & 1333 ' &from prior run on PE ', myid,&1334 ' &nzt on file = ', nzt_on_file, &1335 ' &nzt = ', nzt1336 'from prior run on PE ', myid, & 1337 ' nzt on file = ', nzt_on_file, & 1338 ' nzt = ', nzt 1336 1339 CALL message( 'rrd_local', 'PA0292', 1, 2, 0, 6, 0 ) 1337 1340 ENDIF -
palm/trunk/SOURCE/spectra_mod.f90
r2956 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error message revised 28 ! 29 ! 2956 2018-04-10 11:01:03Z Giersch 27 30 ! spectrum_x and spectrum_y will only be allocated if they are not allocated 28 31 ! before (e.g. in case of restart runs) … … 472 475 473 476 message_string = 'non-cyclic lateral boundaries along x do'// & 474 ' not &allow calculation of spectra along x'477 ' not allow calculation of spectra along x' 475 478 CALL message( 'calc_spectra', 'PA0160', 1, 2, 0, 6, 0 ) 476 479 ENDIF … … 488 491 #else 489 492 message_string = 'sorry, calculation of spectra in non paral' // & 490 'lel mode &is still not realized'493 'lel mode is still not realized' 491 494 CALL message( 'calc_spectra', 'PA0161', 1, 2, 0, 6, 0 ) 492 495 #endif … … 504 507 IF ( myid == 0 ) THEN 505 508 message_string = 'non-cyclic lateral boundaries along y' // & 506 ' do not & allow calculation of spectr' //&507 ' aalong y'509 ' do not allow calculation of spectra' // & 510 ' along y' 508 511 CALL message( 'calc_spectra', 'PA0162', 1, 2, 0, 6, 0 ) 509 512 ENDIF … … 518 521 #else 519 522 message_string = 'sorry, calculation of spectra in non paral' // & 520 'lel mode &is still not realized'523 'lel mode is still not realized' 521 524 CALL message( 'calc_spectra', 'PA0161', 1, 2, 0, 6, 0 ) 522 525 #endif -
palm/trunk/SOURCE/subsidence_mod.f90
r2718 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error message revised 28 ! 29 ! 2718 2018-01-02 08:49:38Z maronga 27 30 ! Corrected "Former revisions" section 28 31 ! … … 145 148 146 149 IF ( ocean ) THEN 147 message_string = 'Applying large scale vertical motion is not ' // &150 message_string = 'Applying large scale vertical motion is not ' // & 148 151 'allowed for ocean runs' 149 152 CALL message( 'init_w_subsidence', 'PA0324', 2, 2, 0, 6, 0 ) -
palm/trunk/SOURCE/surface_coupler.f90
r2718 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error message revised 28 ! 29 ! 2718 2018-01-02 08:49:38Z maronga 27 30 ! Corrected "Former revisions" section 28 31 ! … … 167 170 168 171 IF ( terminate_coupled_remote > 0 ) THEN 169 WRITE( message_string, * ) 'remote model "', &170 TRIM( coupling_mode_remote ), &171 '" terminated', &172 ' &with terminate_coupled_remote = ',&173 terminate_coupled_remote, &174 ' &local model "', TRIM( coupling_mode ),&175 '" has', &176 ' &terminate_coupled = ',&172 WRITE( message_string, * ) 'remote model "', & 173 TRIM( coupling_mode_remote ), & 174 '" terminated', & 175 ' with terminate_coupled_remote = ', & 176 terminate_coupled_remote, & 177 ' local model "', TRIM( coupling_mode ), & 178 '" has', & 179 ' terminate_coupled = ', & 177 180 terminate_coupled 178 181 CALL message( 'surface_coupler', 'PA0310', 1, 2, 0, 6, 0 ) -
palm/trunk/SOURCE/surface_layer_fluxes_mod.f90
r2766 r3045 26 26 ! ----------------- 27 27 ! $Id$ 28 ! Error message revised 29 ! 30 ! 2766 2018-01-22 17:17:47Z kanani 28 31 ! Removed preprocessor directive __chem 29 32 ! … … 833 836 'combination with a prescribed roughness ' // & 834 837 'heterogeneity' 835 CALL message( 'surface_layer_fluxes', 'PA0 417', 1, 2, 0, 6, 0 )838 CALL message( 'surface_layer_fluxes', 'PA0116', 1, 2, 0, 6, 0 ) 836 839 ENDIF 837 840 -
palm/trunk/SOURCE/synthetic_turbulence_generator_mod.f90
r3044 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error message revised 28 ! 29 ! 3044 2018-05-25 10:59:41Z gronemeier 27 30 ! Add missing variable descriptions 28 31 ! … … 343 346 IF ( bc_lr /= 'dirichlet/radiation' ) THEN 344 347 message_string = 'Using synthetic turbulence generator ' // & 345 'requires &bc_lr = "dirichlet/radiation"'348 'requires bc_lr = "dirichlet/radiation"' 346 349 CALL message( 'stg_check_parameters', 'PA0035', 1, 2, 0, 6, 0 ) 347 350 ENDIF 348 351 IF ( bc_ns /= 'cyclic' ) THEN 349 352 message_string = 'Using synthetic turbulence generator ' // & 350 'requires &bc_ns = "cyclic"'353 'requires bc_ns = "cyclic"' 351 354 CALL message( 'stg_check_parameters', 'PA0037', 1, 2, 0, 6, 0 ) 352 355 ENDIF -
palm/trunk/SOURCE/temperton_fft_mod.f90
r2300 r3045 9 9 ! ----------------- 10 10 ! $Id$ 11 ! Error message revised 12 ! 13 ! 2300 2017-06-29 13:31:14Z raasch 11 14 ! NEC related CPP directives removed 12 15 ! … … 2161 2164 2162 2165 ! WRITE (nout,'(A,I4,A)') ' n =',n,' - Contains illegal factors' 2163 message_string = 'number of gridpoints along x or/and y ' // &2164 'contain illegal factors' // &2165 ' &only factors 8,6,5,4,3,2are allowed'2166 message_string = 'number of gridpoints along x or/and y ' // & 2167 'contain illegal factors' // & 2168 ' only factors 2, 3, 5 are allowed' 2166 2169 CALL message( 'temperton_fft', 'PA0311', 1, 2, 0, 6, 0 ) 2167 2170 -
palm/trunk/SOURCE/timestep.f90
r2718 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error message revised 28 ! 29 ! 2718 2018-01-02 08:49:38Z maronga 27 30 ! Corrected "Former revisions" section 28 31 ! … … 330 333 331 334 WRITE( message_string, * ) 'Time step has reached minimum limit.', & 332 ' &dt = ', dt_3d, ' s Simulation is terminated.', &333 ' &old_dt = ', old_dt, ' s', &334 ' &dt_u = ', dt_u, ' s', &335 ' &dt_v = ', dt_v, ' s', &336 ' &dt_w = ', dt_w, ' s', &337 ' &dt_diff = ', dt_diff, ' s', &338 ' &u_max = ', u_max, ' m/s k=', u_max_ijk(1), &335 ' dt = ', dt_3d, ' s Simulation is terminated.', & 336 ' old_dt = ', old_dt, ' s', & 337 ' dt_u = ', dt_u, ' s', & 338 ' dt_v = ', dt_v, ' s', & 339 ' dt_w = ', dt_w, ' s', & 340 ' dt_diff = ', dt_diff, ' s', & 341 ' u_max = ', u_max, ' m/s k=', u_max_ijk(1), & 339 342 ' j=', u_max_ijk(2), ' i=', u_max_ijk(3), & 340 ' &v_max = ', v_max, ' m/s k=', v_max_ijk(1), &343 ' v_max = ', v_max, ' m/s k=', v_max_ijk(1), & 341 344 ' j=', v_max_ijk(2), ' i=', v_max_ijk(3), & 342 ' &w_max = ', w_max, ' m/s k=', w_max_ijk(1), &345 ' w_max = ', w_max, ' m/s k=', w_max_ijk(1), & 343 346 ' j=', w_max_ijk(2), ' i=', w_max_ijk(3) 344 347 CALL message( 'timestep', 'PA0312', 0, 1, 0, 6, 0 ) -
palm/trunk/SOURCE/turbulence_closure_mod.f90
r3014 r3045 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Error message revised 28 ! 29 ! 3014 2018-05-09 08:42:38Z maronga 27 30 ! Bugfix: nzb_do and nzt_do were not used for 3d data output 28 31 ! … … 1212 1215 1213 1216 DO k = 1, nzt 1214 IF ( l_grid(k) > 1.5_wp * dx * wall_adjustment_factor .OR. &1217 IF ( l_grid(k) > 1.5_wp * dx * wall_adjustment_factor .OR. & 1215 1218 l_grid(k) > 1.5_wp * dy * wall_adjustment_factor ) THEN 1216 WRITE( message_string, * ) 'grid anisotropy exceeds ', & 1217 'threshold given by only local', & 1218 ' &horizontal reduction of near_wall ', & 1219 'mixing length l_wall', & 1220 ' &starting from height level k = ', k, '.' 1219 WRITE( message_string, * ) 'grid anisotropy exceeds ', & 1220 'threshold given by only local', & 1221 ' horizontal reduction of near_wall ', & 1222 'mixing length l_wall', & 1223 ' starting from height level k = ', k, & 1224 '.' 1221 1225 CALL message( 'init_grid', 'PA0202', 0, 1, 0, 6, 0 ) 1222 1226 EXIT -
palm/trunk/SOURCE/urban_surface_mod.f90
r3029 r3045 28 28 ! ----------------- 29 29 ! $Id$ 30 ! Error message added 31 ! 32 ! 3029 2018-05-23 12:19:17Z raasch 30 33 ! bugfix: close unit 151 instead of 90 31 34 ! … … 320 323 USE radiation_model_mod, & 321 324 ONLY: albedo_type, radiation_interaction, calc_zenith, zenith, & 322 rad _sw_in, rad_lw_in, rad_sw_out, rad_lw_out,&325 radiation, rad_sw_in, rad_lw_in, rad_sw_out, rad_lw_out, & 323 326 sigma_sb, solar_constant, sun_direction, sun_dir_lat, & 324 327 sun_dir_lon, & … … 2303 2306 'bc_pt_b = "dirichlet" and '// & 2304 2307 'bc_q_b = "dirichlet"' 2305 CALL message( ' check_parameters', 'PA0590', 1, 2, 0, 6, 0 )2308 CALL message( 'usm_check_parameters', 'PA0590', 1, 2, 0, 6, 0 ) 2306 2309 ENDIF 2307 2310 … … 2309 2312 message_string = 'urban surface model requires '// & 2310 2313 'constant_flux_layer = .T.' 2311 CALL message( 'check_parameters', 'PA0591', 1, 2, 0, 6, 0 ) 2314 CALL message( 'usm_check_parameters', 'PA0084', 1, 2, 0, 6, 0 ) 2315 ENDIF 2316 2317 IF ( .NOT. radiation ) THEN 2318 message_string = 'urban surface model requires '// & 2319 'the radiation model to be switched on' 2320 CALL message( 'usm_check_parameters', 'PA0084', 1, 2, 0, 6, 0 ) 2312 2321 ENDIF 2313 2322 ! -
palm/trunk/SOURCE/vertical_nesting_mod.f90
r2718 r3045 26 26 ! ----------------- 27 27 ! $Id$ 28 ! Error message revised 29 ! 30 ! 2718 2018-01-02 08:49:38Z maronga 28 31 ! Corrected "Former revisions" section 29 32 ! … … 267 270 268 271 IF ( myid == 0) THEN 269 CALL MPI_SENDRECV( terminate_coupled, 1, MPI_INTEGER, &270 target_id, 0, &271 terminate_coupled_remote, 1, MPI_INTEGER, &272 target_id, 0, &272 CALL MPI_SENDRECV( terminate_coupled, 1, MPI_INTEGER, & 273 target_id, 0, & 274 terminate_coupled_remote, 1, MPI_INTEGER, & 275 target_id, 0, & 273 276 comm_inter, status, ierr ) 274 277 ENDIF … … 277 280 278 281 IF ( terminate_coupled_remote > 0 ) THEN 279 WRITE( message_string, * ) 'remote model "', 280 TRIM( coupling_mode_remote ), &281 '" terminated', &282 ' &with terminate_coupled_remote = ',&283 terminate_coupled_remote, &284 ' &local model "', TRIM( coupling_mode ),&285 '" has', &286 ' &terminate_coupled = ',&282 WRITE( message_string, * ) 'remote model "', & 283 TRIM( coupling_mode_remote ), & 284 '" terminated', & 285 ' with terminate_coupled_remote = ', & 286 terminate_coupled_remote, & 287 ' local model "', TRIM( coupling_mode ), & 288 '" has', & 289 ' terminate_coupled = ', & 287 290 terminate_coupled 288 291 CALL message( 'vnest_init_fine', 'PA0310', 1, 2, 0, 6, 0 ) … … 2777 2780 2778 2781 IF ( terminate_coupled_remote > 0 ) THEN 2779 WRITE( message_string, * ) 'remote model "', 2780 TRIM( coupling_mode_remote ), &2781 '" terminated', &2782 ' &with terminate_coupled_remote = ',&2783 terminate_coupled_remote, &2784 ' &local model "', TRIM( coupling_mode ),&2785 '" has', &2786 ' &terminate_coupled = ',&2782 WRITE( message_string, * ) 'remote model "', & 2783 TRIM( coupling_mode_remote ), & 2784 '" terminated', & 2785 ' with terminate_coupled_remote = ', & 2786 terminate_coupled_remote, & 2787 ' local model "', TRIM( coupling_mode ), & 2788 '" has', & 2789 ' terminate_coupled = ', & 2787 2790 terminate_coupled 2788 2791 CALL message( 'vnest_anterpolate', 'PA0310', 1, 2, 0, 6, 0 ) … … 3315 3318 3316 3319 IF ( myid == 0) THEN 3317 CALL MPI_SENDRECV( terminate_coupled, 1, MPI_INTEGER, &3318 target_id, 0, &3319 terminate_coupled_remote, 1, MPI_INTEGER, &3320 target_id, 0, &3320 CALL MPI_SENDRECV( terminate_coupled, 1, MPI_INTEGER, & 3321 target_id, 0, & 3322 terminate_coupled_remote, 1, MPI_INTEGER, & 3323 target_id, 0, & 3321 3324 comm_inter, status, ierr ) 3322 3325 ENDIF 3323 CALL MPI_BCAST( terminate_coupled_remote, 1, MPI_INTEGER, 0, comm2d, &3326 CALL MPI_BCAST( terminate_coupled_remote, 1, MPI_INTEGER, 0, comm2d, & 3324 3327 ierr ) 3325 3328 3326 3329 IF ( terminate_coupled_remote > 0 ) THEN 3327 WRITE( message_string, * ) 'remote model "', 3328 TRIM( coupling_mode_remote ), &3329 '" terminated', &3330 ' &with terminate_coupled_remote = ',&3331 terminate_coupled_remote, &3332 ' &local model "', TRIM( coupling_mode ), &3333 '" has', &3334 ' &terminate_coupled = ',&3330 WRITE( message_string, * ) 'remote model "', & 3331 TRIM( coupling_mode_remote ), & 3332 '" terminated', & 3333 ' with terminate_coupled_remote = ', & 3334 terminate_coupled_remote, & 3335 ' local model "', TRIM( coupling_mode ), & 3336 '" has', & 3337 ' terminate_coupled = ', & 3335 3338 terminate_coupled 3336 3339 CALL message( 'vnest_anterpolate_e', 'PA0310', 1, 2, 0, 6, 0 )
Note: See TracChangeset
for help on using the changeset viewer.