Changeset 128 for palm/trunk
- Timestamp:
- Oct 26, 2007 1:11:14 PM (17 years ago)
- Location:
- palm/trunk/SOURCE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/CURRENT_MODIFICATIONS
r124 r128 35 35 Bugfix: model_string needed a default value (combine_plot_fields) 36 36 37 Bugfix: wavenumber calculation for even nx in routines maketri (poisfft) 37 38 38 advec_particles, check_parameters, combine_plot_fields, init_ocean, p roduction_e39 advec_particles, check_parameters, combine_plot_fields, init_ocean, poisfft, production_e -
palm/trunk/SOURCE/poisfft.f90
r90 r128 4 4 ! Actual revisions: 5 5 ! ----------------- 6 ! 6 ! Bugfix: wavenumber calculation for even nx in routines maketri 7 7 ! 8 8 ! Former revisions: … … 343 343 #if defined( __parallel ) 344 344 DO i = nxl_z, nxr_z 345 IF ( i >= 0 .AND. i < nnxh ) THEN345 IF ( i >= 0 .AND. i <= nnxh ) THEN 346 346 ll(i) = 2.0 * ( 1.0 - COS( ( 2.0 * pi * i ) / & 347 FLOAT( nx+1 ) ) ) / ( dx * dx ) + &348 2.0 * ( 1.0 - COS( ( 2.0 * pi * j ) / &349 FLOAT( ny+1 ) ) ) / ( dy * dy )350 ELSEIF ( i == nnxh ) THEN351 ll(i) = 2.0 * ( 1.0 - COS( ( 2.0 * pi * ( nx+1-i ) ) / &352 347 FLOAT( nx+1 ) ) ) / ( dx * dx ) + & 353 348 2.0 * ( 1.0 - COS( ( 2.0 * pi * j ) / & … … 1413 1408 !-- before it is Fourier-transformed 1414 1409 DO i = 0, nx 1415 IF ( i >= 0 .AND. i < nnxh ) THEN1410 IF ( i >= 0 .AND. i <= nnxh ) THEN 1416 1411 l(i) = 2.0 * ( 1.0 - COS( ( 2.0 * pi * i ) / & 1417 FLOAT( nx+1 ) ) ) * ddx2 + &1418 2.0 * ( 1.0 - COS( ( 2.0 * pi * j ) / &1419 FLOAT( ny+1 ) ) ) * ddy21420 ELSEIF ( i == nnxh ) THEN1421 l(i) = 2.0 * ( 1.0 - COS( ( 2.0 * pi * ( nx+1-i ) ) / &1422 1412 FLOAT( nx+1 ) ) ) * ddx2 + & 1423 1413 2.0 * ( 1.0 - COS( ( 2.0 * pi * j ) / &
Note: See TracChangeset
for help on using the changeset viewer.