Changeset 2429 for LMDZ5/trunk/libf/phy_common
- Timestamp:
- Jan 27, 2016, 1:43:09 PM (9 years ago)
- Location:
- LMDZ5/trunk/libf/phy_common
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phy_common/mod_phys_lmdz_mpi_data.F90
-
Property
svn:keywords
changed from
Author Date Id Revision
toId
r2352 r2429 1 1 ! 2 !$ Header$2 !$Id$ 3 3 ! 4 4 MODULE mod_phys_lmdz_mpi_data … … 41 41 42 42 43 LOGICAL,SAVE :: is_north_pole 44 LOGICAL,SAVE :: is_south_pole 43 ! LOGICAL,SAVE :: is_north_pole 44 ! LOGICAL,SAVE :: is_south_pole 45 LOGICAL,SAVE :: is_north_pole_dyn 46 LOGICAL,SAVE :: is_south_pole_dyn 45 47 INTEGER,SAVE :: COMM_LMDZ_PHY 46 48 INTEGER,SAVE :: MPI_REAL_LMDZ ! MPI_REAL8 … … 109 111 110 112 IF (mpi_rank == 0) THEN 111 is_north_pole = .TRUE.112 ELSE 113 is_north_pole = .FALSE.113 is_north_pole_dyn = .TRUE. 114 ELSE 115 is_north_pole_dyn = .FALSE. 114 116 ENDIF 115 117 116 118 IF (mpi_rank == mpi_size-1) THEN 117 is_south_pole = .TRUE.118 ELSE 119 is_south_pole = .FALSE.119 is_south_pole_dyn = .TRUE. 120 ELSE 121 is_south_pole_dyn = .FALSE. 120 122 ENDIF 121 123 … … 217 219 WRITE(lunout,*) 'mpi_master =', mpi_master 218 220 WRITE(lunout,*) 'is_mpi_root =', is_mpi_root 219 WRITE(lunout,*) 'is_north_pole =', is_north_pole 220 WRITE(lunout,*) 'is_south_pole =', is_south_pole 221 WRITE(lunout,*) 'is_north_pole =', is_north_pole_dyn 222 WRITE(lunout,*) 'is_south_pole =', is_south_pole_dyn 221 223 WRITE(lunout,*) 'COMM_LMDZ_PHY =', COMM_LMDZ_PHY 222 224 -
Property
svn:keywords
changed from
-
LMDZ5/trunk/libf/phy_common/mod_phys_lmdz_mpi_transfert.F90
-
Property
svn:keywords
changed from
Author Date Id Revision
toId
r2351 r2429 1 1 ! 2 !$ Header$2 !$Id$ 3 3 ! 4 4 MODULE mod_phys_lmdz_mpi_transfert … … 1693 1693 1694 1694 offset=ii_begin 1695 IF (is_north_pole ) Offset=nbp_lon1695 IF (is_north_pole_dyn) Offset=nbp_lon 1696 1696 1697 1697 … … 1703 1703 1704 1704 1705 IF (is_north_pole ) THEN1705 IF (is_north_pole_dyn) THEN 1706 1706 DO i=1,dimsize 1707 1707 DO ij=1,nbp_lon … … 1711 1711 ENDIF 1712 1712 1713 IF (is_south_pole ) THEN1713 IF (is_south_pole_dyn) THEN 1714 1714 DO i=1,dimsize 1715 1715 DO ij=nbp_lon*(jj_nb-1)+1,nbp_lon*jj_nb … … 1737 1737 1738 1738 offset=ii_begin 1739 IF (is_north_pole ) Offset=nbp_lon1739 IF (is_north_pole_dyn) Offset=nbp_lon 1740 1740 1741 1741 … … 1747 1747 1748 1748 1749 IF (is_north_pole ) THEN1749 IF (is_north_pole_dyn) THEN 1750 1750 DO i=1,dimsize 1751 1751 DO ij=1,nbp_lon … … 1755 1755 ENDIF 1756 1756 1757 IF (is_south_pole ) THEN1757 IF (is_south_pole_dyn) THEN 1758 1758 DO i=1,dimsize 1759 1759 DO ij=nbp_lon*(jj_nb-1)+1,nbp_lon*jj_nb … … 1782 1782 1783 1783 offset=ii_begin 1784 IF (is_north_pole ) Offset=nbp_lon1784 IF (is_north_pole_dyn) Offset=nbp_lon 1785 1785 1786 1786 … … 1792 1792 1793 1793 1794 IF (is_north_pole ) THEN1794 IF (is_north_pole_dyn) THEN 1795 1795 DO i=1,dimsize 1796 1796 DO ij=1,nbp_lon … … 1800 1800 ENDIF 1801 1801 1802 IF (is_south_pole ) THEN1802 IF (is_south_pole_dyn) THEN 1803 1803 DO i=1,dimsize 1804 1804 DO ij=nbp_lon*(jj_nb-1)+1,nbp_lon*jj_nb … … 1824 1824 1825 1825 offset=ii_begin 1826 IF (is_north_pole ) offset=nbp_lon1826 IF (is_north_pole_dyn) offset=nbp_lon 1827 1827 1828 1828 DO i=1,dimsize … … 1832 1832 ENDDO 1833 1833 1834 IF (is_north_pole ) THEN1834 IF (is_north_pole_dyn) THEN 1835 1835 DO i=1,dimsize 1836 1836 VarOut(1,i)=VarIn(1,i) … … 1854 1854 1855 1855 offset=ii_begin 1856 IF (is_north_pole ) offset=nbp_lon1856 IF (is_north_pole_dyn) offset=nbp_lon 1857 1857 1858 1858 DO i=1,dimsize … … 1862 1862 ENDDO 1863 1863 1864 IF (is_north_pole ) THEN1864 IF (is_north_pole_dyn) THEN 1865 1865 DO i=1,dimsize 1866 1866 VarOut(1,i)=VarIn(1,i) … … 1883 1883 1884 1884 offset=ii_begin 1885 IF (is_north_pole ) offset=nbp_lon1885 IF (is_north_pole_dyn) offset=nbp_lon 1886 1886 1887 1887 DO i=1,dimsize … … 1891 1891 ENDDO 1892 1892 1893 IF (is_north_pole ) THEN1893 IF (is_north_pole_dyn) THEN 1894 1894 DO i=1,dimsize 1895 1895 VarOut(1,i)=VarIn(1,i) -
Property
svn:keywords
changed from
-
LMDZ5/trunk/libf/phy_common/mod_phys_lmdz_omp_data.F90
r2326 r2429 8 8 LOGICAL,SAVE :: is_omp_root 9 9 LOGICAL,SAVE :: is_using_omp 10 LOGICAL,SAVE :: is_north_pole_phy, is_south_pole_phy 10 11 11 12 INTEGER,SAVE,DIMENSION(:),ALLOCATABLE :: klon_omp_para_nb … … 17 18 INTEGER,SAVE :: klon_omp_end 18 19 !$OMP THREADPRIVATE(omp_rank,klon_omp,is_omp_root,klon_omp_begin,klon_omp_end) 20 !$OMP THREADPRIVATE(is_north_pole_phy, is_south_pole_phy) 19 21 20 22 CONTAINS 21 23 22 24 SUBROUTINE Init_phys_lmdz_omp_data(klon_mpi) 23 USE dimphy 25 USE dimphy 26 USE mod_phys_lmdz_mpi_data, ONLY : is_north_pole_dyn, is_south_pole_dyn 24 27 IMPLICIT NONE 25 28 INTEGER, INTENT(in) :: klon_mpi … … 43 46 omp_size=OMP_GET_NUM_THREADS() 44 47 !$OMP END MASTER 48 !$OMP BARRIER 45 49 omp_rank=OMP_GET_THREAD_NUM() 46 50 #else … … 62 66 63 67 !$OMP MASTER 68 64 69 ALLOCATE(klon_omp_para_nb(0:omp_size-1)) 65 70 ALLOCATE(klon_omp_para_begin(0:omp_size-1)) … … 80 85 !$OMP END MASTER 81 86 !$OMP BARRIER 87 88 if ((is_north_pole_dyn) .AND. (omp_rank == 0 )) then 89 is_north_pole_phy = .TRUE. 90 else 91 is_north_pole_phy = .FALSE. 92 endif 93 if ((is_south_pole_dyn) .AND. (omp_rank == omp_size-1)) then 94 is_south_pole_phy = .TRUE. 95 else 96 is_south_pole_phy = .FALSE. 97 endif 82 98 83 99 klon_omp=klon_omp_para_nb(omp_rank) -
LMDZ5/trunk/libf/phy_common/mod_phys_lmdz_para.F90
-
Property
svn:keywords
changed from
Author Date Id Revision
toId
r2351 r2429 1 1 ! 2 ! $Header$2 ! $Id$ 3 3 ! 4 4 MODULE mod_phys_lmdz_para … … 11 11 LOGICAL,SAVE :: is_parallel 12 12 LOGICAL,SAVE :: is_master 13 13 14 14 15 !$OMP THREADPRIVATE(klon_loc,is_master) … … 41 42 is_parallel=.FALSE. 42 43 ENDIF 44 45 43 46 44 47 END SUBROUTINE Init_phys_lmdz_para -
Property
svn:keywords
changed from
Note: See TracChangeset
for help on using the changeset viewer.