Changeset 1322 for palm/trunk/SOURCE/tridia_solver.f90
- Timestamp:
- Mar 20, 2014 4:38:49 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/tridia_solver.f90
r1321 r1322 20 20 ! Current revisions: 21 21 ! ------------------ 22 ! 22 ! REAL functions provided with KIND-attribute 23 23 ! 24 24 ! Former revisions: … … 170 170 IF ( i >= 0 .AND. i <= nnxh ) THEN 171 171 ll(i,j) = 2.0 * ( 1.0 - COS( ( 2.0 * pi * i ) / & 172 REAL( nx+1 ) ) ) / ( dx * dx ) + &172 REAL( nx+1, KIND=wp ) ) ) / ( dx * dx ) + & 173 173 2.0 * ( 1.0 - COS( ( 2.0 * pi * j ) / & 174 REAL( ny+1 ) ) ) / ( dy * dy )174 REAL( ny+1, KIND=wp ) ) ) / ( dy * dy ) 175 175 ELSE 176 176 ll(i,j) = 2.0 * ( 1.0 - COS( ( 2.0 * pi * ( nx+1-i ) ) / & 177 REAL( nx+1 ) ) ) / ( dx * dx ) + &177 REAL( nx+1, KIND=wp ) ) ) / ( dx * dx ) + & 178 178 2.0 * ( 1.0 - COS( ( 2.0 * pi * j ) / & 179 REAL( ny+1 ) ) ) / ( dy * dy )179 REAL( ny+1, KIND=wp ) ) ) / ( dy * dy ) 180 180 ENDIF 181 181 ELSE 182 182 IF ( i >= 0 .AND. i <= nnxh ) THEN 183 183 ll(i,j) = 2.0 * ( 1.0 - COS( ( 2.0 * pi * i ) / & 184 REAL( nx+1 ) ) ) / ( dx * dx ) + &184 REAL( nx+1, KIND=wp ) ) ) / ( dx * dx ) + & 185 185 2.0 * ( 1.0 - COS( ( 2.0 * pi * ( ny+1-j ) ) / & 186 REAL( ny+1 ) ) ) / ( dy * dy )186 REAL( ny+1, KIND=wp ) ) ) / ( dy * dy ) 187 187 ELSE 188 188 ll(i,j) = 2.0 * ( 1.0 - COS( ( 2.0 * pi * ( nx+1-i ) ) / & 189 REAL( nx+1 ) ) ) / ( dx * dx ) + &189 REAL( nx+1, KIND=wp ) ) ) / ( dx * dx ) + & 190 190 2.0 * ( 1.0 - COS( ( 2.0 * pi * ( ny+1-j ) ) / & 191 REAL( ny+1 ) ) ) / ( dy * dy )191 REAL( ny+1, KIND=wp ) ) ) / ( dy * dy ) 192 192 ENDIF 193 193 ENDIF … … 558 558 IF ( i >= 0 .AND. i <= nnxh ) THEN 559 559 l(i) = 2.0 * ( 1.0 - COS( ( 2.0 * pi * i ) / & 560 REAL( nx+1 ) ) ) * ddx2 + &560 REAL( nx+1, KIND=wp ) ) ) * ddx2 + & 561 561 2.0 * ( 1.0 - COS( ( 2.0 * pi * j ) / & 562 REAL( ny+1 ) ) ) * ddy2562 REAL( ny+1, KIND=wp ) ) ) * ddy2 563 563 ELSE 564 564 l(i) = 2.0 * ( 1.0 - COS( ( 2.0 * pi * ( nx+1-i ) ) / & 565 REAL( nx+1 ) ) ) * ddx2 + &565 REAL( nx+1, KIND=wp ) ) ) * ddx2 + & 566 566 2.0 * ( 1.0 - COS( ( 2.0 * pi * j ) / & 567 REAL( ny+1 ) ) ) * ddy2567 REAL( ny+1, KIND=wp ) ) ) * ddy2 568 568 ENDIF 569 569 ENDDO
Note: See TracChangeset
for help on using the changeset viewer.