- Timestamp:
- Mar 15, 2022, 2:20:31 PM (3 years ago)
- Location:
- LMDZ6/trunk/libf
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/dyn3d/conf_gcm.F90
r4055 r4100 116 116 CALL getin('calend', calend) 117 117 ! initialize year_len for aquaplanets and 1D 118 if (calend == 'earth_360d') then119 120 else if (calend == 'earth_365d') then121 122 else if (calend == 'earth_366d') then123 124 else125 126 endif118 IF (calend == 'earth_360d') THEN 119 year_len=360 120 ELSE IF (calend == 'earth_365d') THEN 121 year_len=365 122 ELSE IF (calend == 'earth_366d') THEN 123 year_len=366 124 ELSE 125 year_len=1 126 ENDIF 127 127 128 128 !Config Key = dayref … … 315 315 CALL getin('ngroup',ngroup) 316 316 317 318 317 ! top_bound sponge: only active if ok_strato=.true. and iflag_top_bound!=0 319 318 ! iflag_top_bound=0 for no sponge … … 322 321 iflag_top_bound=1 323 322 CALL getin('iflag_top_bound',iflag_top_bound) 324 if(iflag_top_bound < 0 .or. iflag_top_bound > 2) &323 IF (iflag_top_bound < 0 .or. iflag_top_bound > 2) & 325 324 call abort_gcm("conf_gcm", 'iflag_top_bound must be 0, 1 or 2', 1) 326 325 … … 396 395 ! ......... ( modif le 17/04/96 ) ......... 397 396 398 test_etatinit: IF (.not. etatinit) then397 test_etatinit: IF (.not. etatinit) THEN 399 398 !Config Key = clon 400 399 !Config Desc = centre du zoom, longitude … … 677 676 write(lunout,*)' ok_dyn_ins = ', ok_dyn_ins 678 677 write(lunout,*)' ok_dyn_ave = ', ok_dyn_ave 679 else678 ELSE 680 679 !Config Key = clon 681 680 !Config Desc = centre du zoom, longitude … … 877 876 878 877 write(lunout,*)' #########################################' 879 write(lunout,*)' Configuration des parametres de cel0' & 880 //'_limit: ' 878 write(lunout,*)' Configuration des parametres de cel0_limit: ' 881 879 write(lunout,*)' planet_type = ', planet_type 882 880 write(lunout,*)' calend = ', calend … … 922 920 write(lunout,*)' ok_limit = ', ok_limit 923 921 write(lunout,*)' ok_etat0 = ', ok_etat0 922 write(lunout,*)' ok_guide = ', ok_guide 924 923 write(lunout,*)' read_orop = ', read_orop 925 endIF test_etatinit924 ENDIF test_etatinit 926 925 927 926 END SUBROUTINE conf_gcm -
LMDZ6/trunk/libf/dyn3dmem/conf_gcm.F90
r4055 r4100 6 6 USE control_mod 7 7 #ifdef CPP_IOIPSL 8 useIOIPSL8 USE IOIPSL 9 9 #else 10 10 ! if not using IOIPSL, we still need to use (a local version of) getin 11 useioipsl_getincom11 USE ioipsl_getincom 12 12 #endif 13 usemisc_mod14 use mod_filtre_fft, ONLY: use_filtre_fft15 use mod_filtre_fft_loc, ONLY: use_filtre_fft_loc=>use_filtre_fft16 use mod_hallo, ONLY: use_mpi_alloc17 USE infotrac, ONLY 18 use assert_m, only: assert13 USE misc_mod 14 USE mod_filtre_fft, ONLY: use_filtre_fft 15 USE mod_filtre_fft_loc, ONLY: use_filtre_fft_loc=>use_filtre_fft 16 USE mod_hallo, ONLY: use_mpi_alloc 17 USE infotrac, ONLY: type_trac 18 USE assert_m, ONLY: assert 19 19 USE comconst_mod, ONLY: dissip_deltaz, dissip_factz, dissip_zref, & 20 20 iflag_top_bound, mode_top_bound, tau_top_bound, & … … 55 55 LOGICAL fxyhypbb, ysinuss 56 56 INTEGER i 57 character(len=*),parameter:: modname="conf_gcm"58 character(len=80) :: abort_message57 CHARACTER(len=*), PARAMETER :: modname="conf_gcm" 58 CHARACTER(len=80) :: abort_message 59 59 #ifdef CPP_OMP 60 integer,external:: OMP_GET_NUM_THREADS60 INTEGER, EXTERNAL :: OMP_GET_NUM_THREADS 61 61 #endif 62 62 … … 102 102 103 103 adjust=.false. 104 callgetin('adjust',adjust)104 CALL getin('adjust',adjust) 105 105 106 106 #ifdef CPP_OMP 107 107 ! adjust=y not implemented in case of OpenMP threads... 108 108 !$OMP PARALLEL 109 if((OMP_GET_NUM_THREADS()>1).and.adjust) then109 IF ((OMP_GET_NUM_THREADS()>1).and.adjust) then 110 110 write(lunout,*)'conf_gcm: Error, adjust should be set to n' & 111 111 ,' when running with OpenMP threads' 112 112 abort_message = 'Wrong value for adjust' 113 callabort_gcm(modname,abort_message,1)114 endif113 CALL abort_gcm(modname,abort_message,1) 114 ENDIF 115 115 !$OMP END PARALLEL 116 116 #endif 117 117 118 118 itaumax=0 119 callgetin('itaumax',itaumax);120 if(itaumax<=0) itaumax=HUGE(itaumax)119 CALL getin('itaumax',itaumax); 120 IF (itaumax<=0) itaumax=HUGE(itaumax) 121 121 122 122 !Config Key = prt_level … … 146 146 ! initialize year_len for aquaplanets and 1D 147 147 CALL getin('calend', calend) 148 if (calend == 'earth_360d') then 149 year_len=360 150 else if (calend == 'earth_365d') then 151 year_len=365 152 else if (calend == 'earth_366d') then 153 year_len=366 154 else 155 year_len=1 156 endif 157 148 IF (calend == 'earth_360d') THEN 149 year_len=360 150 ELSE IF (calend == 'earth_365d') THEN 151 year_len=365 152 ELSE IF (calend == 'earth_366d') THEN 153 year_len=366 154 ELSE 155 year_len=1 156 ENDIF 158 157 159 158 !Config Key = dayref … … 345 344 ngroup=3 346 345 CALL getin('ngroup',ngroup) 347 if(mod(iim, 2**ngroup) /= 0) &346 IF (mod(iim, 2**ngroup) /= 0) & 348 347 call abort_gcm("conf_gcm", 'iim must be multiple of 2**ngroup', 1) 349 if(2**ngroup > jjm + 1) &348 IF (2**ngroup > jjm + 1) & 350 349 call abort_gcm("conf_gcm", '2**ngroup must be <= jjm + 1', 1) 351 350 … … 357 356 iflag_top_bound=1 358 357 CALL getin('iflag_top_bound',iflag_top_bound) 359 if(iflag_top_bound < 0 .or. iflag_top_bound > 2) &358 IF (iflag_top_bound < 0 .or. iflag_top_bound > 2) & 360 359 call abort_gcm("conf_gcm", 'iflag_top_bound must be 0, 1 or 2', 1) 361 360 … … 394 393 CALL getin('ok_guide',ok_guide) 395 394 396 if(ok_guide .and. adjust) call abort_gcm("conf_gcm", &395 IF (ok_guide .and. adjust) call abort_gcm("conf_gcm", & 397 396 "adjust does not work with ok_guide", 1) 398 397 … … 634 633 WRITE(lunout,*) & 635 634 'only the file phystoke.nc will still be created ' 636 END 635 ENDIF 637 636 638 637 !Config Key = type_trac … … 756 755 757 756 IF( grossismx.LT.1. ) THEN 758 write(lunout,*) & 759 'conf_gcm: *** ATTENTION !! grossismx < 1 . *** ' 757 write(lunout,*) 'conf_gcm: ***ATTENTION !! grossismx < 1 . *** ' 760 758 STOP 761 759 ELSE … … 770 768 ENDIF 771 769 772 write(lunout,*) 'conf_gcm: alphax alphay ',alphax,alphay770 write(lunout,*) 'conf_gcm: alphax alphay ',alphax,alphay 773 771 774 772 ! alphax et alphay sont les anciennes formulat. des grossissements … … 837 835 WRITE(lunout,*) & 838 836 'only the file phystoke.nc will still be created ' 839 END 837 ENDIF 840 838 841 839 !Config Key = type_trac … … 955 953 956 954 write(lunout,*)' #########################################' 957 write(lunout,*)' Configuration des parametres de cel0' & 958 //'_limit: ' 955 write(lunout,*)' Configuration des parametres de cel0_limit: ' 959 956 write(lunout,*)' planet_type = ', planet_type 960 957 write(lunout,*)' calend = ', calend … … 1002 999 write(lunout,*)' ok_limit = ', ok_limit 1003 1000 write(lunout,*)' ok_etat0 = ', ok_etat0 1001 write(lunout,*)' ok_guide = ', ok_guide 1004 1002 write(lunout,*)' read_orop = ', read_orop 1005 endIF test_etatinit1003 ENDIF test_etatinit 1006 1004 1007 1005 END SUBROUTINE conf_gcm
Note: See TracChangeset
for help on using the changeset viewer.