source: palm/trunk/SOURCE/user_write_restart_data_mod.f90 @ 3655

Last change on this file since 3655 was 3655, checked in by knoop, 3 years ago

Bugfix: made "unit" and "found" intend INOUT in module interface subroutines + automatic copyright update

  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1!> @file user_write_restart_data_mod.f90
2!------------------------------------------------------------------------------!
3! This file is part of the PALM model system.
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.
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-2019 Leibniz Universitaet Hannover
18!------------------------------------------------------------------------------!
19!
20! Current revisions:
21! -----------------
22!
23!
24! Former revisions:
25! -----------------
26! $Id: user_write_restart_data_mod.f90 3655 2019-01-07 16:51:22Z knoop $
27! Initial revision
28!
29!
30! Description:
31! ------------
32!> Writes user specific restart data into binary file(s) for restart runs.
33!------------------------------------------------------------------------------!
34 MODULE user_write_restart_data_mod
35
36
37    USE user
38     
39
40    IMPLICIT NONE
41
42
43    INTERFACE user_wrd_global
44       MODULE PROCEDURE user_wrd_global
45    END INTERFACE user_wrd_global
46
47    INTERFACE user_wrd_local
48       MODULE PROCEDURE user_wrd_local
49    END INTERFACE user_wrd_local
50
51
52    PUBLIC user_wrd_global, user_wrd_local
53
54
55 CONTAINS
56
57
58!------------------------------------------------------------------------------!
59! Description:
60! ------------
61!> Writes global and user-defined restart data into binary file(s) for restart
62!> runs.
63!------------------------------------------------------------------------------!
64    SUBROUTINE user_wrd_global 
65
66
67       IMPLICIT NONE
68
69       
70!       CALL wrd_write_string( 'global_parameter' )
71!       WRITE ( 14 )  global_parameter
72
73       
74    END SUBROUTINE user_wrd_global   
75
76
77! Description:
78! ------------
79!> Writes processor specific and user-defined restart data into binary file(s)
80!> for restart runs.
81!------------------------------------------------------------------------------!
82    SUBROUTINE user_wrd_local
83
84
85       IMPLICIT NONE
86
87
88!
89!-- Here the user-defined actions at the end of a job follow.
90!-- Sample for user-defined output:
91!          IF ( ALLOCATED( u2_av ) )  THEN
92!             CALL wrd_write_string( 'u2_av' ) 
93!             WRITE ( 14 )  u2_av
94!          ENDIF
95
96
97
98    END SUBROUTINE user_wrd_local
99
100
101 END MODULE user_write_restart_data_mod
Note: See TracBrowser for help on using the repository browser.