Changeset 1929 for palm/trunk/SOURCE/pres.f90
- Timestamp:
- Jun 9, 2016 4:25:25 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/pres.f90
r1919 r1929 19 19 ! Current revisions: 20 20 ! ------------------ 21 ! 21 ! Bugfix: weight_substep for initial call, replace by local variable 22 22 ! 23 23 ! Former revisions: … … 162 162 REAL(wp) :: threadsum !< 163 163 REAL(wp) :: weight_pres_l !< 164 REAL(wp) :: weight_substep_l !< 164 165 165 166 REAL(wp), DIMENSION(1:3) :: volume_flow_l !< … … 178 179 ! 179 180 !-- If pres is called before initial time step 180 weight_pres_l = 1.0_wp 181 d_weight_pres = 1.0_wp 181 weight_pres_l = 1.0_wp 182 d_weight_pres = 1.0_wp 183 weight_substep_l = 1.0_wp 182 184 ELSE 183 weight_pres_l = weight_pres(intermediate_timestep_count) 184 d_weight_pres = 1.0_wp / weight_pres(intermediate_timestep_count) 185 weight_pres_l = weight_pres(intermediate_timestep_count) 186 d_weight_pres = 1.0_wp / weight_pres(intermediate_timestep_count) 187 weight_substep_l = weight_substep(intermediate_timestep_count) 185 188 ENDIF 186 189 … … 591 594 !$OMP PARALLEL PRIVATE (i,j,k) 592 595 !$OMP DO 593 !$acc kernels present( p, tend, weight_substep )596 !$acc kernels present( p, tend, weight_substep_l ) 594 597 !$acc loop independent 595 598 DO i = nxl-1, nxr+1 … … 599 602 DO k = nzb, nzt+1 600 603 p(k,j,i) = tend(k,j,i) * & 601 weight_substep (intermediate_timestep_count)604 weight_substep_l 602 605 ENDDO 603 606 ENDDO … … 609 612 !$OMP PARALLEL PRIVATE (i,j,k) 610 613 !$OMP DO 611 !$acc kernels present( p, tend, weight_substep )614 !$acc kernels present( p, tend, weight_substep_l ) 612 615 !$acc loop independent 613 616 DO i = nxl-1, nxr+1 … … 617 620 DO k = nzb, nzt+1 618 621 p(k,j,i) = p(k,j,i) + tend(k,j,i) * & 619 weight_substep (intermediate_timestep_count)622 weight_substep_l 620 623 ENDDO 621 624 ENDDO
Note: See TracChangeset
for help on using the changeset viewer.