Changeset 2351 for LMDZ5/trunk/libf/dyn3dmem
- Timestamp:
- Aug 25, 2015, 5:14:59 PM (9 years ago)
- Location:
- LMDZ5/trunk/libf/dyn3dmem
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/dyn3dmem/bands.F90
r1907 r2351 105 105 SUBROUTINE Set_Bands 106 106 USE parallel_lmdz 107 #ifdef CPP_PHYS108 ! Ehouarn: what follows is only related to // physics109 USE mod_phys_lmdz_para, ONLY : jj_para_begin,jj_para_end110 #endif111 107 IMPLICIT NONE 112 108 INCLUDE 'dimensions.h' 113 INTEGER :: i 109 INTEGER :: i, ij 110 INTEGER :: jj_para_begin(0:mpi_size-1) 111 INTEGER :: jj_para_end(0:mpi_size-1) 114 112 115 113 do i=0,mpi_size-1 … … 118 116 enddo 119 117 120 #ifdef CPP_PHYS 121 do i=0,MPI_Size-1 118 jj_para_begin(0)=1 119 ij=distrib_phys(0)+iim-1 120 jj_para_end(0)=((ij-1)/iim)+1 121 122 DO i=1,mpi_Size-1 123 ij=ij+1 124 jj_para_begin(i)=((ij-1)/iim)+1 125 ij=ij+distrib_phys(i)-1 126 jj_para_end(i)=((ij-1)/iim)+1 127 ENDDO 128 129 do i=0,MPI_Size-1 122 130 jj_Nb_physic(i)=jj_para_end(i)-jj_para_begin(i)+1 123 131 if (i/=0) then … … 139 147 endif 140 148 enddo 141 #endif 149 142 150 CALL create_distrib(jj_Nb_Caldyn,distrib_caldyn) 143 151 CALL create_distrib(jj_Nb_vanleer,distrib_vanleer) … … 479 487 480 488 489 -
LMDZ5/trunk/libf/dyn3dmem/gcm.F90
r2347 r2351 10 10 USE parallel_lmdz 11 11 USE infotrac 12 #ifdef CPP_PHYS13 USE mod_interface_dyn_phys, ONLY: init_interface_dyn_phys14 #endif12 !#ifdef CPP_PHYS 13 ! USE mod_interface_dyn_phys, ONLY: init_interface_dyn_phys 14 !#endif 15 15 USE mod_hallo 16 16 USE Bands … … 152 152 call Read_Distrib 153 153 154 #ifdef CPP_PHYS155 CALL Init_Phys_lmdz(iim,jjp1,llm,mpi_size,distrib_phys)154 !#ifdef CPP_PHYS 155 ! CALL Init_Phys_lmdz(iim,jjp1,llm,mpi_size,distrib_phys) 156 156 !#endif 157 157 ! CALL set_bands 158 158 !#ifdef CPP_PHYS 159 CALL Init_interface_dyn_phys160 #endif159 ! CALL Init_interface_dyn_phys 160 !#endif 161 161 CALL barrier 162 162 … … 397 397 ! Physics: 398 398 #ifdef CPP_PHYS 399 CALL iniphysiq(iim,jjm,llm,daysec,day_ini,dtphys/nsplit_phys, & 399 CALL iniphysiq(iim,jjm,llm, & 400 distrib_phys(mpi_rank),comm_lmdz, & 401 daysec,day_ini,dtphys/nsplit_phys, & 400 402 rlatu,rlatv,rlonu,rlonv,aire,cu,cv,rad,g,r,cpp, & 401 403 iflag_phys)
Note: See TracChangeset
for help on using the changeset viewer.