Changeset 1779 for palm/trunk/SOURCE/init_grid.f90
- Timestamp:
- Mar 3, 2016 8:01:28 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_grid.f90
r1763 r1779 19 19 ! Current revisions: 20 20 ! ----------------- 21 ! 21 ! coupling_char is trimmed at every place it occurs, because it can have 22 ! different length now 22 23 ! 23 24 ! Former revisions: … … 89 90 ! 90 91 ! 1069 2012-11-28 16:18:43Z maronga 91 ! bugfix: added coupling_char to TOPOGRAPHY_DATA to allow topography in the ocean92 ! model in case of coupled runs92 ! bugfix: added coupling_char to TOPOGRAPHY_DATA to allow topography in the 93 ! ocean model in case of coupled runs 93 94 ! 94 95 ! 1036 2012-10-22 13:43:42Z raasch … … 680 681 !-- Arbitrary irregular topography data in PALM format (exactly 681 682 !-- matching the grid size and total domain size) 682 OPEN( 90, FILE='TOPOGRAPHY_DATA'// coupling_char, STATUS='OLD',&683 FORM='FORMATTED', ERR=10 )683 OPEN( 90, FILE='TOPOGRAPHY_DATA'//TRIM( coupling_char ), & 684 STATUS='OLD', FORM='FORMATTED', ERR=10 ) 684 685 DO j = ny, 0, -1 685 686 READ( 90, *, ERR=11, END=11 ) ( topo_height(j,i), i = 0,nx ) … … 688 689 GOTO 12 689 690 690 10 message_string = 'file TOPOGRAPHY'//coupling_char//' does not exist' 691 10 message_string = 'file TOPOGRAPHY'//TRIM( coupling_char )// & 692 ' does not exist' 691 693 CALL message( 'init_grid', 'PA0208', 1, 2, 0, 6, 0 ) 692 694 693 11 message_string = 'errors in file TOPOGRAPHY_DATA'//coupling_char 695 11 message_string = 'errors in file TOPOGRAPHY_DATA'// & 696 TRIM( coupling_char ) 694 697 CALL message( 'init_grid', 'PA0209', 1, 2, 0, 6, 0 ) 695 698
Note: See TracChangeset
for help on using the changeset viewer.