Changeset 3473 for LMDZ6/trunk/libf/phylmd
- Timestamp:
- Apr 10, 2019, 5:08:18 PM (6 years ago)
- Location:
- LMDZ6/trunk/libf/phylmd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/cpl_mod.F90
r3467 r3473 1232 1232 IF (cpl_old_calving) THEN ! use old calving 1233 1233 1234 DO j = 1, jj_nb1235 tmp_calv(:,j) = DOT_PRODUCT (cpl_rlic2D(1:nbp_lon,j), &1236 pctsrf2D(1:nbp_lon,j,is_lic)) / REAL(nbp_lon)1237 ENDDO1238 1239 1240 IF (is_parallel) THEN1241 IF (.NOT. is_north_pole_dyn) THEN1234 DO j = 1, jj_nb 1235 tmp_calv(:,j) = DOT_PRODUCT (cpl_rlic2D(1:nbp_lon,j), & 1236 pctsrf2D(1:nbp_lon,j,is_lic)) / REAL(nbp_lon) 1237 ENDDO 1238 1239 1240 IF (is_parallel) THEN 1241 IF (.NOT. is_north_pole_dyn) THEN 1242 1242 #ifdef CPP_MPI 1243 CALL MPI_RECV(Up,1,MPI_REAL_LMDZ,mpi_rank-1,1234,COMM_LMDZ_PHY,status,error)1244 CALL MPI_SEND(tmp_calv(1,1),1,MPI_REAL_LMDZ,mpi_rank-1,1234,COMM_LMDZ_PHY,error)1243 CALL MPI_RECV(Up,1,MPI_REAL_LMDZ,mpi_rank-1,1234,COMM_LMDZ_PHY,status,error) 1244 CALL MPI_SEND(tmp_calv(1,1),1,MPI_REAL_LMDZ,mpi_rank-1,1234,COMM_LMDZ_PHY,error) 1245 1245 #endif 1246 ENDIF1246 ENDIF 1247 1247 1248 IF (.NOT. is_south_pole_dyn) THEN1248 IF (.NOT. is_south_pole_dyn) THEN 1249 1249 #ifdef CPP_MPI 1250 CALL MPI_SEND(tmp_calv(1,jj_nb),1,MPI_REAL_LMDZ,mpi_rank+1,1234,COMM_LMDZ_PHY,error)1251 CALL MPI_RECV(down,1,MPI_REAL_LMDZ,mpi_rank+1,1234,COMM_LMDZ_PHY,status,error)1250 CALL MPI_SEND(tmp_calv(1,jj_nb),1,MPI_REAL_LMDZ,mpi_rank+1,1234,COMM_LMDZ_PHY,error) 1251 CALL MPI_RECV(down,1,MPI_REAL_LMDZ,mpi_rank+1,1234,COMM_LMDZ_PHY,status,error) 1252 1252 #endif 1253 ENDIF1253 ENDIF 1254 1254 1255 IF (.NOT. is_north_pole_dyn .AND. ii_begin /=1) THEN 1256 Up=Up+tmp_calv(nbp_lon,1) 1257 tmp_calv(:,1)=Up 1258 ENDIF 1259 1260 IF (.NOT. is_south_pole_dyn .AND. ii_end /= nbp_lon) THEN 1261 Down=Down+tmp_calv(1,jj_nb) 1262 tmp_calv(:,jj_nb)=Down 1263 ENDIF 1255 IF (.NOT. is_north_pole_dyn .AND. ii_begin /=1) THEN 1256 Up=Up+tmp_calv(nbp_lon,1) 1257 tmp_calv(:,1)=Up 1258 ENDIF 1259 1260 IF (.NOT. is_south_pole_dyn .AND. ii_end /= nbp_lon) THEN 1261 Down=Down+tmp_calv(1,jj_nb) 1262 tmp_calv(:,jj_nb)=Down 1263 ENDIF 1264 ENDIF 1265 tab_flds(:,:,ids_calvin) = tmp_calv(:,:) 1266 1267 ELSE 1268 1269 DO k=1,nb_zone_calving 1270 calving(k)=0 1271 DO j = 1, jj_nb 1272 calving(k)= calving(k)+DOT_PRODUCT(cpl_rlic2D(:,j)*area_calving(:,j,k),pctsrf2D(:,j,is_lic)) 1273 ENDDO 1274 ENDDO 1264 1275 ENDIF 1265 tab_flds(:,:,ids_calvin) = tmp_calv(:,:)1266 1267 ENDIF1268 1269 DO k=1,nb_zone_calving1270 calving(k)=01271 DO j = 1, jj_nb1272 calving(k)= calving(k)+DOT_PRODUCT(cpl_rlic2D(:,j)*area_calving(:,j,k),pctsrf2D(:,j,is_lic))1273 ENDDO1274 ENDDO1275 1276 1276 1277 #ifdef CPP_MPI -
LMDZ6/trunk/libf/phylmd/orografi_strato.F90
r3468 r3473 1852 1852 !ym Take the point at equator close to (0,0) coordinates. 1853 1853 dist_min=360 1854 dist_min_glo=360. 1854 1855 cell=-1 1855 1856 DO ij=1,klon
Note: See TracChangeset
for help on using the changeset viewer.