Changeset 3057 for palm/trunk
- Timestamp:
- Jun 5, 2018 9:03:41 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_pegrid.f90
r3049 r3057 25 25 ! ----------------- 26 26 ! $Id$ 27 ! bugfix: check that nz is even in case that optimized multigrid is used 28 ! 29 ! 3049 2018-05-29 13:52:36Z Giersch 27 30 ! Error messages revised 28 31 ! … … 911 914 IF ( TRIM( psolver ) /= 'multigrid_noopt' ) THEN 912 915 IF ( MOD( k, 2 ) /= 0 ) mg_levels_z = mg_levels_z - 1 916 ! 917 !-- An odd value of nz does not work. The finest level must have an even 918 !-- value. 919 IF ( mg_levels_z == 0 ) THEN 920 message_string = 'optimized multigrid method requires nz to be even' 921 CALL message( 'init_pegrid', 'PA0028', 1, 2, 0, 6, 0 ) 922 ENDIF 913 923 ENDIF 914 924 … … 949 959 950 960 ELSE 961 951 962 mg_switch_to_pe0_level_l = 0 952 963 maximum_grid_level_l = maximum_grid_level
Note: See TracChangeset
for help on using the changeset viewer.