Changeset 1353 for palm/trunk/SOURCE/init_dvrp.f90
- Timestamp:
- Apr 8, 2014 3:21:23 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_dvrp.f90
r1323 r1353 20 20 ! Current revisions: 21 21 ! ----------------- 22 ! 22 ! REAL constants provided with KIND-attribute 23 23 ! 24 24 ! Former revisions: … … 131 131 ! 132 132 !-- Set clipping to default (total domain), if not set by user 133 IF ( clip_dvrp_l == 9999999.9 ) clip_dvrp_l = 0.0134 IF ( clip_dvrp_r == 9999999.9 ) clip_dvrp_r = ( nx + 1 ) * dx135 IF ( clip_dvrp_s == 9999999.9 ) clip_dvrp_s = 0.0136 IF ( clip_dvrp_n == 9999999.9 ) clip_dvrp_n = ( ny + 1 ) * dy133 IF ( clip_dvrp_l == 9999999.9_wp ) clip_dvrp_l = 0.0_wp 134 IF ( clip_dvrp_r == 9999999.9_wp ) clip_dvrp_r = ( nx + 1 ) * dx 135 IF ( clip_dvrp_s == 9999999.9_wp ) clip_dvrp_s = 0.0_wp 136 IF ( clip_dvrp_n == 9999999.9_wp ) clip_dvrp_n = ( ny + 1 ) * dy 137 137 138 138 ! … … 256 256 ! 257 257 !-- Compute center of domain and distance of camera from center 258 center(1) = ( clip_dvrp_l + clip_dvrp_r ) * 0.5 * superelevation_x 259 center(2) = ( clip_dvrp_s + clip_dvrp_n ) * 0.5 * superelevation_y 260 center(3) = ( zu(nz_do3d) - zu(nzb) ) * 0.5 * superelevation 261 distance = 1.5 * MAX( (clip_dvrp_r-clip_dvrp_l) * superelevation_x, & 262 (clip_dvrp_n-clip_dvrp_s) * superelevation_y, & 263 ( zu(nz_do3d) - zu(nzb) ) * superelevation ) 258 center(1) = ( clip_dvrp_l + clip_dvrp_r ) * 0.5_wp * superelevation_x 259 center(2) = ( clip_dvrp_s + clip_dvrp_n ) * 0.5_wp * superelevation_y 260 center(3) = ( zu(nz_do3d) - zu(nzb) ) * 0.5_wp * superelevation 261 distance = 1.5_wp * MAX( & 262 (clip_dvrp_r-clip_dvrp_l) * superelevation_x, & 263 (clip_dvrp_n-clip_dvrp_s) * superelevation_y, & 264 ( zu(nz_do3d) - zu(nzb) ) * superelevation & 265 ) 264 266 265 267 ! … … 302 304 ! 303 305 !-- Define bounding box material and create a bounding box 304 tmp_r = 0.5 ; tmp_g = 0.5; tmp_b = 0.5; tmp_t = 0.0306 tmp_r = 0.5_wp; tmp_g = 0.5_wp; tmp_b = 0.5_wp; tmp_t = 0.0_wp 305 307 CALL DVRP_MATERIAL_RGB( m-1, 1, tmp_r, tmp_g, tmp_b, tmp_t ) 306 308 307 tmp_1 = 0.01 ;309 tmp_1 = 0.01_wp; 308 310 tmp_2 = clip_dvrp_l * superelevation_x 309 311 tmp_3 = clip_dvrp_s * superelevation_y 310 tmp_4 = 0.0 312 tmp_4 = 0.0_wp 311 313 tmp_5 = (clip_dvrp_r+dx) * superelevation_x 312 314 tmp_6 = (clip_dvrp_n+dy) * superelevation_y … … 386 388 tmp_g = topography_color(2) 387 389 tmp_b = topography_color(3) 388 tmp_t = 0.0 390 tmp_t = 0.0_wp 389 391 CALL DVRP_MATERIAL_RGB( m-1, 1, tmp_r, tmp_g, tmp_b, tmp_t ) 390 392 … … 393 395 ALLOCATE( local_pf(nxl_dvrp:nxr_dvrp+1,nys_dvrp:nyn_dvrp+1, & 394 396 nzb:nz_do3d) ) 395 local_pf = 0.0 397 local_pf = 0.0_wp 396 398 IF ( dvrp_overlap ) THEN 397 399 DO i = nxl_dvrp, nxr_dvrp+1 398 400 DO j = nys_dvrp, nyn_dvrp+1 399 401 IF ( nzb_s_inner(j,i) > 0 ) THEN 400 local_pf(i,j,nzb:nzb_s_inner(j,i)) = 1.0 402 local_pf(i,j,nzb:nzb_s_inner(j,i)) = 1.0_wp 401 403 ENDIF 402 404 ENDDO … … 407 409 cyclic_dvrp, cyclic_dvrp, cyclic_dvrp ) 408 410 409 tmp_th = 1.0 411 tmp_th = 1.0_wp 410 412 CALL DVRP_THRESHOLD( m-1, tmp_th ) 411 413 … … 428 430 !-- ATTENTION: A seperate procedure for setting cluster_alpha will 429 431 !-- be in the next version of libDVRP (Feb 09) 430 cluster_alpha = 38.0 432 cluster_alpha = 38.0_wp 431 433 CALL DVRP_THRESHOLD( -(m-1)-1, cluster_alpha ) 432 434 … … 512 514 tmp_g = groundplate_color(2) 513 515 tmp_b = groundplate_color(3) 514 tmp_t = 0.0 516 tmp_t = 0.0_wp 515 517 CALL DVRP_MATERIAL_RGB( m-1, 1, tmp_r, tmp_g, tmp_b, tmp_t ) 516 518 … … 519 521 ALLOCATE( local_pf(nxl_dvrp:nxr_dvrp+1,nys_dvrp:nyn_dvrp+1, & 520 522 nzb:nz_do3d) ) 521 local_pf = 0.0 522 IF (dvrp_overlap ) local_pf(:,:,0) = 1.0 523 local_pf = 0.0_wp 524 IF (dvrp_overlap ) local_pf(:,:,0) = 1.0_wp 523 525 524 526 CALL DVRP_DATA( m-1, local_pf, 1, nx_dvrp, ny_dvrp, nz_dvrp, & 525 527 cyclic_dvrp, cyclic_dvrp, cyclic_dvrp ) 526 tmp_th = 1.0 528 tmp_th = 1.0_wp 527 529 CALL DVRP_THRESHOLD( m-1, tmp_th ) 528 530 … … 543 545 !-- ATTENTION: A seperate procedure for setting cluster_alpha will be in 544 546 !-- the next version of libDVRP (Feb 09) 545 cluster_alpha = 38.0 547 cluster_alpha = 38.0_wp 546 548 CALL DVRP_THRESHOLD( -(m-1)-1, cluster_alpha ) 547 549 … … 581 583 582 584 IF ( do3d(0,vn)(1:1) == 'w' ) THEN 583 steering_dvrp(pn)%min = -4.0 584 steering_dvrp(pn)%max = 5.0 585 steering_dvrp(pn)%min = -4.0_wp 586 steering_dvrp(pn)%max = 5.0_wp 585 587 ELSE 586 steering_dvrp(pn)%min = 288.0 587 steering_dvrp(pn)%max = 292.0 588 steering_dvrp(pn)%min = 288.0_wp 589 steering_dvrp(pn)%max = 292.0_wp 588 590 ENDIF 589 591 … … 690 692 IF ( mode_dvrp(m) == 'pathlines' ) THEN 691 693 692 tmp_x1 = 0.0 ; tmp_y1 = 0.0; tmp_z1 = 0.0693 tmp_x2 = 1.0 ; tmp_y2 = 1.0; tmp_z2 = 0.3694 tmp_x1 = 0.0_wp; tmp_y1 = 0.0_wp; tmp_z1 = 0.0_wp 695 tmp_x2 = 1.0_wp; tmp_y2 = 1.0_wp; tmp_z2 = 0.3_wp 694 696 CALL DVRP_CUBIC_SEEDING( m-1, tmp_x1, tmp_y1, tmp_z1, tmp_x2, tmp_y2,& 695 697 tmp_z2, pathlines_linecount, 2, 0 ) … … 703 705 !-- Set pathline length 704 706 CALL DVRP_PATHLINES_SETMAXHISTORY( m-1, pathlines_maxhistory ) 705 CALL DVRP_PATHLINES_SETFADING( m-1, 1, 0.0 )707 CALL DVRP_PATHLINES_SETFADING( m-1, 1, 0.0_wp ) 706 708 707 709 CALL DVRP_INIT_PATHLINES( m-1, 0 ) … … 823 825 ! 824 826 !-- If required, close dvrp-software and logging of dvrp-calls 825 IF ( dt_dvrp /= 9999999.9 ) THEN827 IF ( dt_dvrp /= 9999999.9_wp ) THEN 826 828 m = 1 827 829 DO WHILE ( mode_dvrp(m) /= ' ' )
Note: See TracChangeset
for help on using the changeset viewer.