Changeset 2311
- Timestamp:
- Jun 25, 2015, 9:45:24 AM (10 years ago)
- Location:
- LMDZ5/trunk/libf
- Files:
-
- 7 added
- 96 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/dynlonlat_phylonlat/phydev/iniphysiq.F90
r2242 r2311 18 18 rlond, & ! longitudes 19 19 rlatd ! latitudes 20 USE comcstphy, ONLY: rradius, & ! planet radius (m) 21 rr, & ! recuced gas constant: R/molar mass of atm 22 rg, & ! gravity 23 rcpp ! specific heat of the atmosphere 20 ! USE comcstphy, ONLY: rradius, & ! planet radius (m) 21 ! rr, & ! recuced gas constant: R/molar mass of atm 22 ! rg, & ! gravity 23 ! rcpp ! specific heat of the atmosphere 24 USE inifis_mod, ONLY: inifis 24 25 USE phyaqua_mod, ONLY: iniaqua 25 26 IMPLICIT NONE … … 119 120 120 121 !$OMP PARALLEL 122 ! Initialize physical constants in physics: 123 CALL inifis(prad,pg,pr,pcpp) 124 121 125 ! Now generate local lon/lat/cu/cv/area arrays 122 126 CALL initcomgeomphy … … 129 133 rlatd(1:klon_omp) = latfi(offset+klon_omp_begin:offset+klon_omp_end) 130 134 131 ! copy some fundamental parameters to physics132 rradius=prad133 rg=pg134 rr=pr135 rcpp=pcpp136 137 !$OMP END PARALLEL138 139 135 ! Additional initializations for aquaplanets 140 !$OMP PARALLEL141 136 IF (iflag_phys>=100) THEN 142 137 CALL iniaqua(klon_omp,rlatd,rlond,iflag_phys) -
LMDZ5/trunk/libf/dynlonlat_phylonlat/phylmd/iniphysiq.F90
r2273 r2311 19 19 rlond, & ! longitudes 20 20 rlatd ! latitudes 21 USE inifis_mod, ONLY: inifis 21 22 USE phyaqua_mod, ONLY: iniaqua 22 23 IMPLICIT NONE … … 27 28 ! ======================================================================= 28 29 29 include "YOMCST.h"30 30 include "iniprint.h" 31 31 … … 125 125 126 126 !$OMP PARALLEL 127 ! Initialize physical constants in physics: 128 CALL inifis(punjours,prad,pg,pr,pcpp) 129 127 130 ! Now generate local lon/lat/cu/cv/area arrays 128 131 CALL initcomgeomphy … … 135 138 rlatd(1:klon_omp) = latfi(offset+klon_omp_begin:offset+klon_omp_end) 136 139 137 ! suphel => initialize some physical constants (orbital parameters, 138 ! geoid, gravity, thermodynamical constants, etc.) in the 139 ! physics 140 CALL suphel 141 142 !$OMP END PARALLEL 143 144 ! check that physical constants set in 'suphel' are coherent 145 ! with values set in the dynamics: 146 IF (rday/=punjours) THEN 147 WRITE (lunout, *) 'iniphysiq: length of day discrepancy!!!' 148 WRITE (lunout, *) ' in the dynamics punjours=', punjours 149 WRITE (lunout, *) ' but in the physics RDAY=', rday 150 IF (abs(rday-punjours)>0.01*punjours) THEN 151 ! stop here if the relative difference is more than 1% 152 abort_message = 'length of day discrepancy' 153 CALL abort_gcm(modname, abort_message, 1) 154 END IF 155 END IF 156 IF (rg/=pg) THEN 157 WRITE (lunout, *) 'iniphysiq: gravity discrepancy !!!' 158 WRITE (lunout, *) ' in the dynamics pg=', pg 159 WRITE (lunout, *) ' but in the physics RG=', rg 160 IF (abs(rg-pg)>0.01*pg) THEN 161 ! stop here if the relative difference is more than 1% 162 abort_message = 'gravity discrepancy' 163 CALL abort_gcm(modname, abort_message, 1) 164 END IF 165 END IF 166 IF (ra/=prad) THEN 167 WRITE (lunout, *) 'iniphysiq: planet radius discrepancy !!!' 168 WRITE (lunout, *) ' in the dynamics prad=', prad 169 WRITE (lunout, *) ' but in the physics RA=', ra 170 IF (abs(ra-prad)>0.01*prad) THEN 171 ! stop here if the relative difference is more than 1% 172 abort_message = 'planet radius discrepancy' 173 CALL abort_gcm(modname, abort_message, 1) 174 END IF 175 END IF 176 IF (rd/=pr) THEN 177 WRITE (lunout, *) 'iniphysiq: reduced gas constant discrepancy !!!' 178 WRITE (lunout, *) ' in the dynamics pr=', pr 179 WRITE (lunout, *) ' but in the physics RD=', rd 180 IF (abs(rd-pr)>0.01*pr) THEN 181 ! stop here if the relative difference is more than 1% 182 abort_message = 'reduced gas constant discrepancy' 183 CALL abort_gcm(modname, abort_message, 1) 184 END IF 185 END IF 186 IF (rcpd/=pcpp) THEN 187 WRITE (lunout, *) 'iniphysiq: specific heat discrepancy !!!' 188 WRITE (lunout, *) ' in the dynamics pcpp=', pcpp 189 WRITE (lunout, *) ' but in the physics RCPD=', rcpd 190 IF (abs(rcpd-pcpp)>0.01*pcpp) THEN 191 ! stop here if the relative difference is more than 1% 192 abort_message = 'specific heat discrepancy' 193 CALL abort_gcm(modname, abort_message, 1) 194 END IF 195 END IF 196 197 ! Additional initializations for aquaplanets 198 !$OMP PARALLEL 140 ! Additional initializations for aquaplanets 199 141 IF (iflag_phys>=100) THEN 200 142 CALL iniaqua(klon_omp, rlatd, rlond, iflag_phys) -
LMDZ5/trunk/libf/phydev/iophy.F90
r2097 r2311 234 234 real,allocatable,dimension(:) :: fieldok 235 235 236 IF (size(field)/=klon) CALL abort_ gcm('iophy::histwrite2d','Field first dimension not equal to klon',1)236 IF (size(field)/=klon) CALL abort_physic('iophy::histwrite2d','Field first dimension not equal to klon',1) 237 237 238 238 CALL Gather_omp(field,buffer_omp) … … 292 292 real,allocatable, dimension(:,:) :: fieldok 293 293 294 IF (size(field,1)/=klon) CALL abort_ gcm('iophy::histwrite3d','Field first dimension not equal to klon',1)294 IF (size(field,1)/=klon) CALL abort_physic('iophy::histwrite3d','Field first dimension not equal to klon',1) 295 295 nlev=size(field,2) 296 296 … … 355 355 IF (prt_level >= 10) WRITE(lunout,*)'Begin histrwrite2d_xios ',trim(field_name) 356 356 357 IF (SIZE(field)/=klon) CALL abort_ gcm('iophy::histwrite2d_xios','Field first DIMENSION not equal to klon',1)357 IF (SIZE(field)/=klon) CALL abort_physic('iophy::histwrite2d_xios','Field first DIMENSION not equal to klon',1) 358 358 359 359 CALL Gather_omp(field,buffer_omp) … … 393 393 394 394 !Et on.... écrit 395 IF (SIZE(field,1)/=klon) CALL abort_ gcm('iophy::histwrite3d','Field first DIMENSION not equal to klon',1)395 IF (SIZE(field,1)/=klon) CALL abort_physic('iophy::histwrite3d','Field first DIMENSION not equal to klon',1) 396 396 nlev=SIZE(field,2) 397 397 -
LMDZ5/trunk/libf/phylmd/aaam_bud.F90
r1992 r2311 123 123 IF (iim+1>801 .OR. jjm+1>401) THEN 124 124 abort_message = 'Pb de dimension dans aaam_bud' 125 CALL abort_ gcm(modname, abort_message, 1)125 CALL abort_physic(modname, abort_message, 1) 126 126 END IF 127 127 -
LMDZ5/trunk/libf/phylmd/add_phys_tend.F90
r2235 r2311 17 17 use phys_local_var_mod 18 18 use phys_state_var_mod 19 use print_control_mod, only: prt_level 19 20 IMPLICIT none 20 include "iniprint.h"21 21 include "YOMCST.h" 22 22 include "clesphys.h" -
LMDZ5/trunk/libf/phylmd/aeropt.F90
r1992 r2311 81 81 IF (rh<0.) THEN 82 82 abort_message = 'aeropt: RH < 0 not possible' 83 CALL abort_ gcm(modname, abort_message, 1)83 CALL abort_physic(modname, abort_message, 1) 84 84 END IF 85 85 IF (rh>85.) rh_num = 10 -
LMDZ5/trunk/libf/phylmd/aeropt_2bands.F90
r2148 r2311 22 22 23 23 INCLUDE "YOMCST.h" 24 INCLUDE "iniprint.h"25 24 26 25 ! … … 536 535 A1_SSSSM_b2(klev), A2_SSSSM_b2(klev), A3_SSSSM_b2(klev),& 537 536 B1_SSSSM_b2(klev), B2_SSSSM_b2(klev), C1_SSSSM_b2(klev), C2_SSSSM_b2(klev), stat=ierr) 538 IF (ierr /= 0) CALL abort_ gcm('aeropt_2bands', 'pb in allocation 1',1)537 IF (ierr /= 0) CALL abort_physic('aeropt_2bands', 'pb in allocation 1',1) 539 538 END IF 540 539 -
LMDZ5/trunk/libf/phylmd/aeropt_5wv.F90
r2146 r2311 588 588 A1_SSSSM(klev), A2_SSSSM(klev), A3_SSSSM(klev),& 589 589 B1_SSSSM(klev), B2_SSSSM(klev), C1_SSSSM(klev), C2_SSSSM(klev), stat=ierr) 590 IF (ierr /= 0) CALL abort_ gcm('aeropt_5mw', 'pb in allocation 1',1)590 IF (ierr /= 0) CALL abort_physic('aeropt_5mw', 'pb in allocation 1',1) 591 591 END IF 592 592 -
LMDZ5/trunk/libf/phylmd/calbeta_clim.F90
r2101 r2311 14 14 15 15 USE phys_cal_mod, only: year_len 16 USE print_control_mod, ONLY: prt_level 16 17 17 18 implicit none … … 24 25 real lat_nord,lat_sud 25 26 26 include "iniprint.h"27 27 !============================================== 28 28 -
LMDZ5/trunk/libf/phylmd/calltherm.F90
r1943 r2311 21 21 USE dimphy 22 22 USE indice_sol_mod 23 USE print_control_mod, ONLY: prt_level,lunout 23 24 24 25 implicit none … … 26 27 !#include "dimphy.h" 27 28 #include "thermcell.h" 28 #include "iniprint.h"29 29 30 30 … … 208 208 else if (iflag_thermals.eq.11) then 209 209 abort_message = 'cas non prevu dans calltherm' 210 CALL abort_ gcm(modname,abort_message,1)210 CALL abort_physic (modname,abort_message,1) 211 211 212 212 ! CALL thermcell_pluie(klon,klev,zdt & … … 260 260 else 261 261 abort_message = 'Cas des thermiques non prevu' 262 CALL abort_ gcm(modname,abort_message,1)262 CALL abort_physic (modname,abort_message,1) 263 263 endif 264 264 -
LMDZ5/trunk/libf/phylmd/carbon_cycle_mod.F90
r2265 r2311 92 92 USE surface_data, ONLY : ok_veget, type_ocean 93 93 USE phys_cal_mod, ONLY : mth_len 94 USE print_control_mod, ONLY: lunout 94 95 95 96 IMPLICIT NONE 96 97 INCLUDE "clesphys.h" 97 INCLUDE "iniprint.h"98 98 99 99 ! Input argument … … 135 135 WRITE(lunout,*) 'carbon_cycle_emis_comp = ',carbon_cycle_emis_comp 136 136 IF (carbon_cycle_emis_comp) THEN 137 CALL abort_ gcm('carbon_cycle_init', 'carbon_cycle_emis_comp option not yet implemented!!',1)137 CALL abort_physic('carbon_cycle_init', 'carbon_cycle_emis_comp option not yet implemented!!',1) 138 138 END IF 139 139 END IF … … 226 226 co2trac(itc)%updatefreq = 86400 227 227 ! DOES THIS WORK ???? Problematic due to implementation of the coupled fluxes... 228 CALL abort_ gcm('carbon_cycle_init','transport of total CO2 has to be implemented and tested',1)228 CALL abort_physic('carbon_cycle_init','transport of total CO2 has to be implemented and tested',1) 229 229 END SELECT 230 230 END DO … … 248 248 ! Allocate vector for storing fluxes to inject 249 249 ALLOCATE(dtr_add(klon,maxco2trac), stat=ierr) 250 IF (ierr /= 0) CALL abort_ gcm('carbon_cycle_init', 'pb in allocation 11',1)250 IF (ierr /= 0) CALL abort_physic('carbon_cycle_init', 'pb in allocation 11',1) 251 251 252 252 ! Allocate variables for cumulating fluxes from ORCHIDEE … … 254 254 IF (.NOT. carbon_cycle_tr .AND. carbon_cycle_cpl) THEN 255 255 ALLOCATE(fco2_land_day(klon), stat=ierr) 256 IF (ierr /= 0) CALL abort_ gcm('carbon_cycle_init', 'pb in allocation 2',1)256 IF (ierr /= 0) CALL abort_physic('carbon_cycle_init', 'pb in allocation 2',1) 257 257 fco2_land_day(1:klon) = 0. 258 258 259 259 ALLOCATE(fco2_lu_day(klon), stat=ierr) 260 IF (ierr /= 0) CALL abort_ gcm('carbon_cycle_init', 'pb in allocation 3',1)260 IF (ierr /= 0) CALL abort_physic('carbon_cycle_init', 'pb in allocation 3',1) 261 261 fco2_lu_day(1:klon) = 0. 262 262 END IF … … 268 268 ! IF (carbon_cycle_cpl .AND. type_ocean/='couple') THEN 269 269 ! WRITE(lunout,*) 'Coupling with ocean model is needed for carbon_cycle_cpl' 270 ! CALL abort_ gcm('carbon_cycle_init', 'coupled ocean is needed for carbon_cycle_cpl',1)270 ! CALL abort_physic('carbon_cycle_init', 'coupled ocean is needed for carbon_cycle_cpl',1) 271 271 ! END IF 272 272 ! 273 273 ! IF (carbon_cycle_cpl .AND..NOT. ok_veget) THEN 274 274 ! WRITE(lunout,*) 'Coupling with surface land model ORCHDIEE is needed for carbon_cycle_cpl' 275 ! CALL abort_ gcm('carbon_cycle_init', 'ok_veget is needed for carbon_cycle_cpl',1)275 ! CALL abort_physic('carbon_cycle_init', 'ok_veget is needed for carbon_cycle_cpl',1) 276 276 ! END IF 277 277 … … 279 279 teststop=0 280 280 DO it=1,teststop 281 CALL abort_ gcm('carbon_cycle_init', 'Entering loop from 1 to 0',1)281 CALL abort_physic('carbon_cycle_init', 'Entering loop from 1 to 0',1) 282 282 END DO 283 283 … … 285 285 ! No carbon tracers found in tracer.def. It is not possible to do carbon cycle 286 286 WRITE(lunout,*) 'No carbon tracers found in tracer.def. Not ok with carbon_cycle_tr and/or carbon_cycle_cp' 287 CALL abort_ gcm('carbon_cycle_init', 'No carbon tracers found in tracer.def',1)287 CALL abort_physic('carbon_cycle_init', 'No carbon tracers found in tracer.def',1) 288 288 END IF 289 289 … … 311 311 USE comgeomphy 312 312 USE indice_sol_mod 313 USE print_control_mod, ONLY: lunout 313 314 314 315 IMPLICIT NONE 315 316 316 317 INCLUDE "clesphys.h" 317 INCLUDE "iniprint.h"318 318 INCLUDE "YOMCST.h" 319 319 … … 371 371 CASE DEFAULT 372 372 WRITE(lunout,*) 'Error with tracer ',co2trac(it)%name 373 CALL abort_ gcm('carbon_cycle', 'No coupling implemented for this tracer',1)373 CALL abort_physic('carbon_cycle', 'No coupling implemented for this tracer',1) 374 374 END SELECT 375 375 ELSE -
LMDZ5/trunk/libf/phylmd/cdrag.F90
r2278 r2311 9 9 USE dimphy 10 10 USE indice_sol_mod 11 USE print_control_mod, ONLY: lunout 11 12 IMPLICIT NONE 12 13 ! ================================================================= c … … 98 99 ! INCLUDE "indicesol.h" 99 100 INCLUDE "clesphys.h" 100 INCLUDE "iniprint.h"101 101 ! 102 102 ! Quelques constantes et options: … … 143 143 WRITE(lunout,*)" The negative q1 is set to zero " 144 144 ! abort_message="voir ci-dessus" 145 ! CALL abort_ gcm(modname,abort_message,1)145 ! CALL abort_physic(modname,abort_message,1) 146 146 ENDIF 147 147 IF (ng_qsurf.GT.0) THEN … … 150 150 WRITE(lunout,*)" The negative qsurf is set to zero " 151 151 ! abort_message="voir ci-dessus" 152 ! CALL abort_ gcm(modname,abort_message,1)152 ! CALL abort_physic(modname,abort_message,1) 153 153 ENDIF 154 154 -
LMDZ5/trunk/libf/phylmd/change_srf_frac_mod.F90
r2243 r2311 33 33 USE ocean_slab_mod, ONLY : fsic, ocean_slab_frac 34 34 USE indice_sol_mod 35 36 INCLUDE "iniprint.h"35 USE print_control_mod, ONLY: lunout 36 37 37 INCLUDE "YOMCST.h" 38 38 !albedo SB >>> … … 109 109 WRITE(lunout,*)'at point = ',MINLOC(pctsrf(:,:)) 110 110 WRITE(lunout,*)'value = ',MINVAL(pctsrf(:,:)) 111 CALL abort_ gcm('change_srf_frac','Negative fraction',1)111 CALL abort_physic('change_srf_frac','Negative fraction',1) 112 112 END IF 113 113 … … 116 116 DO i= 1, klon 117 117 tmpsum = SUM(pctsrf(i,:)) 118 IF (ABS(1. - tmpsum) > 0.05) CALL abort_ gcm('change_srf_frac','Total fraction not equal 1.',1)118 IF (ABS(1. - tmpsum) > 0.05) CALL abort_physic('change_srf_frac','Total fraction not equal 1.',1) 119 119 END DO 120 120 END IF -
LMDZ5/trunk/libf/phylmd/clcdrag.F90
r2278 r2311 73 73 74 74 abort_message='obsolete, remplace par cdrag, use at you own risk' 75 CALL abort_ gcm(modname,abort_message,1)75 CALL abort_physic(modname,abort_message,1) 76 76 77 77 -
LMDZ5/trunk/libf/phylmd/climb_wind_mod.F90
r2159 r2311 44 44 45 45 ALLOCATE(alf1(klon), stat=ierr) 46 IF (ierr /= 0) CALL abort_ gcm(modname,'Pb in allocate alf1',1)46 IF (ierr /= 0) CALL abort_physic(modname,'Pb in allocate alf1',1) 47 47 48 48 ALLOCATE(alf2(klon), stat=ierr) 49 IF (ierr /= 0) CALL abort_ gcm(modname,'Pb in allocate alf2',1)49 IF (ierr /= 0) CALL abort_physic(modname,'Pb in allocate alf2',1) 50 50 51 51 ALLOCATE(Kcoefm(klon,klev), stat=ierr) 52 IF (ierr /= 0) CALL abort_ gcm(modname,'Pb in allocate Kcoefm',1)52 IF (ierr /= 0) CALL abort_physic(modname,'Pb in allocate Kcoefm',1) 53 53 54 54 ALLOCATE(Ccoef_U(klon,klev), stat=ierr) 55 IF (ierr /= 0) CALL abort_ gcm(modname,'Pb in allocate Ccoef_U',1)55 IF (ierr /= 0) CALL abort_physic(modname,'Pb in allocate Ccoef_U',1) 56 56 57 57 ALLOCATE(Dcoef_U(klon,klev), stat=ierr) 58 IF (ierr /= 0) CALL abort_ gcm(modname,'Pb in allocation Dcoef_U',1)58 IF (ierr /= 0) CALL abort_physic(modname,'Pb in allocation Dcoef_U',1) 59 59 60 60 ALLOCATE(Ccoef_V(klon,klev), stat=ierr) 61 IF (ierr /= 0) CALL abort_ gcm(modname,'Pb in allocation Ccoef_V',1)61 IF (ierr /= 0) CALL abort_physic(modname,'Pb in allocation Ccoef_V',1) 62 62 63 63 ALLOCATE(Dcoef_V(klon,klev), stat=ierr) 64 IF (ierr /= 0) CALL abort_ gcm(modname,'Pb in allocation Dcoef_V',1)64 IF (ierr /= 0) CALL abort_physic(modname,'Pb in allocation Dcoef_V',1) 65 65 66 66 ALLOCATE(Acoef_U(klon), Bcoef_U(klon), Acoef_V(klon), Bcoef_V(klon), STAT=ierr) -
LMDZ5/trunk/libf/phylmd/cloudth.F90
r2267 r2311 19 19 #include "YOETHF.h" 20 20 #include "FCTTRE.h" 21 #include "iniprint.h"22 21 #include "thermcell.h" 23 22 … … 284 283 #include "YOETHF.h" 285 284 #include "FCTTRE.h" 286 #include "iniprint.h"287 285 #include "thermcell.h" 288 286 -
LMDZ5/trunk/libf/phylmd/coef_diff_turb_mod.F90
r2243 r2311 18 18 USE dimphy 19 19 USE indice_sol_mod 20 USE print_control_mod, ONLY: prt_level, lunout 20 21 ! 21 22 ! Calculate coefficients(ycoefm, ycoefh) for turbulent diffusion in the … … 56 57 !**************************************************************************************** 57 58 INCLUDE "clesphys.h" 58 INCLUDE "iniprint.h"59 59 INCLUDE "compbl.h" 60 60 INCLUDE "YOETHF.h" … … 188 188 USE dimphy 189 189 USE indice_sol_mod 190 USE print_control_mod, ONLY: prt_level, lunout 190 191 191 192 !====================================================================== … … 211 212 INCLUDE "YOMCST.h" 212 213 INCLUDE "FCTTRE.h" 213 INCLUDE "iniprint.h"214 214 INCLUDE "compbl.h" 215 215 ! -
LMDZ5/trunk/libf/phylmd/coefcdrag.F90
r2232 r2311 78 78 79 79 abort_message='obsolete, remplace par cdrag, use at you own risk' 80 CALL abort_ gcm(modname,abort_message,1)80 CALL abort_physic(modname,abort_message,1) 81 81 82 82 ! -
LMDZ5/trunk/libf/phylmd/concvl.F90
r2306 r2311 31 31 USE infotrac, ONLY: nbtr 32 32 USE phys_local_var_mod, ONLY: omega 33 USE print_control_mod, ONLY: prt_level, lunout 33 34 IMPLICIT NONE 34 35 ! ====================================================================== … … 215 216 include "YOETHF.h" 216 217 include "FCTTRE.h" 217 include "iniprint.h"218 218 !jyg< 219 219 include "conema3.h" -
LMDZ5/trunk/libf/phylmd/condsurf.F90
r1992 r2311 56 56 IF (jour<0 .OR. jour>(360-1)) THEN 57 57 PRINT *, 'Le jour demande n est pas correct: ', jour 58 CALL abort_ gcm('condsurf', '', 1)58 CALL abort_physic('condsurf', '', 1) 59 59 END IF 60 60 … … 76 76 PRINT *, ' trouve pas sur les ', nannemax, ' annees a partir de ' 77 77 PRINT *, ' l annee de debut', annee_ref 78 CALL abort_ gcm('condsurf', '', 1)78 CALL abort_physic('condsurf', '', 1) 79 79 80 80 100 CONTINUE … … 96 96 WRITE (6, *) ' l an 2000 ) , n existe pas ! ' 97 97 WRITE (6, *) ' ierr = ', ierr 98 CALL abort_ gcm('condsurf', '', 1)98 CALL abort_physic('condsurf', '', 1) 99 99 END IF 100 100 ! DO k = 1, jour … … 109 109 ierr = nf_inq_varid(nid, 'BILS', nvarid) 110 110 IF (ierr/=nf_noerr) THEN 111 CALL abort_ gcm('cond_surf', 'Le champ <BILS> est absent', 1)111 CALL abort_physic('cond_surf', 'Le champ <BILS> est absent', 1) 112 112 END IF 113 113 PRINT *, 'debut,epais', debut, epais, 'jour,jourvrai', jour, jourvrai … … 118 118 #endif 119 119 IF (ierr/=nf_noerr) THEN 120 CALL abort_ gcm('condsurf', 'Lecture echouee pour <BILS>', 1)120 CALL abort_physic('condsurf', 'Lecture echouee pour <BILS>', 1) 121 121 END IF 122 122 ! ENDDO !k = 1, jour -
LMDZ5/trunk/libf/phylmd/conf_phys_m.F90
r2305 r2311 29 29 USE control_mod 30 30 USE mod_grid_phy_lmdz, only: klon_glo 31 31 USE print_control_mod, ONLY: lunout 32 32 33 33 … … 39 39 40 40 include "thermcell.h" 41 include "iniprint.h"42 41 43 42 … … 249 248 WRITE(lunout,*)'Variable OCEAN has been replaced by the variable type_ocean.' 250 249 WRITE(lunout,*)'You have to update your parameter file physiq.def to succed running' 251 CALL abort_ gcm('conf_phys','Variable OCEAN no longer existing, use variable name type_ocean',1)250 CALL abort_physic('conf_phys','Variable OCEAN no longer existing, use variable name type_ocean',1) 252 251 END IF 253 252 … … 262 261 WRITE(lunout,*)'ERROR! Timestep of coupling between atmosphere and ocean' 263 262 WRITE(lunout,*)'cannot be zero.' 264 CALL abort_ gcm('conf_phys','t_coupl = 0.',1)263 CALL abort_physic('conf_phys','t_coupl = 0.',1) 265 264 END IF 266 265 … … 2115 2114 IF (type_ocean=='couple' .AND. (version_ocean/='opa8' .AND. version_ocean/='nemo') ) THEN 2116 2115 WRITE(lunout,*)' ERROR version_ocean=',version_ocean,' not valid in coupled configuration' 2117 CALL abort_ gcm('conf_phys','version_ocean not valid',1)2116 CALL abort_physic('conf_phys','version_ocean not valid',1) 2118 2117 END IF 2119 2118 … … 2123 2122 .AND. version_ocean/='sicINT' .AND. version_ocean/='sicNO') THEN 2124 2123 WRITE(lunout,*)' ERROR version_ocean=',version_ocean,' not valid with slab ocean' 2125 CALL abort_ gcm('conf_phys','version_ocean not valid',1)2124 CALL abort_physic('conf_phys','version_ocean not valid',1) 2126 2125 END IF 2127 2126 … … 2130 2129 IF (ok_ade .OR. ok_aie) THEN 2131 2130 IF ( flag_aerosol .EQ. 0 ) THEN 2132 CALL abort_ gcm('conf_phys','flag_aerosol=0 not compatible avec ok_ade ou ok_aie=.TRUE.',1)2131 CALL abort_physic('conf_phys','flag_aerosol=0 not compatible avec ok_ade ou ok_aie=.TRUE.',1) 2133 2132 END IF 2134 2133 IF ( .NOT. new_aod .AND. flag_aerosol .NE. 1) THEN 2135 CALL abort_ gcm('conf_phys','new_aod=.FALSE. not compatible avec flag_aerosol=1',1)2134 CALL abort_physic('conf_phys','new_aod=.FALSE. not compatible avec flag_aerosol=1',1) 2136 2135 END IF 2137 2136 END IF … … 2139 2138 ! ok_cdnc must be set to y if ok_aie is activated 2140 2139 IF (ok_aie .AND. .NOT. ok_cdnc) THEN 2141 CALL abort_ gcm('conf_phys', 'ok_cdnc must be set to y if ok_aie is activated',1)2140 CALL abort_physic('conf_phys', 'ok_cdnc must be set to y if ok_aie is activated',1) 2142 2141 ENDIF 2143 2142 … … 2330 2329 2331 2330 use IOIPSL 2331 USE print_control_mod, ONLY: lunout 2332 2332 implicit none 2333 include "iniprint.h"2334 2333 ! Configuration de l'interace atm/surf 2335 2334 ! -
LMDZ5/trunk/libf/phylmd/conflx.F90
r1992 r2311 992 992 pdpmel, ktopm2, pmflxr, pmflxs) 993 993 USE dimphy 994 USE print_control_mod, ONLY: prt_level 994 995 IMPLICIT NONE 995 996 ! ---------------------------------------------------------------------- … … 1002 1003 include "YOETHF.h" 1003 1004 include "YOECUMF.h" 1004 include "iniprint.h"1005 1005 1006 1006 REAL cevapcu(klon, klev) -
LMDZ5/trunk/libf/phylmd/cosp/cosp_output_mod.F90
r2297 r2311 100 100 USE ioipsl 101 101 USE phys_cal_mod 102 USE print_control_mod, ONLY: lunout 102 103 103 104 #ifdef CPP_XIOS … … 123 124 !!! Variables d'entree 124 125 include "temps.h" 125 INCLUDE 'iniprint.h'126 126 127 127 #ifdef CPP_XIOS -
LMDZ5/trunk/libf/phylmd/cosp/cosp_output_write_mod.F90
r2297 r2311 22 22 USE ioipsl 23 23 USE control_mod 24 USE print_control_mod, ONLY: lunout,prt_level 24 25 25 26 #ifdef CPP_XIOS … … 45 46 46 47 include "temps.h" 47 include "iniprint.h"48 48 49 49 Nlevout = vgrid%Nlvgrid … … 268 268 use iophy 269 269 USE mod_phys_lmdz_para 270 USE print_control_mod, ONLY: lunout,prt_level 270 271 #ifdef CPP_XIOS 271 272 USE wxios … … 277 278 INCLUDE "temps.h" 278 279 INCLUDE "clesphys.h" 279 include "iniprint.h"280 280 281 281 INTEGER :: iff … … 332 332 use iophy 333 333 USE mod_phys_lmdz_para 334 USE print_control_mod, ONLY: lunout,prt_level 334 335 335 336 #ifdef CPP_XIOS … … 343 344 INCLUDE "temps.h" 344 345 INCLUDE "clesphys.h" 345 include "iniprint.h"346 346 347 347 INTEGER :: iff, klevs … … 428 428 USE ioipsl 429 429 use iophy 430 USE print_control_mod, ONLY: lunout,prt_level 430 431 431 432 #ifdef CPP_XIOS … … 435 436 IMPLICIT NONE 436 437 INCLUDE 'dimensions.h' 437 INCLUDE 'iniprint.h'438 438 INCLUDE 'clesphys.h' 439 439 … … 467 467 !Et sinon on.... écrit 468 468 IF (SIZE(field)/=klon) & 469 CALL abort_ gcm('iophy::histwrite2d_cosp','Field first DIMENSION not equal to klon',1)469 CALL abort_physic('iophy::histwrite2d_cosp','Field first DIMENSION not equal to klon',1) 470 470 471 471 CALL Gather_omp(field,buffer_omp) … … 517 517 USE ioipsl 518 518 use iophy 519 USE print_control_mod, ONLY: lunout,prt_level 519 520 520 521 #ifdef CPP_XIOS … … 525 526 IMPLICIT NONE 526 527 INCLUDE 'dimensions.h' 527 INCLUDE 'iniprint.h'528 528 INCLUDE 'clesphys.h' 529 529 … … 568 568 !Et sinon on.... écrit 569 569 IF (SIZE(field,1)/=klon) & 570 CALL abort_ gcm('iophy::histwrite3d','Field first DIMENSION not equal to klon',1)570 CALL abort_physic('iophy::histwrite3d','Field first DIMENSION not equal to klon',1) 571 571 nlev=SIZE(field,2) 572 572 … … 613 613 ! en utilisant les routines getin de IOIPSL 614 614 use ioipsl 615 USE print_control_mod, ONLY: lunout,prt_level 615 616 616 617 IMPLICIT NONE 617 include 'iniprint.h'618 618 619 619 CHARACTER(LEN=20) :: nam_var, nnam_var -
LMDZ5/trunk/libf/phylmd/cpl_mod.F90
r2075 r2311 102 102 USE surface_data 103 103 USE indice_sol_mod 104 USE print_control_mod, ONLY: lunout 104 105 105 106 INCLUDE "dimensions.h" 106 107 INCLUDE "temps.h" 107 INCLUDE "iniprint.h"108 108 109 109 ! Input arguments … … 204 204 IF (sum_error /= 0) THEN 205 205 abort_message='Pb allocation variables couplees' 206 CALL abort_ gcm(modname,abort_message,1)206 CALL abort_physic(modname,abort_message,1) 207 207 ENDIF 208 208 !************************************************************************************* … … 279 279 IF (carbon_cycle_cpl .AND. version_ocean=='opa8') THEN 280 280 abort_message='carbon_cycle_cpl does not work with opa8' 281 CALL abort_ gcm(modname,abort_message,1)281 CALL abort_physic(modname,abort_message,1) 282 282 END IF 283 283 … … 299 299 300 300 INCLUDE "temps.h" 301 INCLUDE "iniprint.h"302 301 INCLUDE "YOMCST.h" 303 302 INCLUDE "dimensions.h" … … 668 667 IF (sum_error /= 0) THEN 669 668 abort_message='Pb allocation variables couplees pour l''ecriture' 670 CALL abort_ gcm(modname,abort_message,1)669 CALL abort_physic(modname,abort_message,1) 671 670 ENDIF 672 671 ENDIF … … 853 852 IF (sum_error /= 0) THEN 854 853 abort_message='Pb allocation variables couplees pour l''ecriture' 855 CALL abort_ gcm(modname,abort_message,1)854 CALL abort_physic(modname,abort_message,1) 856 855 ENDIF 857 856 ENDIF … … 1291 1290 IF (sum_error /= 0) THEN 1292 1291 abort_message='Pb in deallocation of cpl_xxxx2D coupling variables' 1293 CALL abort_ gcm(modname,abort_message,1)1292 CALL abort_physic(modname,abort_message,1) 1294 1293 ENDIF 1295 1294 -
LMDZ5/trunk/libf/phylmd/cv30_routines.F90
r1992 r2311 733 733 iflag, nk, icb, icbs, plcl, tnk, qnk, gznk, pbase, buoybase, t, q, qs, u, & 734 734 v, gz, th, tra, h, lv, cpn, p, ph, tv, tp, tvp, clw, sig, w0) 735 USE print_control_mod, ONLY: lunout 735 736 IMPLICIT NONE 736 737 737 738 include "cv30param.h" 738 include 'iniprint.h'739 739 740 740 ! inputs: … … 813 813 WRITE (lunout, *) 'strange! nn not equal to ncum: ', nn, ncum 814 814 abort_message = '' 815 CALL abort_ gcm(modname, abort_message, 1)815 CALL abort_physic(modname, abort_message, 1) 816 816 END IF 817 817 -
LMDZ5/trunk/libf/phylmd/cv3_inicp.F90
r2197 r2311 109 109 PRINT *, 'WARNING:: AREA OF MIXING PDF IS::', aire 110 110 abort_message = '' 111 CALL abort_ gcm(modname, abort_message, 1)111 CALL abort_physic(modname, abort_message, 1) 112 112 ELSE 113 113 PRINT *, 'Area, mean & std deviation are ::', aire, mu, sigma -
LMDZ5/trunk/libf/phylmd/cv3_inip.F90
r2195 r2311 30 30 !---------------------------------------------- 31 31 32 USE print_control_mod, ONLY: prt_level, lunout 32 33 IMPLICIT NONE 33 34 34 35 include "YOMCST2.h" 35 36 include 'iniprint.h'37 36 38 37 !---------------------------------------------- … … 138 137 WRITE (lunout, *) 'WARNING:: AREA OF MIXING PDF IS::', aire 139 138 abort_message = '' 140 CALL abort_ gcm(modname, abort_message, 1)139 CALL abort_physic(modname, abort_message, 1) 141 140 ELSE 142 141 PRINT *, 'Area, mean & std deviation are ::', aire, mu, sigma -
LMDZ5/trunk/libf/phylmd/cv3_routines.F90
r2306 r2311 891 891 h, lv, cpn, p, ph, tv, tp, tvp, clw, & 892 892 sig, w0) 893 USE print_control_mod, ONLY: lunout 893 894 IMPLICIT NONE 894 895 895 896 include "cv3param.h" 896 include 'iniprint.h'897 897 898 898 !inputs: … … 971 971 WRITE (lunout, *) 'strange! nn not equal to ncum: ', nn, ncum 972 972 abort_message = '' 973 CALL abort_ gcm(modname, abort_message, 1)973 CALL abort_physic(modname, abort_message, 1) 974 974 END IF 975 975 -
LMDZ5/trunk/libf/phylmd/cv3a_compress.F90
r2259 r2311 154 154 PRINT *, 'WARNING nn not equal to ncum: ', nn, ncum 155 155 abort_message = '' 156 CALL abort_ gcm(modname, abort_message, 1)156 CALL abort_physic(modname, abort_message, 1) 157 157 END IF 158 158 … … 185 185 PRINT *, 'WARNING nn not equal to ncum: ', nn, ncum 186 186 abort_message = '' 187 CALL abort_ gcm(modname, abort_message, 1)187 CALL abort_physic(modname, abort_message, 1) 188 188 END IF 189 189 ! -
LMDZ5/trunk/libf/phylmd/cv3p1_closure.F90
r2253 r2311 19 19 ! ************************************************************** 20 20 21 USE print_control_mod, ONLY: prt_level, lunout 21 22 IMPLICIT NONE 22 23 … … 26 27 include "YOMCST.h" 27 28 include "conema3.h" 28 include "iniprint.h"29 29 30 30 ! input: … … 552 552 , il, alp2(il), alp(il), cin(il) 553 553 abort_message = '' 554 CALL abort_ gcm(modname, abort_message, 1)554 CALL abort_physic(modname, abort_message, 1) 555 555 END IF 556 556 cbmfmax(il) = sigmax*wb2(il)*100.*p(il, icb(il))/(rrd*tv(il,icb(il))) -
LMDZ5/trunk/libf/phylmd/cv_routines.F90
r1992 r2311 396 396 tp1, tvp1, clw1, iflag, nk, icb, cbmf, plcl, tnk, qnk, gznk, t, q, qs, u, & 397 397 v, gz, h, lv, cpn, p, ph, tv, tp, tvp, clw, dph) 398 USE print_control_mod, ONLY: lunout 398 399 IMPLICIT NONE 399 400 … … 422 423 CHARACTER (LEN=20) :: modname = 'cv_compress' 423 424 CHARACTER (LEN=80) :: abort_message 424 425 include 'iniprint.h'426 425 427 426 … … 453 452 WRITE (lunout, *) 'strange! nn not equal to ncum: ', nn, ncum 454 453 abort_message = '' 455 CALL abort_ gcm(modname, abort_message, 1)454 CALL abort_physic(modname, abort_message, 1) 456 455 END IF 457 456 -
LMDZ5/trunk/libf/phylmd/cva_driver.F90
r2306 r2311 39 39 40 40 USE dimphy 41 USE print_control_mod, ONLY: prt_level, lunout 41 42 IMPLICIT NONE 42 43 … … 161 162 include "dimensions.h" 162 163 !!!!!#include "dimphy.h" 163 include 'iniprint.h'164 164 165 165 ! Input … … 690 690 WRITE (lunout, *) 'changer la valeur de sig2feed dans physiq.def' 691 691 abort_message = '' 692 CALL abort_ gcm(modname, abort_message, 1)692 CALL abort_physic(modname, abort_message, 1) 693 693 END IF 694 694 -
LMDZ5/trunk/libf/phylmd/dyn1d/1DUTILS.h
r2239 r2311 15 15 use ioipsl_getincom 16 16 #endif 17 USE print_control_mod, ONLY: lunout 17 18 IMPLICIT NONE 18 19 !----------------------------------------------------------------------- … … 27 28 #include "fcg_gcssold.h" 28 29 #include "fcg_racmo.h" 29 #include "iniprint.h"30 30 ! 31 31 ! -
LMDZ5/trunk/libf/phylmd/dyn1d/lmdz1d.F90
r2255 r2311 22 22 USE mod_1D_cases_read 23 23 USE mod_1D_amma_read 24 USE print_control_mod, ONLY: prt_level 24 25 25 26 implicit none … … 28 29 #include "temps.h" 29 30 !!#include "control.h" 30 #include "iniprint.h"31 31 #include "clesphys.h" 32 32 #include "dimsoil.h" -
LMDZ5/trunk/libf/phylmd/ener_conserv.F90
r2051 r2311 88 88 ELSE 89 89 abort_message = 'iflag_ener_conserv non prevu' 90 CALL abort_ gcm(modname,abort_message,1)90 CALL abort_physic (modname,abort_message,1) 91 91 ENDIF 92 92 -
LMDZ5/trunk/libf/phylmd/fisrtilp.F90
r2236 r2311 14 14 USE dimphy 15 15 USE icefrac_lsc_mod ! compute ice fraction (JBM 3/14) 16 USE print_control_mod, ONLY: prt_level, lunout 16 17 IMPLICIT none 17 18 !====================================================================== … … 28 29 include "fisrtilp.h" 29 30 include "nuage.h" ! JBM (3/14) 30 include "iniprint.h"31 31 32 32 ! -
LMDZ5/trunk/libf/phylmd/fisrtilp_tr.F90
r1992 r2311 10 10 11 11 USE dimphy 12 USE print_control_mod, ONLY: lunout 12 13 IMPLICIT NONE 13 14 ! ====================================================================== … … 22 23 include "YOMCST.h" 23 24 include "tracstoke.h" 24 include "iniprint.h"25 25 26 26 ! Arguments: -
LMDZ5/trunk/libf/phylmd/fonte_neige_mod.F90
r1907 r2311 63 63 IF (error /= 0) THEN 64 64 abort_message='Pb allocation run_off_lic' 65 CALL abort_ gcm(modname,abort_message,1)65 CALL abort_physic(modname,abort_message,1) 66 66 ENDIF 67 67 run_off_lic_0(:) = restart_runoff(:) … … 74 74 IF (error /= 0) THEN 75 75 abort_message='Pb allocation run_off_ter' 76 CALL abort_ gcm(modname,abort_message,1)76 CALL abort_physic(modname,abort_message,1) 77 77 ENDIF 78 78 run_off_ter(:) = 0. … … 81 81 IF (error /= 0) THEN 82 82 abort_message='Pb allocation run_off_lic' 83 CALL abort_ gcm(modname,abort_message,1)83 CALL abort_physic(modname,abort_message,1) 84 84 ENDIF 85 85 run_off_lic(:) = 0. … … 88 88 IF (error /= 0) THEN 89 89 abort_message='Pb allocation ffonte_global' 90 CALL abort_ gcm(modname,abort_message,1)90 CALL abort_physic(modname,abort_message,1) 91 91 ENDIF 92 92 ffonte_global(:,:) = 0.0 … … 95 95 IF (error /= 0) THEN 96 96 abort_message='Pb allocation fqfonte_global' 97 CALL abort_ gcm(modname,abort_message,1)97 CALL abort_physic(modname,abort_message,1) 98 98 ENDIF 99 99 fqfonte_global(:,:) = 0.0 … … 102 102 IF (error /= 0) THEN 103 103 abort_message='Pb allocation fqcalving_global' 104 CALL abort_ gcm(modname,abort_message,1)104 CALL abort_physic(modname,abort_message,1) 105 105 ENDIF 106 106 fqcalving_global(:,:) = 0.0 -
LMDZ5/trunk/libf/phylmd/grid_noro_m.F90
r2293 r2311 46 46 !=============================================================================== 47 47 USE assert_eq_m, ONLY: assert_eq 48 USE print_control_mod, ONLY: lunout 48 49 IMPLICIT NONE 49 50 ! include "dimensions.h" 50 include "iniprint.h"51 51 REAL, PARAMETER :: epsfra = 1.e-5 52 52 !------------------------------------------------------------------------------- … … 94 94 SIZE(zgam,2),SIZE(zthe,2),SIZE(zpic,2),SIZE(zval,2), & 95 95 SIZE(mask,2)],TRIM(modname)//" jmar") 96 ! IF(imar/=iim) CALL abort_ gcm(TRIM(modname),'imar/=iim' ,1)97 ! IF(jmar/=jjm+1) CALL abort_ gcm(TRIM(modname),'jmar/=jjm+1',1)96 ! IF(imar/=iim) CALL abort_physic(TRIM(modname),'imar/=iim' ,1) 97 ! IF(jmar/=jjm+1) CALL abort_physic(TRIM(modname),'jmar/=jjm+1',1) 98 98 iext=imdp/10 !--- OK up to 36 degrees cell 99 99 xpi = ACOS(-1.) -
LMDZ5/trunk/libf/phylmd/hgardfou.F90
r2235 r2311 5 5 USE phys_state_var_mod 6 6 USE indice_sol_mod 7 USE print_control_mod, ONLY: lunout 7 8 IMPLICIT NONE 8 9 ! ====================================================================== … … 11 12 include "dimensions.h" 12 13 include "YOMCST.h" 13 include "iniprint.h"14 14 REAL t(klon, klev), tsol(klon, nbsrf) 15 15 CHARACTER(len=*), intent(in):: text … … 129 129 END DO 130 130 131 ! IF (.NOT. ok) CALL abort_ gcm(modname, text, 1)131 ! IF (.NOT. ok) CALL abort_physic(modname, text, 1) 132 132 IF (.NOT. ok) abortphy=1 133 133 -
LMDZ5/trunk/libf/phylmd/ini_wake.F90
r2197 r2311 4 4 SUBROUTINE ini_wake(wape, fip, it_wape_prescr, wape_prescr, fip_prescr, & 5 5 alp_bl_prescr, ale_bl_prescr) 6 USE print_control_mod, ONLY: lunout 6 7 IMPLICIT NONE 7 8 ! ************************************************************** … … 38 39 ! alpbl = Alp de PBL lue 39 40 40 include 'iniprint.h'41 41 ! declarations 42 42 REAL wape, fip, wape_prescr, fip_prescr -
LMDZ5/trunk/libf/phylmd/inifis_mod.F90
r2309 r2311 1 ! $Id$ 2 MODULE inifis_mod 1 3 2 ! $Id$ 4 CONTAINS 3 5 4 SUBROUTINE inifis(ngrid, nlayer, punjours, pdayref, ptimestep, plat, plon, & 5 parea, prad, pg, pr, pcpp)6 USE dimphy6 SUBROUTINE inifis(punjours, prad, pg, pr, pcpp) 7 ! Initialize some physical constants and settings 8 USE print_control_mod, ONLY: init_print_control, lunout 7 9 IMPLICIT NONE 8 10 9 ! ======================================================================= 11 include "YOMCST.h" 12 REAL,INTENT(IN) :: prad, pg, pr, pcpp, punjours 10 13 11 ! subject:12 ! --------13 14 ! Initialisation for the physical parametrisations of the LMD15 ! martian atmospheric general circulation modele.16 17 ! author: Frederic Hourdin 15 / 10 /9318 ! -------19 20 ! arguments:21 ! ----------22 23 ! input:24 ! ------25 26 ! ngrid Size of the horizontal grid.27 ! All internal loops are performed on that grid.28 ! nlayer Number of vertical layers.29 ! pdayref Day of reference for the simulation30 ! firstcall True at the first call31 ! lastcall True at the last call32 ! pday Number of days counted from the North. Spring33 ! equinoxe.34 35 ! =======================================================================36 37 ! -----------------------------------------------------------------------38 ! declarations:39 ! -------------40 41 ! ym#include "dimensions.h"42 ! ym#include "dimphy.h"43 44 include 'iniprint.h'45 REAL prad, pg, pr, pcpp, punjours46 47 INTEGER ngrid, nlayer48 REAL plat(ngrid), plon(ngrid), parea(klon)49 INTEGER pdayref50 51 REAL ptimestep52 14 CHARACTER (LEN=20) :: modname = 'inifis' 53 15 CHARACTER (LEN=80) :: abort_message 54 16 17 ! Initialize flags lunout, prt_level, debug 18 CALL init_print_control 55 19 56 IF (nlayer/=klev) THEN 57 PRINT *, 'STOP in inifis' 58 PRINT *, 'Probleme de dimensions :' 59 PRINT *, 'nlayer = ', nlayer 60 PRINT *, 'klev = ', klev 61 abort_message = '' 62 CALL abort_gcm(modname, abort_message, 1) 20 ! suphel => initialize some physical constants (orbital parameters, 21 ! geoid, gravity, thermodynamical constants, etc.) in the 22 ! physics 23 CALL suphel 24 25 ! check that physical constants set in 'suphel' are coherent 26 ! with values set in the dynamics: 27 IF (rday/=punjours) THEN 28 WRITE (lunout, *) 'inifis: length of day discrepancy!!!' 29 WRITE (lunout, *) ' in the dynamics punjours=', punjours 30 WRITE (lunout, *) ' but in the physics RDAY=', rday 31 IF (abs(rday-punjours)>0.01*punjours) THEN 32 ! stop here if the relative difference is more than 1% 33 abort_message = 'length of day discrepancy' 34 CALL abort_physic(modname, abort_message, 1) 35 END IF 36 END IF 37 IF (rg/=pg) THEN 38 WRITE (lunout, *) 'inifis: gravity discrepancy !!!' 39 WRITE (lunout, *) ' in the dynamics pg=', pg 40 WRITE (lunout, *) ' but in the physics RG=', rg 41 IF (abs(rg-pg)>0.01*pg) THEN 42 ! stop here if the relative difference is more than 1% 43 abort_message = 'gravity discrepancy' 44 CALL abort_physic(modname, abort_message, 1) 45 END IF 46 END IF 47 IF (ra/=prad) THEN 48 WRITE (lunout, *) 'inifis: planet radius discrepancy !!!' 49 WRITE (lunout, *) ' in the dynamics prad=', prad 50 WRITE (lunout, *) ' but in the physics RA=', ra 51 IF (abs(ra-prad)>0.01*prad) THEN 52 ! stop here if the relative difference is more than 1% 53 abort_message = 'planet radius discrepancy' 54 CALL abort_physic(modname, abort_message, 1) 55 END IF 56 END IF 57 IF (rd/=pr) THEN 58 WRITE (lunout, *) 'inifis: reduced gas constant discrepancy !!!' 59 WRITE (lunout, *) ' in the dynamics pr=', pr 60 WRITE (lunout, *) ' but in the physics RD=', rd 61 IF (abs(rd-pr)>0.01*pr) THEN 62 ! stop here if the relative difference is more than 1% 63 abort_message = 'reduced gas constant discrepancy' 64 CALL abort_physic(modname, abort_message, 1) 65 END IF 66 END IF 67 IF (rcpd/=pcpp) THEN 68 WRITE (lunout, *) 'inifis: specific heat discrepancy !!!' 69 WRITE (lunout, *) ' in the dynamics pcpp=', pcpp 70 WRITE (lunout, *) ' but in the physics RCPD=', rcpd 71 IF (abs(rcpd-pcpp)>0.01*pcpp) THEN 72 ! stop here if the relative difference is more than 1% 73 abort_message = 'specific heat discrepancy' 74 CALL abort_physic(modname, abort_message, 1) 75 END IF 63 76 END IF 64 77 65 IF (ngrid/=klon) THEN 66 PRINT *, 'STOP in inifis' 67 PRINT *, 'Probleme de dimensions :' 68 PRINT *, 'ngrid = ', ngrid 69 PRINT *, 'klon = ', klon 70 abort_message = '' 71 CALL abort_gcm(modname, abort_message, 1) 72 END IF 73 74 RETURN 75 abort_message = 'Cette version demande les fichier rnatur.dat & 76 & & 77 & et surf.def' 78 CALL abort_gcm(modname, abort_message, 1) 79 80 END SUBROUTINE inifis 78 END SUBROUTINE inifis 79 80 END MODULE inifis_mod -
LMDZ5/trunk/libf/phylmd/init_be.F90
r1907 r2311 65 65 ! la source est maintenant définie independemment de la valeur de klev. 66 66 !!! Source actuellement definie pour klev = 19 et klev >= 39 67 !! IF (klev /= 19 .AND. klev<39) CALL abort_ gcm("init_be","Source du be7 necessite klev=19 ou klev>=39",1)67 !! IF (klev /= 19 .AND. klev<39) CALL abort_physic("init_be","Source du be7 necessite klev=19 ou klev>=39",1) 68 68 !!! 69 69 ! Definition des constantes -
LMDZ5/trunk/libf/phylmd/interfoce_lim.F90
r1907 r2311 118 118 IF (ierr.NE.NF_NOERR) THEN 119 119 abort_message = 'Pb d''ouverture du fichier de conditions aux limites' 120 CALL abort_ gcm(modname,abort_message,1)120 CALL abort_physic(modname,abort_message,1) 121 121 ENDIF 122 122 … … 135 135 IF (ierr /= NF_NOERR) THEN 136 136 abort_message = 'Le champ <FOCE> est absent' 137 CALL abort_ gcm(modname,abort_message,1)137 CALL abort_physic(modname,abort_message,1) 138 138 ENDIF 139 139 #ifdef NC_DOUBLE … … 144 144 IF (ierr /= NF_NOERR) THEN 145 145 abort_message = 'Lecture echouee pour <FOCE>' 146 CALL abort_ gcm(modname,abort_message,1)146 CALL abort_physic(modname,abort_message,1) 147 147 ENDIF 148 148 ! … … 152 152 IF (ierr /= NF_NOERR) THEN 153 153 abort_message = 'Le champ <FSIC> est absent' 154 CALL abort_ gcm(modname,abort_message,1)154 CALL abort_physic(modname,abort_message,1) 155 155 ENDIF 156 156 #ifdef NC_DOUBLE … … 161 161 IF (ierr /= NF_NOERR) THEN 162 162 abort_message = 'Lecture echouee pour <FSIC>' 163 CALL abort_ gcm(modname,abort_message,1)163 CALL abort_physic(modname,abort_message,1) 164 164 ENDIF 165 165 ! … … 169 169 IF (ierr /= NF_NOERR) THEN 170 170 abort_message = 'Le champ <FTER> est absent' 171 CALL abort_ gcm(modname,abort_message,1)171 CALL abort_physic(modname,abort_message,1) 172 172 ENDIF 173 173 #ifdef NC_DOUBLE … … 178 178 IF (ierr /= NF_NOERR) THEN 179 179 abort_message = 'Lecture echouee pour <FTER>' 180 CALL abort_ gcm(modname,abort_message,1)180 CALL abort_physic(modname,abort_message,1) 181 181 ENDIF 182 182 ! … … 186 186 IF (ierr /= NF_NOERR) THEN 187 187 abort_message = 'Le champ <FLIC> est absent' 188 CALL abort_ gcm(modname,abort_message,1)188 CALL abort_physic(modname,abort_message,1) 189 189 ENDIF 190 190 #ifdef NC_DOUBLE … … 195 195 IF (ierr /= NF_NOERR) THEN 196 196 abort_message = 'Lecture echouee pour <FLIC>' 197 CALL abort_ gcm(modname,abort_message,1)197 CALL abort_physic(modname,abort_message,1) 198 198 ENDIF 199 199 ! … … 203 203 IF (ierr /= NF_NOERR) THEN 204 204 abort_message = 'Le champ <NAT> est absent' 205 CALL abort_ gcm(modname,abort_message,1)205 CALL abort_physic(modname,abort_message,1) 206 206 ENDIF 207 207 #ifdef NC_DOUBLE … … 212 212 IF (ierr /= NF_NOERR) THEN 213 213 abort_message = 'Lecture echouee pour <NAT>' 214 CALL abort_ gcm(modname,abort_message,1)214 CALL abort_physic(modname,abort_message,1) 215 215 ENDIF 216 216 ! … … 237 237 IF (ierr /= NF_NOERR) THEN 238 238 abort_message = 'Le champ <SST> est absent' 239 CALL abort_ gcm(modname,abort_message,1)239 CALL abort_physic(modname,abort_message,1) 240 240 ENDIF 241 241 #ifdef NC_DOUBLE … … 246 246 IF (ierr /= NF_NOERR) THEN 247 247 abort_message = 'Lecture echouee pour <SST>' 248 CALL abort_ gcm(modname,abort_message,1)248 CALL abort_physic(modname,abort_message,1) 249 249 ENDIF 250 250 -
LMDZ5/trunk/libf/phylmd/iophy.F90
r2137 r2311 54 54 IMPLICIT NONE 55 55 INCLUDE 'dimensions.h' 56 include 'iniprint.h'57 56 REAL,DIMENSION(klon),INTENT(IN) :: rlon 58 57 REAL,DIMENSION(klon),INTENT(IN) :: rlat … … 571 570 INCLUDE "temps.h" 572 571 INCLUDE "clesphys.h" 573 INCLUDE "iniprint.h"574 572 575 573 INTEGER :: iff … … 650 648 nid_files, nhorim, swaero_diag, levmin, & 651 649 levmax, nvertm 650 USE print_control_mod, ONLY: prt_level,lunout 652 651 #ifdef CPP_XIOS 653 652 use wxios, only: wxios_add_field_to_file … … 658 657 INCLUDE "temps.h" 659 658 INCLUDE "clesphys.h" 660 INCLUDE "iniprint.h"661 659 662 660 INTEGER :: iff … … 728 726 use ioipsl, only: getin 729 727 use phys_output_var_mod, only: nfiles 728 USE print_control_mod, ONLY: prt_level,lunout 730 729 IMPLICIT NONE 731 732 include 'iniprint.h'733 730 734 731 CHARACTER(LEN=20) :: nam_var … … 750 747 jj_nb, klon_mpi 751 748 USE ioipsl, only: histwrite 749 USE print_control_mod, ONLY: prt_level,lunout 752 750 IMPLICIT NONE 753 751 include 'dimensions.h' 754 include 'iniprint.h'755 752 756 753 integer,INTENT(IN) :: nid … … 767 764 768 765 769 IF (size(field)/=klon) CALL abort_ gcm('iophy::histwrite2d','Field first DIMENSION not equal to klon',1)766 IF (size(field)/=klon) CALL abort_physic('iophy::histwrite2d','Field first DIMENSION not equal to klon',1) 770 767 771 768 CALL Gather_omp(field,buffer_omp) … … 815 812 jj_nb, klon_mpi 816 813 use ioipsl, only: histwrite 814 USE print_control_mod, ONLY: prt_level,lunout 817 815 IMPLICIT NONE 818 816 include 'dimensions.h' 819 include 'iniprint.h'820 817 821 818 integer,INTENT(IN) :: nid … … 831 828 832 829 833 IF (size(field,1)/=klon) CALL abort_ gcm('iophy::histwrite3d','Field first DIMENSION not equal to klon',1)830 IF (size(field,1)/=klon) CALL abort_physic('iophy::histwrite3d','Field first DIMENSION not equal to klon',1) 834 831 nlev=size(field,2) 835 832 … … 889 886 nfiles, vars_defined, clef_stations, & 890 887 nid_files 888 USE print_control_mod, ONLY: prt_level,lunout 891 889 #ifdef CPP_XIOS 892 890 USE xios, only: xios_send_field … … 896 894 IMPLICIT NONE 897 895 INCLUDE 'dimensions.h' 898 INCLUDE 'iniprint.h'899 896 include 'clesphys.h' 900 897 … … 945 942 946 943 !Et sinon on.... écrit 947 IF (SIZE(field)/=klon) CALL abort_ gcm('iophy::histwrite2d_phy','Field first DIMENSION not equal to klon',1)944 IF (SIZE(field)/=klon) CALL abort_physic('iophy::histwrite2d_phy','Field first DIMENSION not equal to klon',1) 948 945 949 946 if (prt_level >= 10) then … … 971 968 endif 972 969 #else 973 CALL abort_ gcm('iophy','cannot have ok_all_xml = .T. without CPP_XIOS defined' ,1)970 CALL abort_physic ('iophy','cannot have ok_all_xml = .T. without CPP_XIOS defined' ,1) 974 971 #endif 975 972 ELSE … … 1052 1049 USE xios, only: xios_send_field 1053 1050 #endif 1054 1051 USE print_control_mod, ONLY: prt_level,lunout 1055 1052 1056 1053 IMPLICIT NONE 1057 1054 INCLUDE 'dimensions.h' 1058 INCLUDE 'iniprint.h'1059 1055 include 'clesphys.h' 1060 1056 … … 1095 1091 ELSE 1096 1092 !Et sinon on.... écrit 1097 IF (SIZE(field,1)/=klon) CALL abort_ gcm('iophy::histwrite3d','Field first DIMENSION not equal to klon',1)1093 IF (SIZE(field,1)/=klon) CALL abort_physic('iophy::histwrite3d','Field first DIMENSION not equal to klon',1) 1098 1094 nlev=SIZE(field,2) 1099 1095 if (nlev.eq.klev+1) then … … 1119 1115 CALL xios_send_field(var%name, Field3d(:,:,1:nlevx)) 1120 1116 #else 1121 CALL abort_ gcm('iophy','cannot have ok_all_xml = .T. without CPP_XIOS defined' ,1)1117 CALL abort_physic ('iophy','cannot have ok_all_xml = .T. without CPP_XIOS defined' ,1) 1122 1118 #endif 1123 1119 ELSE … … 1197 1193 jj_nb, klon_mpi 1198 1194 USE xios, only: xios_send_field 1199 1195 USE print_control_mod, ONLY: prt_level,lunout 1200 1196 1201 1197 IMPLICIT NONE 1202 1198 INCLUDE 'dimensions.h' 1203 INCLUDE 'iniprint.h'1204 1199 1205 1200 CHARACTER(LEN=*), INTENT(IN) :: field_name … … 1216 1211 1217 1212 !Et sinon on.... écrit 1218 IF (SIZE(field)/=klon) CALL abort_ gcm('iophy::histwrite2d_xios','Field first DIMENSION not equal to klon',1)1213 IF (SIZE(field)/=klon) CALL abort_physic('iophy::histwrite2d_xios','Field first DIMENSION not equal to klon',1) 1219 1214 1220 1215 CALL Gather_omp(field,buffer_omp) … … 1268 1263 jj_nb, klon_mpi 1269 1264 USE xios, only: xios_send_field 1270 1265 USE print_control_mod, ONLY: prt_level,lunout 1271 1266 1272 1267 IMPLICIT NONE 1273 1268 INCLUDE 'dimensions.h' 1274 INCLUDE 'iniprint.h'1275 1269 1276 1270 CHARACTER(LEN=*), INTENT(IN) :: field_name … … 1286 1280 1287 1281 !Et on.... écrit 1288 IF (SIZE(field,1)/=klon) CALL abort_ gcm('iophy::histwrite3d','Field first DIMENSION not equal to klon',1)1282 IF (SIZE(field,1)/=klon) CALL abort_physic('iophy::histwrite3d','Field first DIMENSION not equal to klon',1) 1289 1283 nlev=SIZE(field,2) 1290 1284 -
LMDZ5/trunk/libf/phylmd/iostart.F90
r1931 r2311 41 41 write(6,*)' Pb d''ouverture du fichier '//filename 42 42 write(6,*)' ierr = ', ierr 43 CALL ABORT_GCM("", "", 1)43 CALL abort_physic("", "", 1) 44 44 ENDIF 45 45 ENDIF … … 166 166 IF (.NOT. tmp_found) THEN 167 167 PRINT*, 'phyetat0: Le champ <'//field_name//'> est absent' 168 call abort_ gcm("", "", 1)168 call abort_physic("", "", 1) 169 169 ENDIF 170 170 ENDIF … … 186 186 IF (ierr/=NF90_NOERR) THEN 187 187 PRINT*, 'phyetat0: Lecture echouee aussi en 2D pour <'//field_name//'>' 188 call abort_ gcm("", "", 1)188 call abort_physic("", "", 1) 189 189 ELSE 190 190 PRINT*, 'phyetat0: La variable <'//field_name//'> lu sur surface seulement'!, selon ancien format, le reste mis a zero' 191 191 END IF 192 192 ELSE 193 call abort_ gcm("", "", 1)193 call abort_physic("", "", 1) 194 194 ENDIF 195 195 ENDIF … … 282 282 IF (ierr/=NF90_NOERR) THEN 283 283 PRINT*, 'phyetat0: Lecture echouee pour <'//var_name//'>' 284 call abort_ gcm("", "", 1)284 call abort_physic("", "", 1) 285 285 ENDIF 286 286 tmp_found=.TRUE. … … 302 302 IF (.NOT. tmp_found) THEN 303 303 PRINT*, 'phyetat0: La variable champ <'//var_name//'> est absente' 304 call abort_ gcm("", "", 1)304 call abort_physic("", "", 1) 305 305 ENDIF 306 306 ENDIF … … 323 323 write(6,*)' Pb d''ouverture du fichier '//filename 324 324 write(6,*)' ierr = ', ierr 325 CALL ABORT_GCM("", "", 1)325 CALL abort_physic("", "", 1) 326 326 ENDIF 327 327 … … 410 410 ELSE 411 411 PRINT *, "erreur phyredem : probleme de dimension" 412 CALL ABORT_GCM("", "", 1)412 CALL abort_physic("", "", 1) 413 413 ENDIF 414 414 … … 487 487 IF (var_size/=length) THEN 488 488 PRINT *, "erreur phyredem : probleme de dimension" 489 call abort_ gcm("", "", 1)489 call abort_physic("", "", 1) 490 490 ENDIF 491 491 -
LMDZ5/trunk/libf/phylmd/limit_netcdf.F90
r2302 r2311 29 29 USE netcdf95, ONLY: nf95_def_var, nf95_put_att, nf95_put_var 30 30 USE grid_atob_m, ONLY: grille_m, rugosite, sea_ice 31 USE print_control_mod, ONLY: prt_level,lunout 31 32 IMPLICIT NONE 32 33 !------------------------------------------------------------------------------- … … 34 35 include "dimensions.h" 35 36 include "paramet.h" 36 include "iniprint.h"37 37 LOGICAL, INTENT(IN) :: interbar ! barycentric interpolation 38 38 LOGICAL, INTENT(IN) :: extrap ! SST extrapolation flag … … 104 104 WRITE(lunout,*) 'One of following files must be available : ' 105 105 DO k=1,SIZE(fsic); WRITE(lunout,*) TRIM(fsic(k)); END DO 106 CALL abort_ gcm('limit_netcdf','No sea-ice file was found',1)106 CALL abort_physic('limit_netcdf','No sea-ice file was found',1) 107 107 END IF 108 108 CALL ncerr(NF90_CLOSE(nid),icefile) … … 163 163 WRITE(lunout,*) 'One of following files must be available : ' 164 164 DO k=1,SIZE(fsst); WRITE(lunout,*) TRIM(fsst(k)); END DO 165 CALL abort_ gcm('limit_netcdf','No sst file was found',1)165 CALL abort_physic('limit_netcdf','No sst file was found',1) 166 166 END IF 167 167 CALL ncerr(NF90_CLOSE(nid),sstfile) … … 277 277 include "paramet.h" 278 278 include "comgeom2.h" 279 include "iniprint.h"280 279 !----------------------------------------------------------------------------- 281 280 ! Arguments: … … 574 573 WRITE(mess,'(a,i3,a,i3,a)')'Unconsistent calendar: ',nd,' days/year, but ',& 575 574 nm,' months/year. Months number should divide days number.' 576 CALL abort_ gcm('mid_months',TRIM(mess),1)575 CALL abort_physic('mid_months',TRIM(mess),1) 577 576 578 577 ELSE … … 626 625 !------------------------------------------------------------------------------- 627 626 USE netcdf, ONLY : NF90_NOERR, NF90_STRERROR 627 USE print_control_mod, ONLY: lunout 628 628 IMPLICIT NONE 629 629 !------------------------------------------------------------------------------- … … 632 632 CHARACTER(LEN=*), INTENT(IN) :: fnam 633 633 !------------------------------------------------------------------------------- 634 #include "iniprint.h"635 634 IF(ncres/=NF90_NOERR) THEN 636 635 WRITE(lunout,*)'Problem with file '//TRIM(fnam)//' in routine limit_netcdf.' 637 CALL abort_ gcm('limit_netcdf',NF90_STRERROR(ncres),1)636 CALL abort_physic('limit_netcdf',NF90_STRERROR(ncres),1) 638 637 END IF 639 638 -
LMDZ5/trunk/libf/phylmd/limit_read_mod.F90
r2209 r2311 151 151 IMPLICIT NONE 152 152 153 INCLUDE "iniprint.h"154 155 153 ! In- and ouput arguments 156 154 !**************************************************************************************** … … 195 193 IF ( type_ocean /= 'couple' ) THEN 196 194 ALLOCATE(pctsrf(klon,nbsrf), sst(klon), stat=ierr) 197 IF (ierr /= 0) CALL abort_ gcm(modname, 'PB in allocating pctsrf and sst',1)195 IF (ierr /= 0) CALL abort_physic(modname, 'PB in allocating pctsrf and sst',1) 198 196 END IF 199 197 200 198 IF ( .NOT. ok_veget ) THEN 201 199 ALLOCATE(rugos(klon), albedo(klon), stat=ierr) 202 IF (ierr /= 0) CALL abort_ gcm(modname, 'PB in allocating rugos and albedo',1)200 IF (ierr /= 0) CALL abort_physic(modname, 'PB in allocating rugos and albedo',1) 203 201 END IF 204 202 … … 220 218 221 219 ierr = NF90_OPEN ('limit.nc', NF90_NOWRITE, nid) 222 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,&220 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,& 223 221 'Pb d''ouverture du fichier de conditions aux limites',1) 224 222 … … 239 237 ! Ocean fraction 240 238 ierr = NF90_INQ_VARID(nid, 'FOCE', nvarid) 241 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname, 'Le champ <FOCE> est absent',1)239 IF (ierr /= NF90_NOERR) CALL abort_physic(modname, 'Le champ <FOCE> est absent',1) 242 240 243 241 ierr = NF90_GET_VAR(nid,nvarid,pct_glo(:,is_oce),start,epais) 244 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Lecture echouee pour <FOCE>' ,1)242 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Lecture echouee pour <FOCE>' ,1) 245 243 ! 246 244 ! Sea-ice fraction 247 245 ierr = NF90_INQ_VARID(nid, 'FSIC', nvarid) 248 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Le champ <FSIC> est absent',1)246 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Le champ <FSIC> est absent',1) 249 247 250 248 ierr = NF90_GET_VAR(nid,nvarid,pct_glo(:,is_sic),start,epais) 251 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Lecture echouee pour <FSIC>' ,1)249 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Lecture echouee pour <FSIC>' ,1) 252 250 253 251 … … 257 255 ! Land fraction 258 256 ierr = NF90_INQ_VARID(nid, 'FTER', nvarid) 259 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Le champ <FTER> est absent',1)257 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Le champ <FTER> est absent',1) 260 258 261 259 ierr = NF90_GET_VAR(nid,nvarid,pct_glo(:,is_ter),start,epais) 262 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Lecture echouee pour <FTER>',1)260 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Lecture echouee pour <FTER>',1) 263 261 ! 264 262 ! Continentale ice fraction 265 263 ierr = NF90_INQ_VARID(nid, 'FLIC', nvarid) 266 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Le champ <FLIC> est absent',1)264 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Le champ <FLIC> est absent',1) 267 265 268 266 ierr = NF90_GET_VAR(nid,nvarid,pct_glo(:,is_lic),start,epais) 269 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Lecture echouee pour <FLIC>',1)267 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Lecture echouee pour <FLIC>',1) 270 268 END IF 271 269 … … 279 277 280 278 ierr = NF90_INQ_VARID(nid, 'SST', nvarid) 281 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Le champ <SST> est absent',1)279 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Le champ <SST> est absent',1) 282 280 283 281 ierr = NF90_GET_VAR(nid,nvarid,sst_glo,start,epais) 284 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Lecture echouee pour <SST>',1)282 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Lecture echouee pour <SST>',1) 285 283 286 284 END IF … … 295 293 ! Read albedo 296 294 ierr = NF90_INQ_VARID(nid, 'ALB', nvarid) 297 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Le champ <ALB> est absent',1)295 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Le champ <ALB> est absent',1) 298 296 299 297 ierr = NF90_GET_VAR(nid,nvarid,alb_glo,start,epais) 300 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Lecture echouee pour <ALB>',1)298 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Lecture echouee pour <ALB>',1) 301 299 ! 302 300 ! Read rugosity 303 301 ierr = NF90_INQ_VARID(nid, 'RUG', nvarid) 304 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Le champ <RUG> est absent',1)302 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Le champ <RUG> est absent',1) 305 303 306 304 ierr = NF90_GET_VAR(nid,nvarid,rug_glo,start,epais) 307 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Lecture echouee pour <RUG>',1)305 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Lecture echouee pour <RUG>',1) 308 306 309 307 END IF … … 314 312 !**************************************************************************************** 315 313 ierr = NF90_CLOSE(nid) 316 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Pb when closing file', 1)314 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Pb when closing file', 1) 317 315 ENDIF ! is_mpi_root 318 316 -
LMDZ5/trunk/libf/phylmd/limit_slab.F90
r2209 r2311 113 113 !**************************************************************************************** 114 114 ierr = NF90_CLOSE(nid) 115 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Pb when closing file', 1)115 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Pb when closing file', 1) 116 116 END IF ! Read File 117 117 IF (read_sst) THEN … … 133 133 IF (.NOT. ALLOCATED(bils_save)) THEN 134 134 ALLOCATE(bils_save(klon), diff_sst_save(klon), diff_siv_save(klon), stat=ierr) 135 IF (ierr /= 0) CALL abort_ gcm('limit_slab', 'pb in allocation',1)135 IF (ierr /= 0) CALL abort_physic('limit_slab', 'pb in allocation',1) 136 136 END IF 137 137 -
LMDZ5/trunk/libf/phylmd/minmaxqfi.F90
r2098 r2311 4 4 SUBROUTINE minmaxqfi(zq,qmin,qmax,comment) 5 5 USE dimphy 6 USE print_control_mod, ONLY: prt_level 6 7 IMPLICIT NONE 7 8 … … 15 16 INTEGER :: i, jbad, k 16 17 17 include "iniprint.h"18 19 18 DO k = 1, klev 20 19 jbad = 0 -
LMDZ5/trunk/libf/phylmd/nonlocal.F90
r1992 r2311 21 21 ! ====================================================================== 22 22 include "YOMCST.h" 23 include "iniprint.h"24 23 25 24 ! Arguments: -
LMDZ5/trunk/libf/phylmd/o3cm.F90
r1992 r2311 32 32 IF (ntab>499) THEN 33 33 abort_message = 'BIG ntab' 34 CALL abort_ gcm(modname, abort_message, 1)34 CALL abort_physic(modname, abort_message, 1) 35 35 END IF 36 36 xincr = (bmb-amb)/real(ntab) -
LMDZ5/trunk/libf/phylmd/oasis.F90
r2054 r2311 99 99 USE wxios, ONLY : wxios_context_init 100 100 #endif 101 101 USE print_control_mod, ONLY: lunout 102 102 103 103 INCLUDE "dimensions.h" 104 INCLUDE "iniprint.h"105 104 106 105 ! Local variables … … 218 217 IF (ierror .NE. PRISM_Ok) THEN 219 218 abort_message=' Probleme init dans prism_init_comp ' 220 CALL abort_ gcm(modname,abort_message,1)219 CALL abort_physic(modname,abort_message,1) 221 220 ELSE 222 221 WRITE(lunout,*) 'inicma : init psmile ok ' … … 240 239 IF (ierror .NE. PRISM_Ok) THEN 241 240 abort_message=' Probleme dans prism_def_partition ' 242 CALL abort_ gcm(modname,abort_message,1)241 CALL abort_physic(modname,abort_message,1) 243 242 ELSE 244 243 WRITE(lunout,*) 'inicma : decomposition domaine psmile ok ' … … 268 267 inforecv(jf)%name 269 268 abort_message=' Problem in call to prism_def_var_proto for fields to receive' 270 CALL abort_ gcm(modname,abort_message,1)269 CALL abort_physic(modname,abort_message,1) 271 270 ENDIF 272 271 ENDIF … … 286 285 infosend(jf)%name 287 286 abort_message=' Problem in call to prism_def_var_proto for fields to send' 288 CALL abort_ gcm(modname,abort_message,1)287 CALL abort_physic(modname,abort_message,1) 289 288 ENDIF 290 289 ENDIF … … 297 296 IF (ierror .NE. PRISM_Ok) THEN 298 297 abort_message=' Problem in call to prism_endef_proto' 299 CALL abort_ gcm(modname,abort_message,1)298 CALL abort_physic(modname,abort_message,1) 300 299 ELSE 301 300 WRITE(lunout,*) 'inicma : endef psmile ok ' … … 320 319 !====================================================================== 321 320 ! 321 USE print_control_mod, ONLY: lunout 322 322 INCLUDE "dimensions.h" 323 INCLUDE "iniprint.h"324 323 ! Input arguments 325 324 !************************************************************************************ … … 362 361 WRITE (lunout,*) 'Error with receiving filed : ', inforecv(i)%name, ktime 363 362 abort_message=' Problem in prism_get_proto ' 364 CALL abort_ gcm(modname,abort_message,1)363 CALL abort_physic(modname,abort_message,1) 365 364 ENDIF 366 365 ENDIF … … 382 381 ! 383 382 ! 383 USE print_control_mod, ONLY: lunout 384 384 INCLUDE "dimensions.h" 385 INCLUDE "iniprint.h"386 385 ! Input arguments 387 386 !************************************************************************************ … … 444 443 WRITE (lunout,*) 'Error with sending field :', infosend(i)%name, ktime 445 444 abort_message=' Problem in prism_put_proto ' 446 CALL abort_ gcm(modname,abort_message,1)445 CALL abort_physic(modname,abort_message,1) 447 446 ENDIF 448 447 ENDIF … … 459 458 IF (ierror .NE. PRISM_Ok) THEN 460 459 abort_message=' Problem in prism_terminate_proto ' 461 CALL abort_ gcm(modname,abort_message,1)460 CALL abort_physic(modname,abort_message,1) 462 461 ENDIF 463 462 ENDIF -
LMDZ5/trunk/libf/phylmd/ocean_slab_mod.F90
r2254 r2311 88 88 use IOIPSL 89 89 90 INCLUDE "iniprint.h"91 90 ! For ok_xxx vars (Ekman...) 92 91 INCLUDE "clesphys.h" … … 110 109 IF (error /= 0) THEN 111 110 abort_message='Pb allocation tmp_pctsrf_slab' 112 CALL abort_ gcm(modname,abort_message,1)111 CALL abort_physic(modname,abort_message,1) 113 112 ENDIF 114 113 fsic(:)=0. … … 121 120 !**************************************************************************************** 122 121 ALLOCATE(tslab(klon,nslay), stat=error) 123 IF (error /= 0) CALL abort_ gcm&122 IF (error /= 0) CALL abort_physic & 124 123 (modname,'pb allocation tslab', 1) 125 124 … … 127 126 IF (error /= 0) THEN 128 127 abort_message='Pb allocation slab_bils' 129 CALL abort_ gcm(modname,abort_message,1)128 CALL abort_physic(modname,abort_message,1) 130 129 ENDIF 131 130 slab_bils(:) = 0.0 … … 133 132 IF (error /= 0) THEN 134 133 abort_message='Pb allocation slab_bils_cum' 135 CALL abort_ gcm(modname,abort_message,1)134 CALL abort_physic(modname,abort_message,1) 136 135 ENDIF 137 136 bils_cum(:) = 0.0 … … 141 140 IF (error /= 0) THEN 142 141 abort_message='Pb allocation slab_bilg' 143 CALL abort_ gcm(modname,abort_message,1)142 CALL abort_physic(modname,abort_message,1) 144 143 ENDIF 145 144 slab_bilg(:) = 0.0 … … 147 146 IF (error /= 0) THEN 148 147 abort_message='Pb allocation slab_bilg_cum' 149 CALL abort_ gcm(modname,abort_message,1)148 CALL abort_physic(modname,abort_message,1) 150 149 ENDIF 151 150 bilg_cum(:) = 0.0 … … 153 152 IF (error /= 0) THEN 154 153 abort_message='Pb allocation slab_tice' 155 CALL abort_ gcm(modname,abort_message,1)154 CALL abort_physic(modname,abort_message,1) 156 155 ENDIF 157 156 ALLOCATE(seaice(klon), stat = error) 158 157 IF (error /= 0) THEN 159 158 abort_message='Pb allocation slab_seaice' 160 CALL abort_ gcm(modname,abort_message,1)159 CALL abort_physic(modname,abort_message,1) 161 160 ENDIF 162 161 END IF … … 169 168 IF (error /= 0) THEN 170 169 abort_message='Pb allocation slabh' 171 CALL abort_ gcm(modname,abort_message,1)170 CALL abort_physic(modname,abort_message,1) 172 171 ENDIF 173 172 slabh(1)=50. … … 226 225 USE calcul_fluxs_mod 227 226 228 INCLUDE "iniprint.h"229 227 INCLUDE "clesphys.h" 230 228 -
LMDZ5/trunk/libf/phylmd/orografi.F90
r1992 r2311 1369 1369 IF (nlon/=klon .OR. nlev/=klev) THEN 1370 1370 abort_message = 'pb dimension' 1371 CALL abort_ gcm(modname, abort_message, 1)1371 CALL abort_physic(modname, abort_message, 1) 1372 1372 END IF 1373 1373 zcons1 = 1./rd -
LMDZ5/trunk/libf/phylmd/orografi_strato.F90
r2048 r2311 1558 1558 IF (nlon/=klon .OR. nlev/=klev) THEN 1559 1559 abort_message = 'pb dimension' 1560 CALL abort_ gcm(modname, abort_message, 1)1560 CALL abort_physic(modname, abort_message, 1) 1561 1561 END IF 1562 1562 zcons1 = 1./rd … … 1873 1873 PRINT *, ' DANS SUGWD nktopg=', nktopg 1874 1874 PRINT *, ' DANS SUGWD nstra=', nstra 1875 if (nstra == 0) call abort_ gcm("sugwd_strato", "no level in stratosphere", 1)1875 if (nstra == 0) call abort_physic("sugwd_strato", "no level in stratosphere", 1) 1876 1876 1877 1877 gsigcr = 0.80 -
LMDZ5/trunk/libf/phylmd/pbl_surface_mod.F90
r2307 r2311 49 49 50 50 USE indice_sol_mod 51 USE print_control_mod, ONLY: lunout 51 52 52 53 INCLUDE "dimsoil.h" 53 INCLUDE "iniprint.h"54 54 55 55 ! Input variables … … 73 73 !**************************************************************************************** 74 74 ALLOCATE(fder(klon), stat=ierr) 75 IF (ierr /= 0) CALL abort_ gcm('pbl_surface_init', 'pb in allocation',1)75 IF (ierr /= 0) CALL abort_physic('pbl_surface_init', 'pb in allocation',1) 76 76 77 77 ALLOCATE(snow(klon,nbsrf), stat=ierr) 78 IF (ierr /= 0) CALL abort_ gcm('pbl_surface_init', 'pb in allocation',1)78 IF (ierr /= 0) CALL abort_physic('pbl_surface_init', 'pb in allocation',1) 79 79 80 80 ALLOCATE(qsurf(klon,nbsrf), stat=ierr) 81 IF (ierr /= 0) CALL abort_ gcm('pbl_surface_init', 'pb in allocation',1)81 IF (ierr /= 0) CALL abort_physic('pbl_surface_init', 'pb in allocation',1) 82 82 83 83 ALLOCATE(ftsoil(klon,nsoilmx,nbsrf), stat=ierr) 84 IF (ierr /= 0) CALL abort_ gcm('pbl_surface_init', 'pb in allocation',1)84 IF (ierr /= 0) CALL abort_physic('pbl_surface_init', 'pb in allocation',1) 85 85 86 86 … … 100 100 WRITE(lunout,*)"or on doit commencer par les surfaces continentales" 101 101 abort_message="voir ci-dessus" 102 CALL abort_ gcm(modname,abort_message,1)102 CALL abort_physic(modname,abort_message,1) 103 103 ENDIF 104 104 … … 109 109 WRITE(lunout,*)' or is_oce = ',is_oce, '> is_sic = ',is_sic 110 110 abort_message='voir ci-dessus' 111 CALL abort_ gcm(modname,abort_message,1)111 CALL abort_physic(modname,abort_message,1) 112 112 ENDIF 113 113 … … 118 118 WRITE(lunout,*)' or is_lic = ',is_lic, '> is_sic = ',is_sic 119 119 abort_message='voir ci-dessus' 120 CALL abort_ gcm(modname,abort_message,1)120 CALL abort_physic(modname,abort_message,1) 121 121 ENDIF 122 122 … … 130 130 WRITE(lunout,*)'Option couplage pour l''ocean = ', type_ocean 131 131 abort_message='option pour l''ocean non valable' 132 CALL abort_ gcm(modname,abort_message,1)132 CALL abort_physic(modname,abort_message,1) 133 133 ENDIF 134 134 … … 261 261 USE carbon_cycle_mod, ONLY : carbon_cycle_cpl, co2_send 262 262 USE indice_sol_mod 263 USE print_control_mod, ONLY: prt_level,lunout 263 264 264 265 IMPLICIT NONE … … 266 267 INCLUDE "dimsoil.h" 267 268 INCLUDE "YOMCST.h" 268 INCLUDE "iniprint.h"269 269 INCLUDE "YOETHF.h" 270 270 INCLUDE "FCTTRE.h" … … 1871 1871 WRITE(lunout,*) 'Surface index = ', nsrf 1872 1872 abort_message = 'Surface index not valid' 1873 CALL abort_ gcm(modname,abort_message,1)1873 CALL abort_physic(modname,abort_message,1) 1874 1874 END SELECT 1875 1875 … … 3089 3089 ! Security abort. This option has never been tested. To test, comment the following line. 3090 3090 ! abort_message='The fraction of the continents have changed!' 3091 ! CALL abort_ gcm(modname,abort_message,1)3091 ! CALL abort_physic(modname,abort_message,1) 3092 3092 nfois(nsrf) = nfois(nsrf) + 1 3093 3093 END IF -
LMDZ5/trunk/libf/phylmd/phyetat0.F90
r2265 r2311 223 223 IF (isw.GT.99) THEN 224 224 PRINT*, "Trop de bandes SW" 225 call abort_ gcm("phyetat0", "", 1)225 call abort_physic("phyetat0", "", 1) 226 226 ENDIF 227 227 WRITE(str2, '(i2.2)') isw … … 238 238 IF (isoil.GT.99) THEN 239 239 PRINT*, "Trop de couches " 240 call abort_ gcm("phyetat0", "", 1)240 call abort_physic("phyetat0", "", 1) 241 241 ENDIF 242 242 WRITE(str2,'(i2.2)') isoil … … 359 359 IF (carbon_cycle_cpl) THEN 360 360 ALLOCATE(co2_send(klon), stat=ierr) 361 IF (ierr /= 0) CALL abort_ gcm('phyetat0', 'pb allocation co2_send', 1)361 IF (ierr /= 0) CALL abort_physic('phyetat0', 'pb allocation co2_send', 1) 362 362 found=phyetat0_get(1,co2_send,"co2_send","co2 send",0.) 363 363 END IF … … 449 449 USE iostart, ONLY : get_field 450 450 USE dimphy, only: klon 451 USE print_control_mod, ONLY: lunout 451 452 452 453 IMPLICIT NONE 453 INCLUDE "iniprint.h"454 454 455 455 LOGICAL phyetat0_get … … 488 488 USE dimphy, only: klon 489 489 USE indice_sol_mod, only: nbsrf 490 USE print_control_mod, ONLY: lunout 490 491 491 492 IMPLICIT NONE 492 INCLUDE "iniprint.h"493 493 494 494 LOGICAL phyetat0_srf … … 506 506 IF (nbsrf.GT.99) THEN 507 507 WRITE(lunout,*) "Trop de sous-mailles" 508 call abort_ gcm("phyetat0", "", 1)508 call abort_physic("phyetat0", "", 1) 509 509 ENDIF 510 510 -
LMDZ5/trunk/libf/phylmd/phyredem.F90
r2299 r2311 23 23 IMPLICIT none 24 24 25 include "iniprint.h"26 25 include "dimsoil.h" 27 26 include "clesphys.h" … … 127 126 128 127 IF(nbsrf>99) THEN 129 PRINT*, "Trop de sous-mailles"; CALL abort_ gcm("phyredem", "", 1)128 PRINT*, "Trop de sous-mailles"; CALL abort_physic("phyredem", "", 1) 130 129 END IF 131 130 IF(nsoilmx>99) THEN 132 PRINT*, "Trop de sous-surfaces"; CALL abort_ gcm("phyredem", "", 1)131 PRINT*, "Trop de sous-surfaces"; CALL abort_physic("phyredem", "", 1) 133 132 END IF 134 133 IF(nsw>99) THEN 135 PRINT*, "Trop de bandes"; CALL abort_ gcm("phyredem", "", 1)134 PRINT*, "Trop de bandes"; CALL abort_physic("phyredem", "", 1) 136 135 END IF 137 136 -
LMDZ5/trunk/libf/phylmd/phys_output_mod.F90
r2167 r2311 45 45 USE phys_output_ctrlout_mod 46 46 USE mod_grid_phy_lmdz, only: klon_glo 47 USE print_control_mod, ONLY: prt_level,lunout 47 48 48 49 #ifdef CPP_XIOS … … 57 58 include "thermcell.h" 58 59 include "comvert.h" 59 include "iniprint.h"60 60 61 61 ! ug Nouveaux arguments n\'ecessaires au histwrite_mod: … … 523 523 use ioipsl 524 524 USE phys_cal_mod 525 USE print_control_mod, ONLY: lunout 525 526 526 527 IMPLICIT NONE … … 533 534 include "temps.h" 534 535 include "comconst.h" 535 include "iniprint.h"536 536 537 537 ipos=scan(str,'0123456789.',.TRUE.) … … 540 540 WRITE(lunout,*) "ipos = ", ipos 541 541 WRITE(lunout,*) "il = ", il 542 if (ipos == 0) call abort_ gcm("convers_timesteps", "bad str", 1)542 if (ipos == 0) call abort_physic("convers_timesteps", "bad str", 1) 543 543 read(str(1:ipos),*) ttt 544 544 WRITE(lunout,*)ttt -
LMDZ5/trunk/libf/phylmd/phys_output_write_mod.F90
r2284 r2311 265 265 INCLUDE "YOMCST.h" 266 266 INCLUDE "dimensions.h" 267 include "iniprint.h"268 267 269 268 ! Input -
LMDZ5/trunk/libf/phylmd/physiq.F90
r2309 r2311 21 21 USE mod_phys_lmdz_para 22 22 USE iophy 23 USE misc_mod, mydebug=>debug23 USE print_control_mod, ONLY: mydebug=>debug , lunout, prt_level 24 24 USE vampir 25 25 USE pbl_surface_mod, ONLY : pbl_surface … … 121 121 include "clesphys.h" 122 122 include "temps.h" 123 include "iniprint.h"124 123 include "thermcell.h" 125 124 !====================================================================== … … 1060 1059 IF (iflag_con.EQ.2.AND.iflag_cld_th.GT.-1) THEN 1061 1060 abort_message = 'Tiedtke needs iflag_cld_th=-2 or -1' 1062 CALL abort_ gcm(modname,abort_message,1)1061 CALL abort_physic (modname,abort_message,1) 1063 1062 ENDIF 1064 1063 ! … … 1119 1118 pdtphys 1120 1119 abort_message='Pas physique n est pas correct ' 1121 ! call abort_ gcm(modname,abort_message,1)1120 ! call abort_physic(modname,abort_message,1) 1122 1121 dtime=pdtphys 1123 1122 ENDIF … … 1126 1125 klon 1127 1126 abort_message='nlon et klon ne sont pas coherents' 1128 call abort_ gcm(modname,abort_message,1)1127 call abort_physic(modname,abort_message,1) 1129 1128 ENDIF 1130 1129 IF (nlev .NE. klev) THEN … … 1132 1131 klev 1133 1132 abort_message='nlev et klev ne sont pas coherents' 1134 call abort_ gcm(modname,abort_message,1)1133 call abort_physic(modname,abort_message,1) 1135 1134 ENDIF 1136 1135 ! … … 1139 1138 WRITE(lunout,*)"Au minimum 4 appels par jour si cycle diurne" 1140 1139 abort_message='Nbre d appels au rayonnement insuffisant' 1141 call abort_ gcm(modname,abort_message,1)1140 call abort_physic(modname,abort_message,1) 1142 1141 ENDIF 1143 1142 WRITE(lunout,*)"Clef pour la convection, iflag_con=", iflag_con … … 1194 1193 IF(nCFMIP.GT.npCFMIP) THEN 1195 1194 print*,'nCFMIP > npCFMIP : augmenter npCFMIP et recompiler' 1196 call abort_ gcm("physiq", "", 1)1195 call abort_physic("physiq", "", 1) 1197 1196 else 1198 1197 print*,'physiq npCFMIP=',npCFMIP,'nCFMIP=',nCFMIP … … 1699 1698 IF (read_climoz/=-1) THEN 1700 1699 abort_message ='read_climoz=-1 is recommended when solarlong0=1000.' 1701 CALL abort_ gcm(modname,abort_message,1)1700 CALL abort_physic (modname,abort_message,1) 1702 1701 ENDIF 1703 1702 ELSE … … 2096 2095 IF (iflag_con.EQ.1) THEN 2097 2096 abort_message ='reactiver le call conlmd dans physiq.F' 2098 CALL abort_ gcm(modname,abort_message,1)2097 CALL abort_physic (modname,abort_message,1) 2099 2098 ! CALL conlmd (dtime, paprs, pplay, t_seri, q_seri, conv_q, 2100 2099 ! . d_t_con, d_q_con, … … 2264 2263 else 2265 2264 abort_message ='Ne pas passer la car www non calcule' 2266 CALL abort_ gcm(modname,abort_message,1)2265 CALL abort_physic (modname,abort_message,1) 2267 2266 2268 2267 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! … … 2456 2455 ELSE 2457 2456 WRITE(lunout,*) "iflag_con non-prevu", iflag_con 2458 call abort_ gcm("physiq", "", 1)2457 call abort_physic("physiq", "", 1) 2459 2458 ENDIF 2460 2459 … … 3123 3122 IF (aerosol_couple .AND. config_inca == 'aero' ) THEN 3124 3123 abort_message='config_inca=aero et rrtm=1 impossible' 3125 call abort_ gcm(modname,abort_message,1)3124 call abort_physic(modname,abort_message,1) 3126 3125 ELSE 3127 3126 ! … … 3138 3137 3139 3138 abort_message='You should compile with -rrtm if running with iflag_rrtm=1' 3140 call abort_ gcm(modname,abort_message,1)3139 call abort_physic(modname,abort_message,1) 3141 3140 #endif 3142 3141 ! … … 3171 3170 3172 3171 abort_message='You should compile with -rrtm if running with iflag_rrtm=1' 3173 call abort_ gcm(modname,abort_message,1)3172 call abort_physic(modname,abort_message,1) 3174 3173 #endif 3175 3174 ENDIF … … 3400 3399 IF (ok_cdnc.AND.NRADLP.NE.3) THEN 3401 3400 abort_message='RRTM choix incoherent NRADLP doit etre egal a 3 pour ok_cdnc' 3402 call abort_ gcm(modname,abort_message,1)3401 call abort_physic(modname,abort_message,1) 3403 3402 endif 3404 3403 #else 3405 3404 3406 3405 abort_message='You should compile with -rrtm if running with iflag_rrtm=1' 3407 call abort_ gcm(modname,abort_message,1)3406 call abort_physic(modname,abort_message,1) 3408 3407 #endif 3409 3408 ENDIF … … 4292 4291 IF (abortphy==1) THEN 4293 4292 abort_message ='Plantage hgardfou' 4294 CALL abort_ gcm(modname,abort_message,1)4293 CALL abort_physic (modname,abort_message,1) 4295 4294 ENDIF 4296 4295 -
LMDZ5/trunk/libf/phylmd/phystokenc.F90
r1907 r2311 13 13 USE control_mod 14 14 USE indice_sol_mod 15 USE print_control_mod, ONLY: lunout 15 16 16 17 IMPLICIT NONE … … 23 24 INCLUDE "dimensions.h" 24 25 INCLUDE "tracstoke.h" 25 INCLUDE "iniprint.h"26 26 !====================================================================== 27 27 -
LMDZ5/trunk/libf/phylmd/phytrac_mod.F90
r2284 r2311 101 101 102 102 USE mod_phys_lmdz_mpi_data, ONLY : is_mpi_root 103 USE print_control_mod, ONLY: lunout 103 104 104 105 IMPLICIT NONE … … 110 111 INCLUDE "paramet.h" 111 112 INCLUDE "thermcell.h" 112 INCLUDE "iniprint.h"113 113 !========================================================================== 114 114 ! -- ARGUMENT DESCRIPTION -- … … 445 445 WRITE(*,*) 'FIRST TIME IN PHYTRAC : pdtphys(sec) = ',pdtphys,'ecrit_tra (sec) = ',ecrit_tra 446 446 ALLOCATE( source(klon,nbtr), stat=ierr) 447 IF (ierr /= 0) CALL abort_ gcm('phytrac', 'pb in allocation 1',1)447 IF (ierr /= 0) CALL abort_physic('phytrac', 'pb in allocation 1',1) 448 448 449 449 ALLOCATE( aerosol(nbtr), stat=ierr) 450 IF (ierr /= 0) CALL abort_ gcm('phytrac', 'pb in allocation 2',1)450 IF (ierr /= 0) CALL abort_physic('phytrac', 'pb in allocation 2',1) 451 451 452 452 … … 503 503 ! ELSE 504 504 ! WRITE(lunout,*) 'pb it=', it 505 ! CALL abort_ gcm('phytrac','pb it scavenging',1)505 ! CALL abort_physic('phytrac','pb it scavenging',1) 506 506 ! ENDIF 507 507 !--test OB … … 539 539 540 540 IF (lessivage.AND.config_inca.EQ.'inca') THEN 541 CALL abort_ gcm('phytrac', 'lessivage=T config_inca=inca impossible',1)541 CALL abort_physic('phytrac', 'lessivage=T config_inca=inca impossible',1) 542 542 STOP 543 543 ENDIF … … 740 740 ELSE 741 741 ! 742 CALL abort_ gcm('iflag_vdf_trac', 'cas non prevu',1)742 CALL abort_physic('iflag_vdf_trac', 'cas non prevu',1) 743 743 ! 744 744 END IF ! couche limite -
LMDZ5/trunk/libf/phylmd/radiation_AR4.F90
r1992 r2311 6 6 psolswai, ok_ade, ok_aie) 7 7 USE dimphy 8 USE print_control_mod, ONLY: lunout 8 9 IMPLICIT NONE 9 10 … … 12 13 ! ym#include "raddim.h" 13 14 include "YOMCST.h" 14 include "iniprint.h"15 15 16 16 ! ------------------------------------------------------------------ … … 494 494 ! ym#include "dimphy.h" 495 495 ! ym#include "raddim.h"i 496 include "iniprint.h"497 496 498 497 ! ------------------------------------------------------------------ … … 2152 2151 plwup, plwdn, plwup0, plwdn0) 2153 2152 USE dimphy 2153 USE print_control_mod, ONLY: lunout 2154 2154 IMPLICIT NONE 2155 2155 ! ym#include "dimensions.h" … … 2158 2158 include "raddimlw.h" 2159 2159 include "YOMCST.h" 2160 include "iniprint.h"2161 2160 2162 2161 ! ----------------------------------------------------------------------- -
LMDZ5/trunk/libf/phylmd/radlwsw_m.F90
r2297 r2311 171 171 include "YOMCST.h" 172 172 include "clesphys.h" 173 include "iniprint.h"174 173 175 174 ! Input arguments … … 393 392 IF (nb_gr*kdlon .NE. KLON) THEN 394 393 PRINT*, "kdlon mauvais:", KLON, kdlon, nb_gr 395 call abort_ gcm("radlwsw", "", 1)394 call abort_physic("radlwsw", "", 1) 396 395 ENDIF 397 396 IF (kflev .NE. KLEV) THEN 398 397 PRINT*, "kflev differe de KLEV, kflev, KLEV" 399 call abort_ gcm("radlwsw", "", 1)398 call abort_physic("radlwsw", "", 1) 400 399 ENDIF 401 400 !------------------------------------------- … … 1027 1026 #else 1028 1027 abort_message="You should compile with -rrtm if running with iflag_rrtm=1" 1029 call abort_ gcm(modname, abort_message, 1)1028 call abort_physic(modname, abort_message, 1) 1030 1029 #endif 1031 1030 ENDIF ! iflag_rrtm -
LMDZ5/trunk/libf/phylmd/read_map2D.F90
r1907 r2311 6 6 USE mod_grid_phy_lmdz 7 7 USE mod_phys_lmdz_para 8 8 USE print_control_mod, ONLY: lunout 9 9 10 10 IMPLICIT NONE … … 27 27 REAL, DIMENSION(nbp_lon,nbp_lat) :: var_glo2D_tmp ! 2D global 28 28 REAL, DIMENSION(klon_glo) :: var_glo1D ! 1D global 29 INCLUDE "iniprint.h"30 29 31 30 ! Read variable from file. Done by master process MPI and master thread OpenMP … … 66 65 CONTAINS 67 66 SUBROUTINE write_err_mess(err_mess) 68 67 USE print_control_mod, ONLY: lunout 68 IMPLICIT NONE 69 69 CHARACTER(len=*), INTENT(IN) :: err_mess 70 INCLUDE "iniprint.h"71 70 72 71 WRITE(lunout,*) 'Error in read_map2D, filename = ', trim(filename) … … 74 73 WRITE(lunout,*) 'Error in read_map2D, timestep = ', timestep 75 74 76 CALL abort_ gcm(modname, err_mess, 1)75 CALL abort_physic(modname, err_mess, 1) 77 76 78 77 END SUBROUTINE write_err_mess -
LMDZ5/trunk/libf/phylmd/readaerosol.F90
r1907 r2311 20 20 !**************************************************************************************** 21 21 USE dimphy 22 USE print_control_mod, ONLY: lunout 22 23 23 24 IMPLICIT NONE 24 25 INCLUDE "iniprint.h"26 25 27 26 ! Input arguments … … 130 129 IF (klev_src /= klev_src2) THEN 131 130 WRITE(lunout,*) 'Two aerosols files with different number of vertical levels is not allowded' 132 CALL abort_ gcm('readaersosol','Error in number of vertical levels',1)131 CALL abort_physic('readaersosol','Error in number of vertical levels',1) 133 132 END IF 134 133 … … 162 161 ELSE 163 162 WRITE(lunout,*)'This option is not implemented : aer_type = ', type,' name_aero=',name_aero 164 CALL abort_ gcm('readaerosol','Error : aer_type parameter not accepted',1)163 CALL abort_physic('readaerosol','Error : aer_type parameter not accepted',1) 165 164 END IF ! type 166 165 … … 192 191 USE mod_phys_lmdz_para 193 192 USE iophy, ONLY : io_lon, io_lat 193 USE print_control_mod, ONLY: lunout 194 194 195 195 IMPLICIT NONE 196 196 197 197 INCLUDE "dimensions.h" 198 INCLUDE "iniprint.h"199 198 200 199 ! Input argumets … … 260 259 WRITE(lunout,*) 'longitudes in model :', io_lon 261 260 262 CALL abort_ gcm('get_aero_fromfile', 'longitudes are not the same in file and model',1)261 CALL abort_physic('get_aero_fromfile', 'longitudes are not the same in file and model',1) 263 262 END IF 264 263 … … 283 282 WRITE(lunout,*) 'latitudes in file ', TRIM(fname),' : ', lat_src 284 283 WRITE(lunout,*) 'latitudes in model :', io_lat 285 CALL abort_ gcm('get_aero_fromfile', 'latitudes do not correspond between file and model',1)284 CALL abort_physic('get_aero_fromfile', 'latitudes do not correspond between file and model',1) 286 285 END IF 287 286 … … 297 296 IF (ierr /= NF90_NOERR) THEN 298 297 ! Dimension PRESNIVS not found either 299 CALL abort_ gcm('get_aero_fromfile', 'dimension lev or presnivs not in file',1)298 CALL abort_physic('get_aero_fromfile', 'dimension lev or presnivs not in file',1) 300 299 ELSE 301 300 ! Old file found … … 315 314 ! Allocate variables depending on the number of vertical levels 316 315 ALLOCATE(varmth(iim, jjm+1, klev_src), varyear(iim, jjm+1, klev_src, 12), stat=ierr) 317 IF (ierr /= 0) CALL abort_ gcm('get_aero_fromfile', 'pb in allocation 1',1)316 IF (ierr /= 0) CALL abort_physic('get_aero_fromfile', 'pb in allocation 1',1) 318 317 319 318 ALLOCATE(pt_ap(klev_src), pt_b(klev_src), varktmp(klev_src), stat=ierr) 320 IF (ierr /= 0) CALL abort_ gcm('get_aero_fromfile', 'pb in allocation 2',1)319 IF (ierr /= 0) CALL abort_physic('get_aero_fromfile', 'pb in allocation 2',1) 321 320 322 321 ! 3) Read all variables from file … … 333 332 ! IF (nbr_tsteps /= 12 .AND. nbr_tsteps /= 14) THEN 334 333 IF (nbr_tsteps /= 12 ) THEN 335 CALL abort_ gcm('get_aero_fromfile', 'not the right number of months in aerosol file read (should be 12 for the moment)',1)334 CALL abort_physic('get_aero_fromfile', 'not the right number of months in aerosol file read (should be 12 for the moment)',1) 336 335 ENDIF 337 336 … … 522 521 523 522 ALLOCATE(varyear_glo1D(klon_glo, klev_src, 12), stat=ierr) 524 IF (ierr /= 0) CALL abort_ gcm('get_aero_fromfile', 'pb in allocation 3',1)523 IF (ierr /= 0) CALL abort_physic('get_aero_fromfile', 'pb in allocation 3',1) 525 524 526 525 ! Transform from 2D to 1D field … … 546 545 IF (.NOT. ASSOCIATED(pt_ap)) THEN ! if pt_ap is allocated also pt_b is allocated 547 546 ALLOCATE(pt_ap(klev_src), pt_b(klev_src), stat=ierr) 548 IF (ierr /= 0) CALL abort_ gcm('get_aero_fromfile', 'pb in allocation 4',1)547 IF (ierr /= 0) CALL abort_physic('get_aero_fromfile', 'pb in allocation 4',1) 549 548 END IF 550 549 CALL bcast(pt_ap) … … 554 553 IF (ASSOCIATED(pt_year)) DEALLOCATE(pt_year) 555 554 ALLOCATE(pt_year(klon, klev_src, 12), stat=ierr) 556 IF (ierr /= 0) CALL abort_ gcm('get_aero_fromfile', 'pb in allocation 5',1)555 IF (ierr /= 0) CALL abort_physic('get_aero_fromfile', 'pb in allocation 5',1) 557 556 558 557 ! Scatter global field to local domain at local process … … 572 571 SUBROUTINE check_err(status,text) 573 572 USE netcdf 573 USE print_control_mod, ONLY: lunout 574 574 IMPLICIT NONE 575 575 576 INCLUDE "iniprint.h"577 576 INTEGER, INTENT (IN) :: status 578 577 CHARACTER(len=*), INTENT (IN), OPTIONAL :: text … … 583 582 WRITE(lunout,*) 'Error in get_aero_fromfile : ',text 584 583 END IF 585 CALL abort_ gcm('get_aero_fromfile',trim(nf90_strerror(status)),1)584 CALL abort_physic('get_aero_fromfile',trim(nf90_strerror(status)),1) 586 585 END IF 587 586 -
LMDZ5/trunk/libf/phylmd/readaerosol_interp.F90
r1907 r2311 21 21 USE phys_cal_mod 22 22 USE pres2lev_mod 23 USE print_control_mod, ONLY: lunout 23 24 24 25 IMPLICIT NONE … … 28 29 INCLUDE "temps.h" 29 30 INCLUDE "clesphys.h" 30 INCLUDE "iniprint.h"31 31 INCLUDE "dimensions.h" 32 32 INCLUDE "comvert.h" … … 150 150 IF (.NOT. ALLOCATED(var_day)) THEN 151 151 ALLOCATE( var_day(klon, klev, naero_spc), stat=ierr) 152 IF (ierr /= 0) CALL abort_ gcm('readaerosol_interp', 'pb in allocation 1',1)152 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 1',1) 153 153 ALLOCATE( pi_var_day(klon, klev, naero_spc), stat=ierr) 154 IF (ierr /= 0) CALL abort_ gcm('readaerosol_interp', 'pb in allocation 2',1)154 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 2',1) 155 155 156 156 ALLOCATE( psurf_year(klon, 12, naero_spc), pi_psurf_year(klon, 12, naero_spc), stat=ierr) 157 IF (ierr /= 0) CALL abort_ gcm('readaerosol_interp', 'pb in allocation 3',1)157 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 3',1) 158 158 159 159 ALLOCATE( load_year(klon, 12, naero_spc), pi_load_year(klon, 12, naero_spc), stat=ierr) 160 IF (ierr /= 0) CALL abort_ gcm('readaerosol_interp', 'pb in allocation 4',1)160 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 4',1) 161 161 162 162 lnewday=.TRUE. … … 209 209 END IF 210 210 ELSE 211 CALL abort_ gcm('readaerosol_interp', 'this aer_type not supported',1)211 CALL abort_physic('readaerosol_interp', 'this aer_type not supported',1) 212 212 END IF 213 213 … … 216 216 IF (.NOT. ALLOCATED(var_year)) THEN 217 217 ALLOCATE(var_year(klon, klev_src, 12, naero_spc), stat=ierr) 218 IF (ierr /= 0) CALL abort_ gcm('readaerosol_interp', 'pb in allocation 5',1)218 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 5',1) 219 219 END IF 220 220 var_year(:,:,:,id_aero) = pt_tmp(:,:,:) … … 230 230 WRITE(lunout,*) 'Error! All forcing files for the same aerosol must have the same vertical dimension' 231 231 WRITE(lunout,*) 'Aerosol : ', name_aero(id_aero) 232 CALL abort_ gcm('readaerosol_interp','Differnt vertical axes in aerosol forcing files',1)232 CALL abort_physic('readaerosol_interp','Differnt vertical axes in aerosol forcing files',1) 233 233 END IF 234 234 235 235 IF (.NOT. ALLOCATED(pi_var_year)) THEN 236 236 ALLOCATE(pi_var_year(klon, klev_src, 12, naero_spc), stat=ierr) 237 IF (ierr /= 0) CALL abort_ gcm('readaerosol_interp', 'pb in allocation 6',1)237 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 6',1) 238 238 END IF 239 239 pi_var_year(:,:,:,id_aero) = pt_tmp(:,:,:) … … 259 259 IF ( psurf_year(1,1,id_aero) /= pi_psurf_year(1,1,id_aero) ) THEN 260 260 WRITE(lunout,*) 'Warning! All forcing files for the same aerosol must have the same structure' 261 CALL abort_ gcm('readaerosol_interp', 'The aerosol files have not the same format',1)261 CALL abort_physic('readaerosol_interp', 'The aerosol files have not the same format',1) 262 262 END IF 263 263 264 264 IF (klev /= klev_src) THEN 265 265 WRITE(lunout,*) 'Old format of aerosol file do not allowed vertical interpolation' 266 CALL abort_ gcm('readaerosol_interp', 'Old aerosol file not possible',1)266 CALL abort_physic('readaerosol_interp', 'Old aerosol file not possible',1) 267 267 END IF 268 268 … … 336 336 END IF 337 337 ELSE 338 CALL abort_ gcm('readaerosol_interp', 'number of months undefined',1)338 CALL abort_physic('readaerosol_interp', 'number of months undefined',1) 339 339 ENDIF 340 340 if (debug) then … … 345 345 ! Time interpolation, still on vertical source grid 346 346 ALLOCATE(tmp1(klon,klev_src), tmp2(klon,klev_src),stat=ierr) 347 IF (ierr /= 0) CALL abort_ gcm('readaerosol_interp', 'pb in allocation 7',1)347 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 7',1) 348 348 349 349 ALLOCATE(pplay_src(klon,klev_src), stat=ierr) 350 IF (ierr /= 0) CALL abort_ gcm('readaerosol_interp', 'pb in allocation 8',1)350 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 8',1) 351 351 352 352 … … 544 544 WRITE(lunout,*) 'stop for aerosol : ',name_aero(id_aero) 545 545 WRITE(lunout,*) 'day1, day2, jDay = ', day1, day2, jDay 546 CALL abort_ gcm('readaerosol_interp','Error in interpolation 1',1)546 CALL abort_physic('readaerosol_interp','Error in interpolation 1',1) 547 547 END IF 548 548 END DO … … 563 563 564 564 WRITE(lunout,*) 'stop for aerosol : ',name_aero(id_aero) 565 CALL abort_ gcm('readaerosol_interp','Error in interpolation 2',1)565 CALL abort_physic('readaerosol_interp','Error in interpolation 2',1) 566 566 END IF 567 567 END DO -
LMDZ5/trunk/libf/phylmd/rrtm/aeropt_6bands_rrtm.F90
r2231 r2311 22 22 23 23 INCLUDE "YOMCST.h" 24 INCLUDE "iniprint.h"25 24 INCLUDE "clesphys.h" 26 25 -
LMDZ5/trunk/libf/phylmd/soil.F90
r1931 r2311 8 8 USE mod_phys_lmdz_para 9 9 USE indice_sol_mod 10 USE print_control_mod, ONLY: lunout 10 11 11 12 IMPLICIT NONE … … 55 56 INCLUDE "dimsoil.h" 56 57 INCLUDE "comsoil.h" 57 INCLUDE "iniprint.h"58 58 !----------------------------------------------------------------------- 59 59 ! Arguments … … 178 178 ELSE 179 179 WRITE(lunout,*) "valeur d indice non prevue", indice 180 call abort_ gcm("soil", "", 1)180 call abort_physic("soil", "", 1) 181 181 ENDIF 182 182 -
LMDZ5/trunk/libf/phylmd/solarlong.F90
r1992 r2311 2 2 3 3 USE ioipsl 4 USE print_control_mod, ONLY: lunout 4 5 5 6 IMPLICIT NONE … … 46 47 include "planete.h" 47 48 include "YOMCST.h" 48 include 'iniprint.h'49 49 50 50 ! arguments: -
LMDZ5/trunk/libf/phylmd/surf_land_orchidee_mod.F90
r2240 r2311 45 45 USE carbon_cycle_mod, ONLY : carbon_cycle_cpl 46 46 USE indice_sol_mod 47 47 USE print_control_mod, ONLY: lunout 48 48 ! 49 49 ! Cette routine sert d'interface entre le modele atmospherique et le … … 100 100 INCLUDE "temps.h" 101 101 INCLUDE "YOMCST.h" 102 INCLUDE "iniprint.h"103 102 INCLUDE "dimensions.h" 104 103 … … 210 209 #ifndef CPP_VEGET 211 210 abort_message='Pb de coherence: ok_veget = .true. mais CPP_VEGET = .false.' 212 CALL abort_ gcm(modname,abort_message,1)211 CALL abort_physic(modname,abort_message,1) 213 212 #endif 214 213 … … 244 243 IF (error /= 0) THEN 245 244 abort_message='Pb allocation lalo' 246 CALL abort_ gcm(modname,abort_message,1)245 CALL abort_physic(modname,abort_message,1) 247 246 ENDIF 248 247 ENDIF … … 251 250 IF (error /= 0) THEN 252 251 abort_message='Pb allocation lon_scat' 253 CALL abort_ gcm(modname,abort_message,1)252 CALL abort_physic(modname,abort_message,1) 254 253 ENDIF 255 254 ENDIF … … 258 257 IF (error /= 0) THEN 259 258 abort_message='Pb allocation lat_scat' 260 CALL abort_ gcm(modname,abort_message,1)259 CALL abort_physic(modname,abort_message,1) 261 260 ENDIF 262 261 ENDIF … … 298 297 IF (error /= 0) THEN 299 298 abort_message='Pb allocation neighbours' 300 CALL abort_ gcm(modname,abort_message,1)299 CALL abort_physic(modname,abort_message,1) 301 300 ENDIF 302 301 ENDIF … … 306 305 IF (error /= 0) THEN 307 306 abort_message='Pb allocation contfrac' 308 CALL abort_ gcm(modname,abort_message,1)307 CALL abort_physic(modname,abort_message,1) 309 308 ENDIF 310 309 ENDIF … … 324 323 IF (error /= 0) THEN 325 324 abort_message='Pb allocation resolution' 326 CALL abort_ gcm(modname,abort_message,1)325 CALL abort_physic(modname,abort_message,1) 327 326 ENDIF 328 327 ENDIF … … 336 335 IF (error /= 0) THEN 337 336 abort_message='Pb allocation coastalflow' 338 CALL abort_ gcm(modname,abort_message,1)337 CALL abort_physic(modname,abort_message,1) 339 338 ENDIF 340 339 … … 342 341 IF (error /= 0) THEN 343 342 abort_message='Pb allocation riverflow' 344 CALL abort_ gcm(modname,abort_message,1)343 CALL abort_physic(modname,abort_message,1) 345 344 ENDIF 346 345 ! … … 349 348 IF (carbon_cycle_cpl) THEN 350 349 abort_message='carbon_cycle_cpl not yet possible with this interface of ORCHIDEE' 351 CALL abort_ gcm(modname,abort_message,1)350 CALL abort_physic(modname,abort_message,1) 352 351 END IF 353 352 -
LMDZ5/trunk/libf/phylmd/surf_land_orchidee_noopenmp_mod.F90
r1958 r2311 102 102 INCLUDE "temps.h" 103 103 INCLUDE "YOMCST.h" 104 INCLUDE "iniprint.h"105 104 INCLUDE "dimensions.h" 106 105 … … 215 214 IF (carbon_cycle_cpl) THEN 216 215 abort_message='You must define preprossing key ORCH_NEW when running carbon_cycle_cpl=y' 217 CALL abort_ gcm(modname,abort_message,1)216 CALL abort_physic(modname,abort_message,1) 218 217 END IF 219 218 #endif … … 246 245 IF (error /= 0) THEN 247 246 abort_message='Pb allocation lalo' 248 CALL abort_ gcm(modname,abort_message,1)247 CALL abort_physic(modname,abort_message,1) 249 248 ENDIF 250 249 ENDIF … … 253 252 IF (error /= 0) THEN 254 253 abort_message='Pb allocation lon_scat' 255 CALL abort_ gcm(modname,abort_message,1)254 CALL abort_physic(modname,abort_message,1) 256 255 ENDIF 257 256 ENDIF … … 260 259 IF (error /= 0) THEN 261 260 abort_message='Pb allocation lat_scat' 262 CALL abort_ gcm(modname,abort_message,1)261 CALL abort_physic(modname,abort_message,1) 263 262 ENDIF 264 263 ENDIF … … 301 300 IF (error /= 0) THEN 302 301 abort_message='Pb allocation neighbours' 303 CALL abort_ gcm(modname,abort_message,1)302 CALL abort_physic(modname,abort_message,1) 304 303 ENDIF 305 304 ENDIF … … 309 308 IF (error /= 0) THEN 310 309 abort_message='Pb allocation contfrac' 311 CALL abort_ gcm(modname,abort_message,1)310 CALL abort_physic(modname,abort_message,1) 312 311 ENDIF 313 312 ENDIF … … 327 326 IF (error /= 0) THEN 328 327 abort_message='Pb allocation resolution' 329 CALL abort_ gcm(modname,abort_message,1)328 CALL abort_physic(modname,abort_message,1) 330 329 ENDIF 331 330 ENDIF … … 339 338 IF (error /= 0) THEN 340 339 abort_message='Pb allocation coastalflow' 341 CALL abort_ gcm(modname,abort_message,1)340 CALL abort_physic(modname,abort_message,1) 342 341 ENDIF 343 342 … … 345 344 IF (error /= 0) THEN 346 345 abort_message='Pb allocation riverflow' 347 CALL abort_ gcm(modname,abort_message,1)346 CALL abort_physic(modname,abort_message,1) 348 347 ENDIF 349 348 … … 359 358 IF (carbon_cycle_cpl) THEN 360 359 ALLOCATE(fco2_land_inst(klon),stat=error) 361 IF (error /= 0) CALL abort_ gcm(modname,'Pb in allocation fco2_land_inst',1)360 IF (error /= 0) CALL abort_physic(modname,'Pb in allocation fco2_land_inst',1) 362 361 363 362 ALLOCATE(fco2_lu_inst(klon),stat=error) 364 IF(error /=0) CALL abort_ gcm(modname,'Pb in allocation fco2_lu_inst',1)363 IF(error /=0) CALL abort_physic(modname,'Pb in allocation fco2_lu_inst',1) 365 364 END IF 366 365 367 366 ALLOCATE(fields_cpl(klon,nb_fields_cpl), stat = error) 368 IF (error /= 0) CALL abort_ gcm(modname,'Pb in allocation fields_cpl',1)367 IF (error /= 0) CALL abort_physic(modname,'Pb in allocation fields_cpl',1) 369 368 370 369 ENDIF ! (fin debut) -
LMDZ5/trunk/libf/phylmd/surf_landice_mod.F90
r2254 r2311 209 209 #else 210 210 abort_message='Pb de coherence: ok_snow = .true. mais CPP_SISVAT = .false.' 211 CALL abort_ gcm(modname,abort_message,1)211 CALL abort_physic(modname,abort_message,1) 212 212 #endif 213 213 ELSE ! ok_snow=FALSE -
LMDZ5/trunk/libf/phylmd/sw_aeroAR4.F90
r1907 r2311 22 22 USE dimphy 23 23 USE phys_output_mod, ONLY : swaero_diag 24 USE print_control_mod, ONLY: lunout 24 25 IMPLICIT NONE 25 26 26 27 #include "YOMCST.h" 27 28 #include "clesphys.h" 28 #include "iniprint.h"29 29 ! 30 30 ! ------------------------------------------------------------------ -
LMDZ5/trunk/libf/phylmd/test_disvert_m.F90
r2049 r2311 61 61 end do 62 62 end do 63 call abort_ gcm("test_disvert", "bad order of pressure values", 1)63 call abort_physic("test_disvert", "bad order of pressure values", 1) 64 64 end if 65 65 -
LMDZ5/trunk/libf/phylmd/thermcell.F90
r1992 r2311 766 766 IF (fracd(ig,l)<0.1) THEN 767 767 abort_message = 'fracd trop petit' 768 CALL abort_ gcm(modname, abort_message, 1)768 CALL abort_physic(modname, abort_message, 1) 769 769 770 770 ELSE -
LMDZ5/trunk/libf/phylmd/thermcellV0_main.F90
r1978 r2311 14 14 USE dimphy 15 15 USE comgeomphy , ONLY:rlond,rlatd 16 USE print_control_mod, ONLY: prt_level,lunout 16 17 IMPLICIT NONE 17 18 … … 45 46 include "YOETHF.h" 46 47 include "FCTTRE.h" 47 include "iniprint.h"48 48 49 49 ! arguments: … … 465 465 if (.not. (f0(1).ge.0.) ) then 466 466 abort_message = 'Dans thermcell_main f0(1).lt.0 ' 467 CALL abort_ gcm(modname,abort_message,1)467 CALL abort_physic (modname,abort_message,1) 468 468 endif 469 469 … … 591 591 zcon2(ig)=zlay(ig,nlay)-(pcon(ig)-pplay(ig,nlay))/(RG*rho(ig,nlay))/100. 592 592 abort_message = 'thermcellV0_main: les thermiques vont trop haut ' 593 CALL abort_ gcm(modname,abort_message,1)593 CALL abort_physic (modname,abort_message,1) 594 594 endif 595 595 enddo … … 790 790 791 791 subroutine testV0_ltherm(klon,klev,pplev,pplay,long,seuil,ztv,po,ztva,zqla,f_star,zw2,comment) 792 USE print_control_mod, ONLY: prt_level 792 793 IMPLICIT NONE 793 include "iniprint.h"794 794 795 795 integer i, k, klon,klev … … 833 833 !thermcell_closure: fermeture, determination de f 834 834 !------------------------------------------------------------------------- 835 USE print_control_mod, ONLY: prt_level,lunout 835 836 IMPLICIT NONE 836 837 837 include "iniprint.h"838 838 include "thermcell.h" 839 839 INTEGER ngrid,nlay … … 880 880 print*,'wmax_sec',wmax_sec(ig) 881 881 abort_message = 'zdenom<1.e-14' 882 CALL abort_ gcm(modname,abort_message,1)882 CALL abort_physic (modname,abort_message,1) 883 883 endif 884 884 if ((zmax_sec(ig).gt.1.e-10).and.(iflag_thermals_ed.eq.0)) then … … 913 913 !-------------------------------------------------------------------------- 914 914 915 USE print_control_mod, ONLY: prt_level 915 916 IMPLICIT NONE 916 917 … … 918 919 include "YOETHF.h" 919 920 include "FCTTRE.h" 920 include "iniprint.h"921 921 include "thermcell.h" 922 922 … … 1711 1711 !thermcell_dry: calcul de zmax et wmax du thermique sec 1712 1712 !-------------------------------------------------------------------------- 1713 USE print_control_mod, ONLY: prt_level 1713 1714 IMPLICIT NONE 1714 1715 include "YOMCST.h" 1715 include "iniprint.h"1716 1716 INTEGER l,ig 1717 1717 … … 1923 1923 !thermcell_init: calcul du profil d alimentation du thermique 1924 1924 !---------------------------------------------------------------------- 1925 USE print_control_mod, ONLY: prt_level 1925 1926 IMPLICIT NONE 1926 include "iniprint.h"1927 1927 include "thermcell.h" 1928 1928 -
LMDZ5/trunk/libf/phylmd/thermcell_closure.F90
r1907 r2311 17 17 IMPLICIT NONE 18 18 19 #include "iniprint.h"20 19 #include "thermcell.h" 21 20 INTEGER ngrid,nlay -
LMDZ5/trunk/libf/phylmd/thermcell_dq.F90
r1985 r2311 1 1 subroutine thermcell_dq(ngrid,nlay,impl,ptimestep,fm,entr, & 2 2 & masse,q,dq,qa,lev_out) 3 USE print_control_mod, ONLY: prt_level 3 4 implicit none 4 5 5 #include "iniprint.h"6 6 !======================================================================= 7 7 ! … … 55 55 print*,'entr*dt>m,1',k,entr(ig,k)*ptimestep,masse(ig,k) 56 56 abort_message = 'entr dt > m, 1st' 57 CALL abort_ gcm(modname,abort_message,1)57 CALL abort_physic (modname,abort_message,1) 58 58 endif 59 59 enddo … … 152 152 subroutine thermcell_dq_o(ngrid,nlay,impl,ptimestep,fm,entr, & 153 153 & masse,q,dq,qa,lev_out) 154 USE print_control_mod, ONLY: prt_level 154 155 implicit none 155 156 156 #include "iniprint.h"157 157 !======================================================================= 158 158 ! … … 196 196 print*,'entr*dt>m,2',k,entr(ig,k)*ptimestep,masse(ig,k) 197 197 abort_message = 'entr dt > m, 2nd' 198 CALL abort_ gcm(modname,abort_message,1)198 CALL abort_physic (modname,abort_message,1) 199 199 endif 200 200 enddo -
LMDZ5/trunk/libf/phylmd/thermcell_dry.F90
r1998 r2311 15 15 !-------------------------------------------------------------------------- 16 16 17 USE print_control_mod, ONLY: prt_level 17 18 IMPLICIT NONE 18 19 #include "YOMCST.h" 19 #include "iniprint.h"20 20 INTEGER l,ig 21 21 -
LMDZ5/trunk/libf/phylmd/thermcell_dtke.F90
r1907 r2311 1 1 subroutine thermcell_dtke(ngrid,nlay,nsrf,ptimestep,fm0,entr0, & 2 2 & rg,pplev,tke) 3 USE print_control_mod, ONLY: prt_level 3 4 implicit none 4 5 5 #include "iniprint.h"6 6 !======================================================================= 7 7 ! -
LMDZ5/trunk/libf/phylmd/thermcell_dv2.F90
r1907 r2311 2 2 & ,fraca,larga & 3 3 & ,u,v,du,dv,ua,va,lev_out) 4 USE print_control_mod, ONLY: prt_level,lunout 4 5 implicit none 5 6 6 #include "iniprint.h"7 7 !======================================================================= 8 8 ! -
LMDZ5/trunk/libf/phylmd/thermcell_env.F90
r1907 r2311 7 7 !-------------------------------------------------------------- 8 8 9 USE print_control_mod, ONLY: prt_level 9 10 IMPLICIT NONE 10 11 … … 12 13 #include "YOETHF.h" 13 14 #include "FCTTRE.h" 14 #include "iniprint.h"15 15 16 16 INTEGER ngrid,nlay -
LMDZ5/trunk/libf/phylmd/thermcell_flux.F90
r1907 r2311 14 14 !--------------------------------------------------------------------------- 15 15 16 USE print_control_mod, ONLY: prt_level,lunout 16 17 IMPLICIT NONE 17 #include "iniprint.h"18 18 19 19 INTEGER ig,l … … 103 103 print*,'detr_star(ig,l)',detr_star(ig,l) 104 104 abort_message = '' 105 CALL abort_ gcm(modname,abort_message,1)105 CALL abort_physic (modname,abort_message,1) 106 106 endif 107 107 endif … … 268 268 print*,'N1 ig,l,entr',ig,l,entr(ig,l) 269 269 abort_message = 'entr negatif' 270 CALL abort_ gcm(modname,abort_message,1)270 CALL abort_physic (modname,abort_message,1) 271 271 endif 272 272 if (detr(ig,l).gt.fm(ig,l)) then … … 297 297 print*,'fm(ig,l)',fm(ig,l) 298 298 abort_message = 'probleme dans thermcell flux' 299 CALL abort_ gcm(modname,abort_message,1)299 CALL abort_physic (modname,abort_message,1) 300 300 endif 301 301 enddo … … 325 325 print*,'fm(ig,l)',fm(ig,l) 326 326 abort_message = 'probleme dans thermcell flux' 327 CALL abort_ gcm(modname,abort_message,1)327 CALL abort_physic (modname,abort_message,1) 328 328 endif 329 329 enddo … … 427 427 print*,'fm(ig,l)',fm(ig,l) 428 428 abort_message = 'probleme dans thermcell_flux' 429 CALL abort_ gcm(modname,abort_message,1)429 CALL abort_physic (modname,abort_message,1) 430 430 endif 431 431 entr(ig,l+1)=entr(ig,l+1)-ddd … … 511 511 print*,'fm(igout,l)',fm(igout,l) 512 512 abort_message = '' 513 CALL abort_ gcm(modname,abort_message,1)513 CALL abort_physic (modname,abort_message,1) 514 514 endif 515 515 enddo -
LMDZ5/trunk/libf/phylmd/thermcell_flux2.F90
r1907 r2311 13 13 !--------------------------------------------------------------------------- 14 14 15 USE print_control_mod, ONLY: prt_level 15 16 IMPLICIT NONE 16 #include "iniprint.h"17 17 #include "thermcell.h" 18 18 … … 50 50 save fomass_max,alphamax 51 51 52 logical check_debug,labort_ gcm52 logical check_debug,labort_physic 53 53 54 54 character (len=20) :: modname='thermcell_flux2' … … 108 108 print*,'detr_star(ig,l)',detr_star(ig,l) 109 109 abort_message = '' 110 labort_ gcm=.true.111 CALL abort_ gcm(modname,abort_message,1)110 labort_physic=.true. 111 CALL abort_physic (modname,abort_message,1) 112 112 endif 113 113 endif … … 270 270 271 271 272 labort_ gcm=.false.272 labort_physic=.false. 273 273 do ig=1,ngrid 274 274 if (entr(ig,l)<0.) then 275 labort_ gcm=.true.275 labort_physic=.true. 276 276 igout=ig 277 277 lout=l … … 279 279 enddo 280 280 281 if (labort_ gcm) then281 if (labort_physic) then 282 282 print*,'N1 ig,l,entr',igout,lout,entr(igout,lout) 283 283 abort_message = 'entr negatif' 284 CALL abort_ gcm(modname,abort_message,1)284 CALL abort_physic (modname,abort_message,1) 285 285 endif 286 286 … … 310 310 enddo 311 311 312 labort_ gcm=.false.312 labort_physic=.false. 313 313 do ig=1,ngrid 314 314 if (entr(ig,l).lt.0.) then 315 labort_ gcm=.true.315 labort_physic=.true. 316 316 igout=ig 317 317 endif 318 318 enddo 319 if (labort_ gcm) then319 if (labort_physic) then 320 320 ig=igout 321 321 print*,'ig,l,lmax(ig)',ig,l,lmax(ig) … … 323 323 print*,'fm(ig,l)',fm(ig,l) 324 324 abort_message = 'probleme dans thermcell flux' 325 CALL abort_ gcm(modname,abort_message,1)325 CALL abort_physic (modname,abort_message,1) 326 326 endif 327 327 … … 348 348 enddo 349 349 350 labort_ gcm=.false.350 labort_physic=.false. 351 351 do ig=1,ngrid 352 352 if (detr(ig,l).lt.0.) then 353 labort_ gcm=.true.353 labort_physic=.true. 354 354 igout=ig 355 355 endif 356 356 enddo 357 if (labort_ gcm) then357 if (labort_physic) then 358 358 ig=igout 359 359 print*,'cas 2 : ig,l,lmax(ig)',ig,l,lmax(ig) … … 361 361 print*,'fm(ig,l)',fm(ig,l) 362 362 abort_message = 'probleme dans thermcell flux' 363 CALL abort_ gcm(modname,abort_message,1)363 CALL abort_physic (modname,abort_message,1) 364 364 endif 365 365 ! enddo … … 427 427 428 428 if (1.eq.1) then 429 labort_ gcm=.false.429 labort_physic=.false. 430 430 do l=1,klev-1 431 431 do ig=1,ngrid … … 450 450 igout=ig 451 451 lout=l 452 labort_ gcm=.true.452 labort_physic=.true. 453 453 endif 454 454 entr(ig,l+1)=entr(ig,l+1)-ddd … … 461 461 enddo 462 462 enddo 463 if (labort_ gcm) then463 if (labort_physic) then 464 464 ig=igout 465 465 l=lout … … 479 479 print*,'fm(ig,l)',fm(ig,l) 480 480 abort_message = 'probleme dans thermcell_flux' 481 CALL abort_ gcm(modname,abort_message,1)481 CALL abort_physic (modname,abort_message,1) 482 482 endif 483 483 endif -
LMDZ5/trunk/libf/phylmd/thermcell_height.F90
r1998 r2311 6 6 !----------------------------------------------------------------------------- 7 7 IMPLICIT NONE 8 #include "iniprint.h"9 8 #include "thermcell.h" 10 9 -
LMDZ5/trunk/libf/phylmd/thermcell_init.F90
r1907 r2311 8 8 !thermcell_init: calcul du profil d alimentation du thermique 9 9 !---------------------------------------------------------------------- 10 USE print_control_mod, ONLY: lunout 10 11 IMPLICIT NONE 11 #include "iniprint.h"12 12 #include "thermcell.h" 13 13 -
LMDZ5/trunk/libf/phylmd/thermcell_main.F90
r2193 r2311 25 25 USE comgeomphy , ONLY:rlond,rlatd 26 26 USE indice_sol_mod 27 USE print_control_mod, ONLY: lunout,prt_level 27 28 IMPLICIT NONE 28 29 … … 66 67 #include "YOETHF.h" 67 68 #include "FCTTRE.h" 68 #include "iniprint.h"69 69 #include "thermcell.h" 70 70 … … 565 565 if (.not. (f0(1).ge.0.) ) then 566 566 abort_message = '.not. (f0(1).ge.0.)' 567 CALL abort_ gcm(modname,abort_message,1)567 CALL abort_physic (modname,abort_message,1) 568 568 endif 569 569 … … 695 695 if (ierr==1) then 696 696 abort_message = 'thermcellV0_main: les thermiques vont trop haut ' 697 CALL abort_ gcm(modname,abort_message,1)697 CALL abort_physic (modname,abort_message,1) 698 698 endif 699 699 … … 1097 1097 1098 1098 subroutine test_ltherm(klon,klev,pplev,pplay,long,seuil,ztv,po,ztva,zqla,f_star,zw2,comment) 1099 USE print_control_mod, ONLY: prt_level 1099 1100 IMPLICIT NONE 1100 #include "iniprint.h"1101 1101 1102 1102 integer i, k, klon,klev … … 1138 1138 subroutine thermcell_tke_transport(ngrid,nlay,ptimestep,fm0,entr0, & 1139 1139 & rg,pplev,therm_tke_max) 1140 USE print_control_mod, ONLY: prt_level 1140 1141 implicit none 1141 1142 1142 #include "iniprint.h"1143 1143 !======================================================================= 1144 1144 ! -
LMDZ5/trunk/libf/phylmd/thermcell_old.F90
r1992 r2311 520 520 IF (fracd(ig,l)<0.1) THEN 521 521 abort_message = 'fracd trop petit' 522 CALL abort_ gcm(modname, abort_message, 1)522 CALL abort_physic(modname, abort_message, 1) 523 523 ELSE 524 524 ! vitesse descendante "diagnostique" … … 1747 1747 PRINT *, 'THERMCELL PB ig=', ig, ' l=', l 1748 1748 abort_message = 'THERMCELL PB' 1749 CALL abort_ gcm(modname, abort_message, 1)1749 CALL abort_physic(modname, abort_message, 1) 1750 1750 END IF 1751 1751 ! if ((zw2(ig,l+1).gt.1.e-10).and.(zw2(ig,l).gt.1.e-10).and. … … 2051 2051 IF (fracd(ig,l)<0.1 .AND. (test(ig)==1)) THEN 2052 2052 abort_message = 'fracd trop petit' 2053 CALL abort_ gcm(modname, abort_message, 1)2053 CALL abort_physic(modname, abort_message, 1) 2054 2054 ELSE 2055 2055 ! vitesse descendante "diagnostique" … … 3101 3101 IF (fracd(ig,l)<0.1) THEN 3102 3102 abort_message = 'fracd trop petit' 3103 CALL abort_ gcm(modname, abort_message, 1)3103 CALL abort_physic(modname, abort_message, 1) 3104 3104 ELSE 3105 3105 ! vitesse descendante "diagnostique" … … 3906 3906 IF (fracd(ig,l)<0.1) THEN 3907 3907 abort_message = 'fracd trop petit' 3908 CALL abort_ gcm(modname, abort_message, 1)3908 CALL abort_physic(modname, abort_message, 1) 3909 3909 ELSE 3910 3910 ! vitesse descendante "diagnostique" … … 5209 5209 IF (fracd(ig,l)<0.1) THEN 5210 5210 abort_message = 'fracd trop petit' 5211 CALL abort_ gcm(modname, abort_message, 1)5211 CALL abort_physic(modname, abort_message, 1) 5212 5212 ELSE 5213 5213 ! vitesse descendante "diagnostique" -
LMDZ5/trunk/libf/phylmd/thermcell_plume.F90
r2267 r2311 13 13 USE IOIPSL, ONLY : getin 14 14 15 USE print_control_mod, ONLY: prt_level 15 16 IMPLICIT NONE 16 17 … … 18 19 #include "YOETHF.h" 19 20 #include "FCTTRE.h" 20 #include "iniprint.h"21 21 #include "thermcell.h" 22 22 … … 811 811 !-------------------------------------------------------------------------- 812 812 813 USE print_control_mod, ONLY: prt_level 813 814 IMPLICIT NONE 814 815 … … 816 817 #include "YOETHF.h" 817 818 #include "FCTTRE.h" 818 #include "iniprint.h"819 819 #include "thermcell.h" 820 820 -
LMDZ5/trunk/libf/phylmd/traclmdz_mod.F90
r2265 r2311 77 77 ! Allocate restart variables trs 78 78 ALLOCATE( trs(klon,nbtr), stat=ierr) 79 IF (ierr /= 0) CALL abort_ gcm('traclmdz_from_restart', 'pb in allocation 1',1)79 IF (ierr /= 0) CALL abort_physic('traclmdz_from_restart', 'pb in allocation 1',1) 80 80 81 81 ! Initialize trs with values read from restart file … … 96 96 USE mod_phys_lmdz_para 97 97 USE indice_sol_mod 98 99 INCLUDE "iniprint.h" 98 USE print_control_mod, ONLY: lunout 99 100 100 ! Input variables 101 101 REAL,DIMENSION(klon,nbsrf),INTENT(IN) :: pctsrf ! Pourcentage de sol f(nature du sol) … … 133 133 ! -------------------------------------------- 134 134 ALLOCATE( scavtr(nbtr), stat=ierr) 135 IF (ierr /= 0) CALL abort_ gcm('traclmdz_init', 'pb in allocation 9',1)135 IF (ierr /= 0) CALL abort_physic('traclmdz_init', 'pb in allocation 9',1) 136 136 scavtr(:)=1. 137 137 138 138 ALLOCATE( radio(nbtr), stat=ierr) 139 IF (ierr /= 0) CALL abort_ gcm('traclmdz_init', 'pb in allocation 11',1)139 IF (ierr /= 0) CALL abort_physic('traclmdz_init', 'pb in allocation 11',1) 140 140 radio(:) = .false. ! Par defaut pas decroissance radioactive 141 141 142 142 ALLOCATE( masktr(klon,nbtr), stat=ierr) 143 IF (ierr /= 0) CALL abort_ gcm('traclmdz_init', 'pb in allocation 2',1)143 IF (ierr /= 0) CALL abort_physic('traclmdz_init', 'pb in allocation 2',1) 144 144 145 145 ALLOCATE( fshtr(klon,nbtr), stat=ierr) 146 IF (ierr /= 0) CALL abort_ gcm('traclmdz_init', 'pb in allocation 3',1)146 IF (ierr /= 0) CALL abort_physic('traclmdz_init', 'pb in allocation 3',1) 147 147 148 148 ALLOCATE( hsoltr(nbtr), stat=ierr) 149 IF (ierr /= 0) CALL abort_ gcm('traclmdz_init', 'pb in allocation 4',1)149 IF (ierr /= 0) CALL abort_physic('traclmdz_init', 'pb in allocation 4',1) 150 150 151 151 ALLOCATE( tautr(nbtr), stat=ierr) 152 IF (ierr /= 0) CALL abort_ gcm('traclmdz_init', 'pb in allocation 5',1)152 IF (ierr /= 0) CALL abort_physic('traclmdz_init', 'pb in allocation 5',1) 153 153 tautr(:) = 0. 154 154 155 155 ALLOCATE( vdeptr(nbtr), stat=ierr) 156 IF (ierr /= 0) CALL abort_ gcm('traclmdz_init', 'pb in allocation 6',1)156 IF (ierr /= 0) CALL abort_physic('traclmdz_init', 'pb in allocation 6',1) 157 157 vdeptr(:) = 0. 158 158 -
LMDZ5/trunk/libf/phylmd/wake.F90
r2308 r2311 23 23 USE dimphy 24 24 use mod_phys_lmdz_para 25 USE print_control_mod, ONLY: prt_level 25 26 IMPLICIT NONE 26 27 ! ============================================================================ … … 116 117 include "YOMCST.h" 117 118 include "cvthermo.h" 118 include "iniprint.h"119 119 120 120 ! Arguments en entree -
LMDZ5/trunk/libf/phylmd/yamada4.F90
r1992 r2311 5 5 cd, q2, km, kn, kq, ustar, iflag_pbl) 6 6 USE dimphy 7 USE print_control_mod, ONLY: prt_level 7 8 IMPLICIT NONE 8 include "iniprint.h"9 9 ! ....................................................................... 10 10 ! ym#include "dimensions.h" -
LMDZ5/trunk/libf/phylmd/yamada_c.F90
r1907 r2311 6 6 & ,iflag_pbl,okiophys) 7 7 use dimphy 8 USE print_control_mod, ONLY: prt_level 8 9 IMPLICIT NONE 9 #include "iniprint.h"10 10 #include "YOMCST.h" 11 11 !.......................................................................
Note: See TracChangeset
for help on using the changeset viewer.