Changeset 3001
- Timestamp:
- Apr 20, 2018 12:27:13 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/pmc_interface_mod.f90
r2997 r3001 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Bugfix, replace MERGE function by an if-condition in the anterpolation (in 28 ! order to avoid floating-point exceptions). 29 ! 30 ! 2997 2018-04-19 13:35:17Z suehring 27 31 ! Mask topography grid points in anterpolation 28 32 ! … … 5793 5797 ! 5794 5798 !-- In case all child grid points are inside topography, i.e. 5795 !-- cellsum is zero, also parent solution would have zero values at5796 !-- that point, which may cause problems in particular for the5797 !-- temperature. Therefore, in case cellsum is zero, keep the5798 !-- parent solution at this point.5799 fc(kk,jj,ii) = MERGE( ( 1.0_wp - fra ) * fc(kk,jj,ii) + &5800 fra * cellsum /&5801 REAL( ijkfc(kk,jj,ii), KIND = wp ),&5802 fc(kk,jj,ii), &5803 cellsum /= 0.0_wp )5799 !-- ijkfc and cellsum are zero, also parent solution would have 5800 !-- zero values at that grid point, which may cause problems in 5801 !-- particular for the temperature. Therefore, in case cellsum is 5802 !-- zero, keep the parent solution at this point. 5803 IF ( ijkfc(kk,jj,ii) /= 0 ) THEN 5804 fc(kk,jj,ii) = ( 1.0_wp - fra ) * fc(kk,jj,ii) + & 5805 fra * cellsum / & 5806 REAL( ijkfc(kk,jj,ii), KIND=wp ) 5807 ENDIF 5804 5808 5805 5809 ENDDO
Note: See TracChangeset
for help on using the changeset viewer.