source: palm/trunk/SOURCE/wrd_write_string.f90 @ 4665

Last change on this file since 4665 was 4489, checked in by raasch, 5 years ago

files re-formatted to follow the PALM coding standard

  • Property svn:keywords set to Id
File size: 1.9 KB
RevLine 
[3687]1!> @file wrd_write_string.f90
[4489]2!--------------------------------------------------------------------------------------------------!
[2894]3! This file is part of the PALM model system.
4!
[4489]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.
[2894]8!
[4489]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.
[2894]12!
[4489]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/>.
[2894]15!
[4360]16! Copyright 1997-2020 Leibniz Universitaet Hannover
[4489]17!--------------------------------------------------------------------------------------------------!
[2894]18!
19! Current revisions:
20! -----------------
21!
22!
23! Former revisions:
24! -----------------
25! $Id: wrd_write_string.f90 4489 2020-04-04 10:54:08Z hellstea $
[4489]26! file re-formatted to follow the PALM coding standard
27!
28! 4360 2020-01-07 11:25:50Z suehring
[2894]29! Initial revision
30!
31!
32! Description:
33! ------------
[4489]34!> Calculates length of string and write the respective value together with the string into binary
35!  file(s) for restart runs
36!--------------------------------------------------------------------------------------------------!
37
[2894]38 SUBROUTINE wrd_write_string( string )
39
40
41    USE kinds
42
43
44    IMPLICIT NONE
45
[4489]46    CHARACTER(LEN=*), INTENT(IN) ::  string  !< for storing strings in case of writing/reading
47                                             !< restart data
48    INTEGER(iwp) ::  length  !< integer that specifies the length of a string in case of
49                             !< writing/reading restart data
[2894]50
51
52    length = LEN_TRIM( string )
53
54    WRITE ( 14 )  length
55    WRITE ( 14 )  string(1:length)
56
57
[3687]58 END SUBROUTINE wrd_write_string
Note: See TracBrowser for help on using the repository browser.