Changeset 4540 for palm/trunk/SOURCE/timestep_scheme_steering.f90
- Timestamp:
- May 18, 2020 3:23:29 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/timestep_scheme_steering.f90
r4360 r4540 1 1 !> @file timestep_scheme_steering.f90 2 !------------------------------------------------------------------------------ !2 !--------------------------------------------------------------------------------------------------! 3 3 ! This file is part of the PALM model system. 4 4 ! 5 ! PALM is free software: you can redistribute it and/or modify it under the 6 ! terms of the GNU General Public License as published by the Free Software 7 ! Foundation, either version 3 of the License, or (at your option) any later 8 ! version. 5 ! PALM is free software: you can redistribute it and/or modify it under the terms of the GNU General 6 ! Public License as published by the Free Software Foundation, either version 3 of the License, or 7 ! (at your option) any later version. 9 8 ! 10 ! PALM is distributed in the hope that it will be useful, but WITHOUT ANY 11 ! WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR12 ! A PARTICULAR PURPOSE. See the GNU GeneralPublic License for more details.9 ! PALM is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the 10 ! implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 11 ! Public License for more details. 13 12 ! 14 ! You should have received a copy of the GNU General Public License along with 15 ! PALM. If not, see<http://www.gnu.org/licenses/>.13 ! You should have received a copy of the GNU General Public License along with PALM. If not, see 14 ! <http://www.gnu.org/licenses/>. 16 15 ! 17 16 ! Copyright 1997-2020 Leibniz Universitaet Hannover 18 !------------------------------------------------------------------------------! 17 !--------------------------------------------------------------------------------------------------! 18 ! 19 19 ! 20 20 ! Current revisions: 21 ! ----------------- -21 ! ----------------- 22 22 ! 23 23 ! … … 25 25 ! ----------------- 26 26 ! $Id$ 27 ! File re-formatted to follow the PALM coding standard 28 ! 29 ! 30 ! 4360 2020-01-07 11:25:50Z suehring 27 31 ! Corrected "Former revisions" section 28 ! 32 ! 29 33 ! 3655 2019-01-07 16:51:22Z knoop 30 34 ! OpenACC port for SPEC … … 36 40 ! Description: 37 41 ! ------------ 38 !> Depending on the timestep scheme set the steering factors for the prognostic 39 !> equations. 40 !------------------------------------------------------------------------------! 42 !> Depending on the timestep scheme set the steering factors for the prognostic equations. 43 !--------------------------------------------------------------------------------------------------! 41 44 SUBROUTINE timestep_scheme_steering 42 43 45 44 USE control_parameters, & 45 ONLY: intermediate_timestep_count, timestep_scheme, tsc 46 47 USE control_parameters, & 48 ONLY: intermediate_timestep_count, & 49 timestep_scheme, & 50 tsc 46 51 47 52 USE kinds … … 52 57 IF ( timestep_scheme(1:5) == 'runge' ) THEN 53 58 ! 54 !-- Runge-Kutta schemes (here the factors depend on the respective 55 !-- intermediate step) 59 !-- Runge-Kutta schemes (here the factors depend on the respective intermediate step) 56 60 IF ( timestep_scheme == 'runge-kutta-2' ) THEN 57 61 IF ( intermediate_timestep_count == 1 ) THEN … … 62 66 ELSE 63 67 IF ( intermediate_timestep_count == 1 ) THEN 64 tsc(1:5) = (/ 1.0_wp, 1.0_wp / 3.0_wp, 68 tsc(1:5) = (/ 1.0_wp, 1.0_wp / 3.0_wp, 0.0_wp, 0.0_wp, 0.0_wp /) 65 69 ELSEIF ( intermediate_timestep_count == 2 ) THEN 66 70 tsc(1:5) = (/ 1.0_wp, 15.0_wp / 16.0_wp, -25.0_wp/48.0_wp, 0.0_wp, 0.0_wp /) 67 71 ELSE 68 72 tsc(1:5) = (/ 1.0_wp, 8.0_wp / 15.0_wp, 1.0_wp/15.0_wp, 0.0_wp, 1.0_wp /) 69 ENDIF 73 ENDIF 70 74 ENDIF 71 75
Note: See TracChangeset
for help on using the changeset viewer.