source: palm/trunk/SOURCE/timestep_scheme_steering.f90 @ 1036

Last change on this file since 1036 was 1036, checked in by raasch, 9 years ago

code has been put under the GNU General Public License (v3)

  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1 SUBROUTINE timestep_scheme_steering
2
3!--------------------------------------------------------------------------------!
4! This file is part of PALM.
5!
6! PALM is free software: you can redistribute it and/or modify it under the terms
7! of the GNU General Public License as published by the Free Software Foundation,
8! either version 3 of the License, or (at your option) any later version.
9!
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 FOR
12! A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
13!
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/>.
16!
17! Copyright 1997-2012  Leibniz University Hannover
18!--------------------------------------------------------------------------------!
19!
20! Current revisions:
21! ------------------
22!
23!
24! Former revisions:
25! -----------------
26! $Id: timestep_scheme_steering.f90 1036 2012-10-22 13:43:42Z raasch $
27!
28! 1001 2012-09-13 14:08:46Z raasch
29! all actions concerning leapfrog scheme removed
30!
31! 673 2011-01-18 16:19:48Z suehring
32! No pressure term during time integration (tsc(4)=0.0).
33!
34! RCS Log replace by Id keyword, revision history cleaned up
35!
36! Revision 1.2  2005/03/26 21:17:06  raasch
37! No pressure term for Runge-Kutta-schemes (tsc(4)=0.0)
38!
39! Revision 1.1  2004/01/28 15:34:47  raasch
40! Initial revision
41!
42!
43! Description:
44! ------------
45! Depending on the timestep scheme set the steering factors for the prognostic
46! equations.
47!------------------------------------------------------------------------------!
48
49    USE control_parameters
50
51    IMPLICIT NONE
52
53
54    IF ( timestep_scheme(1:5) == 'runge' )  THEN
55!
56!--    Runge-Kutta schemes (here the factors depend on the respective
57!--    intermediate step)
58       IF ( timestep_scheme == 'runge-kutta-2' )  THEN
59          IF ( intermediate_timestep_count == 1 )  THEN
60             tsc(1:5) = (/ 1.0, 1.0,  0.0, 0.0, 0.0 /)
61          ELSE
62             tsc(1:5) = (/ 1.0, 0.5, -0.5, 0.0, 1.0 /)
63          ENDIF
64       ELSE
65          IF ( intermediate_timestep_count == 1 )  THEN
66             tsc(1:5) = (/ 1.0,   1.0/3.0,        0.0, 0.0, 0.0 /)
67          ELSEIF ( intermediate_timestep_count == 2 )  THEN
68             tsc(1:5) = (/ 1.0, 15.0/16.0, -25.0/48.0, 0.0, 0.0 /)
69          ELSE
70             tsc(1:5) = (/ 1.0,  8.0/15.0,   1.0/15.0, 0.0, 1.0 /)
71          ENDIF         
72       ENDIF
73
74    ELSEIF ( timestep_scheme == 'euler' )  THEN
75!
76!--    Euler scheme
77       tsc(1:5) = (/ 1.0, 1.0, 0.0, 0.0, 1.0 /)
78
79    ENDIF
80
81
82 END SUBROUTINE timestep_scheme_steering
Note: See TracBrowser for help on using the repository browser.