Changeset 485
- Timestamp:
- Feb 5, 2010 10:57:51 AM (15 years ago)
- Location:
- palm/trunk/SOURCE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/init_3d_model.f90
r482 r485 7 7 ! Current revisions: 8 8 ! ----------------- 9 ! 9 ! calculation of ngp_3d + ngp_3d_inner changed because they have now 64 bit 10 10 ! 11 11 ! Former revisions: … … 112 112 INTEGER :: i, ind_array(1), j, k, sr 113 113 114 INTEGER, DIMENSION(:), ALLOCATABLE :: ngp_2dh_l , ngp_3d_inner_l114 INTEGER, DIMENSION(:), ALLOCATABLE :: ngp_2dh_l 115 115 116 116 INTEGER, DIMENSION(:,:), ALLOCATABLE :: ngp_2dh_outer_l, & … … 120 120 121 121 REAL, DIMENSION(1:2) :: volume_flow_area_l, volume_flow_initial_l 122 123 REAL, DIMENSION(:), ALLOCATABLE :: ngp_3d_inner_l, ngp_3d_inner_tmp 122 124 123 125 … … 128 130 ngp_3d_inner(0:statistic_regions), & 129 131 ngp_3d_inner_l(0:statistic_regions), & 132 ngp_3d_inner_tmp(0:statistic_regions), & 130 133 sums_divnew_l(0:statistic_regions), & 131 134 sums_divold_l(0:statistic_regions) ) … … 1520 1523 ngp_2dh_l = 0 1521 1524 ngp_2dh = 0 1522 ngp_3d_inner_l = 0 1525 ngp_3d_inner_l = 0.0 1523 1526 ngp_3d_inner = 0 1524 1527 ngp_3d = 0 … … 1551 1554 sr = statistic_regions + 1 1552 1555 #if defined( __parallel ) 1553 CALL MPI_ALLREDUCE( ngp_2dh_l(0), ngp_2dh(0), sr, MPI_INTEGER, MPI_SUM, &1556 CALL MPI_ALLREDUCE( ngp_2dh_l(0), ngp_2dh(0), sr, MPI_INTEGER, MPI_SUM, & 1554 1557 comm2d, ierr ) 1555 CALL MPI_ALLREDUCE( ngp_2dh_outer_l(0,0), ngp_2dh_outer(0,0), (nz+2)*sr, &1558 CALL MPI_ALLREDUCE( ngp_2dh_outer_l(0,0), ngp_2dh_outer(0,0), (nz+2)*sr, & 1556 1559 MPI_INTEGER, MPI_SUM, comm2d, ierr ) 1557 CALL MPI_ALLREDUCE( ngp_2dh_s_inner_l(0,0), ngp_2dh_s_inner(0,0), &1560 CALL MPI_ALLREDUCE( ngp_2dh_s_inner_l(0,0), ngp_2dh_s_inner(0,0), & 1558 1561 (nz+2)*sr, MPI_INTEGER, MPI_SUM, comm2d, ierr ) 1559 CALL MPI_ALLREDUCE( ngp_3d_inner_l(0), ngp_3d_inner (0), sr, MPI_INTEGER, &1562 CALL MPI_ALLREDUCE( ngp_3d_inner_l(0), ngp_3d_inner_tmp(0), sr, MPI_REAL, & 1560 1563 MPI_SUM, comm2d, ierr ) 1564 ngp_3d_inner = INT( ngp_3d_inner_tmp, KIND = SELECTED_INT_KIND( 18 ) ) 1561 1565 #else 1562 1566 ngp_2dh = ngp_2dh_l 1563 1567 ngp_2dh_outer = ngp_2dh_outer_l 1564 1568 ngp_2dh_s_inner = ngp_2dh_s_inner_l 1565 ngp_3d_inner = ngp_3d_inner_l1569 ngp_3d_inner = INT( ngp_3d_inner_l, KIND = SELECTED_INT_KIND( 18 ) ) 1566 1570 #endif 1567 1571 1568 ngp_3d = ngp_2dh * ( nz + 2)1572 ngp_3d = INT( ngp_2dh * ( nz + 2 ), KIND = SELECTED_INT_KIND( 18 ) ) 1569 1573 1570 1574 ! … … 1576 1580 ngp_2dh_s_inner = MAX( 1, ngp_2dh_s_inner(:,:) ) 1577 1581 1578 DEALLOCATE( ngp_2dh_l, ngp_2dh_outer_l, ngp_3d_inner_l )1582 DEALLOCATE( ngp_2dh_l, ngp_2dh_outer_l, ngp_3d_inner_l, ngp_3d_inner_tmp ) 1579 1583 1580 1584 -
palm/trunk/SOURCE/modules.f90
r482 r485 5 5 ! Current revisions: 6 6 ! ----------------- 7 ! 7 ! ngp_3d, ngp_3d_inner changed to 64 bit 8 8 ! 9 9 ! Former revisions: … … 828 828 nz = 0, nza, nzb, nzb_diff, nzt, nzta, nzt_diff 829 829 830 INTEGER( KIND = SELECTED_INT_KIND(18) ), DIMENSION(:), ALLOCATABLE :: & 831 ngp_3d, ngp_3d_inner ! need to have 64 bit for grids > 2E9 832 830 833 INTEGER, DIMENSION(:), ALLOCATABLE :: & 831 ngp_2dh, ngp_3d, ngp_3d_inner, & 832 nnx_pe, nny_pe, nxl_mg, nxr_mg, nyn_mg, nys_mg, nzt_mg 834 ngp_2dh, nnx_pe, nny_pe, nxl_mg, nxr_mg, nyn_mg, nys_mg, nzt_mg 833 835 834 836 INTEGER, DIMENSION(:,:), ALLOCATABLE :: &
Note: See TracChangeset
for help on using the changeset viewer.