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

Last change on this file since 1258 was 1037, checked in by raasch, 12 years ago

last commit documented

  • Property svn:keywords set to Id
File size: 2.6 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 1037 2012-10-22 14:10:22Z raasch $
27!
28! 1036 2012-10-22 13:43:42Z raasch
29! code put under GPL (PALM 3.9)
30!
31! 1001 2012-09-13 14:08:46Z raasch
32! all actions concerning leapfrog scheme removed
33!
34! 673 2011-01-18 16:19:48Z suehring
35! No pressure term during time integration (tsc(4)=0.0).
36!
37! RCS Log replace by Id keyword, revision history cleaned up
38!
39! Revision 1.2  2005/03/26 21:17:06  raasch
40! No pressure term for Runge-Kutta-schemes (tsc(4)=0.0)
41!
42! Revision 1.1  2004/01/28 15:34:47  raasch
43! Initial revision
44!
45!
46! Description:
47! ------------
48! Depending on the timestep scheme set the steering factors for the prognostic
49! equations.
50!------------------------------------------------------------------------------!
51
52    USE control_parameters
53
54    IMPLICIT NONE
55
56
57    IF ( timestep_scheme(1:5) == 'runge' )  THEN
58!
59!--    Runge-Kutta schemes (here the factors depend on the respective
60!--    intermediate step)
61       IF ( timestep_scheme == 'runge-kutta-2' )  THEN
62          IF ( intermediate_timestep_count == 1 )  THEN
63             tsc(1:5) = (/ 1.0, 1.0,  0.0, 0.0, 0.0 /)
64          ELSE
65             tsc(1:5) = (/ 1.0, 0.5, -0.5, 0.0, 1.0 /)
66          ENDIF
67       ELSE
68          IF ( intermediate_timestep_count == 1 )  THEN
69             tsc(1:5) = (/ 1.0,   1.0/3.0,        0.0, 0.0, 0.0 /)
70          ELSEIF ( intermediate_timestep_count == 2 )  THEN
71             tsc(1:5) = (/ 1.0, 15.0/16.0, -25.0/48.0, 0.0, 0.0 /)
72          ELSE
73             tsc(1:5) = (/ 1.0,  8.0/15.0,   1.0/15.0, 0.0, 1.0 /)
74          ENDIF         
75       ENDIF
76
77    ELSEIF ( timestep_scheme == 'euler' )  THEN
78!
79!--    Euler scheme
80       tsc(1:5) = (/ 1.0, 1.0, 0.0, 0.0, 1.0 /)
81
82    ENDIF
83
84
85 END SUBROUTINE timestep_scheme_steering
Note: See TracBrowser for help on using the repository browser.