Changeset 3814 for dynamico_lmdz/aquaplanet/LMDZ5/libf
- Timestamp:
- Apr 15, 2015, 6:49:07 PM (10 years ago)
- Location:
- dynamico_lmdz/aquaplanet/LMDZ5/libf
- Files:
-
- 21 added
- 17 deleted
- 93 edited
Legend:
- Unmodified
- Added
- Removed
-
dynamico_lmdz/aquaplanet/LMDZ5/libf/misc/handle_err_m.F90
r3809 r3814 39 39 end if 40 40 end if 41 call abort_ gcm("NetCDF95 handle_err", "", 1)41 call abort_physic("NetCDF95 handle_err", "", 1) 42 42 end if 43 43 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/aaam_bud.F90
r3809 r3814 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/aeropt.F90
r3809 r3814 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/aeropt_2bands.F90
r3809 r3814 536 536 A1_SSSSM_b2(klev), A2_SSSSM_b2(klev), A3_SSSSM_b2(klev),& 537 537 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)538 IF (ierr /= 0) CALL abort_physic('aeropt_2bands', 'pb in allocation 1',1) 539 539 END IF 540 540 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/aeropt_5wv.F90
r3809 r3814 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/calltherm.F90
r3809 r3814 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/carbon_cycle_mod.F90
r3809 r3814 88 88 USE comgeomphy 89 89 USE mod_phys_lmdz_transfert_para 90 USE infotrac 90 USE infotrac_phy 91 91 USE IOIPSL 92 92 USE surface_data, ONLY : ok_veget, type_ocean … … 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 … … 225 225 co2trac(itc)%updatefreq = 86400 226 226 ! DOES THIS WORK ???? Problematic due to implementation of the coupled fluxes... 227 CALL abort_ gcm('carbon_cycle_init','transport of total CO2 has to be implemented and tested',1)227 CALL abort_physic('carbon_cycle_init','transport of total CO2 has to be implemented and tested',1) 228 228 END SELECT 229 229 END DO … … 247 247 ! Allocate vector for storing fluxes to inject 248 248 ALLOCATE(dtr_add(klon,maxco2trac), stat=ierr) 249 IF (ierr /= 0) CALL abort_ gcm('carbon_cycle_init', 'pb in allocation 11',1)249 IF (ierr /= 0) CALL abort_physic('carbon_cycle_init', 'pb in allocation 11',1) 250 250 251 251 ! Allocate variables for cumulating fluxes from ORCHIDEE … … 253 253 IF (.NOT. carbon_cycle_tr .AND. carbon_cycle_cpl) THEN 254 254 ALLOCATE(fco2_land_day(klon), stat=ierr) 255 IF (ierr /= 0) CALL abort_ gcm('carbon_cycle_init', 'pb in allocation 2',1)255 IF (ierr /= 0) CALL abort_physic('carbon_cycle_init', 'pb in allocation 2',1) 256 256 fco2_land_day(1:klon) = 0. 257 257 258 258 ALLOCATE(fco2_lu_day(klon), stat=ierr) 259 IF (ierr /= 0) CALL abort_ gcm('carbon_cycle_init', 'pb in allocation 3',1)259 IF (ierr /= 0) CALL abort_physic('carbon_cycle_init', 'pb in allocation 3',1) 260 260 fco2_lu_day(1:klon) = 0. 261 261 END IF … … 267 267 ! IF (carbon_cycle_cpl .AND. type_ocean/='couple') THEN 268 268 ! WRITE(lunout,*) 'Coupling with ocean model is needed for carbon_cycle_cpl' 269 ! CALL abort_ gcm('carbon_cycle_init', 'coupled ocean is needed for carbon_cycle_cpl',1)269 ! CALL abort_physic('carbon_cycle_init', 'coupled ocean is needed for carbon_cycle_cpl',1) 270 270 ! END IF 271 271 ! 272 272 ! IF (carbon_cycle_cpl .AND..NOT. ok_veget) THEN 273 273 ! WRITE(lunout,*) 'Coupling with surface land model ORCHDIEE is needed for carbon_cycle_cpl' 274 ! CALL abort_ gcm('carbon_cycle_init', 'ok_veget is needed for carbon_cycle_cpl',1)274 ! CALL abort_physic('carbon_cycle_init', 'ok_veget is needed for carbon_cycle_cpl',1) 275 275 ! END IF 276 276 … … 278 278 teststop=0 279 279 DO it=1,teststop 280 CALL abort_ gcm('carbon_cycle_init', 'Entering loop from 1 to 0',1)280 CALL abort_physic('carbon_cycle_init', 'Entering loop from 1 to 0',1) 281 281 END DO 282 282 … … 284 284 ! No carbon tracers found in tracer.def. It is not possible to do carbon cycle 285 285 WRITE(lunout,*) 'No carbon tracers found in tracer.def. Not ok with carbon_cycle_tr and/or carbon_cycle_cp' 286 CALL abort_ gcm('carbon_cycle_init', 'No carbon tracers found in tracer.def',1)286 CALL abort_physic('carbon_cycle_init', 'No carbon tracers found in tracer.def',1) 287 287 END IF 288 288 … … 303 303 ! - Calculate CO2 flux to send to ocean and land models (PISCES and ORCHIDEE) 304 304 305 USE infotrac 305 USE infotrac_phy 306 306 USE dimphy 307 307 USE mod_phys_lmdz_transfert_para … … 370 370 CASE DEFAULT 371 371 WRITE(lunout,*) 'Error with tracer ',co2trac(it)%name 372 CALL abort_ gcm('carbon_cycle', 'No coupling implemented for this tracer',1)372 CALL abort_physic('carbon_cycle', 'No coupling implemented for this tracer',1) 373 373 END SELECT 374 374 ELSE -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/cdrag.F90
r3809 r3814 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/change_srf_frac_mod.F90
r3809 r3814 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/clcdrag.F90
r3809 r3814 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/climb_wind_mod.F90
r3809 r3814 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) -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/coefcdrag.F90
r3809 r3814 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 ! -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/concvl.F90
r3809 r3814 29 29 30 30 USE dimphy 31 USE infotrac , ONLY: nbtr31 USE infotrac_phy, ONLY: nbtr 32 32 USE phys_local_var_mod, ONLY: omega 33 33 IMPLICIT NONE -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/condsurf.F90
r3809 r3814 6 6 USE mod_phys_lmdz_para 7 7 USE indice_sol_mod 8 USE temps_phy_mod 8 9 IMPLICIT NONE 9 10 … … 26 27 ! ym#include "dimensions.h" 27 28 ! ym#include "dimphy.h" 28 include "temps.h"29 29 include "clesphys.h" 30 30 … … 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/conema3.F90
r3809 r3814 8 8 9 9 USE dimphy 10 USE infotrac , ONLY: nbtr10 USE infotrac_phy, ONLY: nbtr 11 11 IMPLICIT NONE 12 12 ! ====================================================================== -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/conemav.F90
r3809 r3814 8 8 9 9 USE dimphy 10 USE infotrac , ONLY: nbtr10 USE infotrac_phy, ONLY: nbtr 11 11 IMPLICIT NONE 12 12 ! ====================================================================== -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/conf_phys_m.F90
r3809 r3814 27 27 USE phys_cal_mod 28 28 USE carbon_cycle_mod, ONLY : carbon_cycle_tr, carbon_cycle_cpl 29 USE control_ mod29 USE control_phy_mod 30 30 USE mod_grid_phy_lmdz, only: klon_glo 31 31 … … 245 245 WRITE(lunout,*)'Variable OCEAN has been replaced by the variable type_ocean.' 246 246 WRITE(lunout,*)'You have to update your parameter file physiq.def to succed running' 247 CALL abort_ gcm('conf_phys','Variable OCEAN no longer existing, use variable name type_ocean',1)247 CALL abort_physic('conf_phys','Variable OCEAN no longer existing, use variable name type_ocean',1) 248 248 END IF 249 249 … … 258 258 WRITE(lunout,*)'ERROR! Timestep of coupling between atmosphere and ocean' 259 259 WRITE(lunout,*)'cannot be zero.' 260 CALL abort_ gcm('conf_phys','t_coupl = 0.',1)260 CALL abort_physic('conf_phys','t_coupl = 0.',1) 261 261 END IF 262 262 … … 2077 2077 IF (type_ocean=='couple' .AND. (version_ocean/='opa8' .AND. version_ocean/='nemo') ) THEN 2078 2078 WRITE(lunout,*)' ERROR version_ocean=',version_ocean,' not valid in coupled configuration' 2079 CALL abort_ gcm('conf_phys','version_ocean not valid',1)2079 CALL abort_physic('conf_phys','version_ocean not valid',1) 2080 2080 END IF 2081 2081 … … 2085 2085 .AND. version_ocean/='sicINT' .AND. version_ocean/='sicNO') THEN 2086 2086 WRITE(lunout,*)' ERROR version_ocean=',version_ocean,' not valid with slab ocean' 2087 CALL abort_ gcm('conf_phys','version_ocean not valid',1)2087 CALL abort_physic('conf_phys','version_ocean not valid',1) 2088 2088 END IF 2089 2089 … … 2092 2092 IF (ok_ade .OR. ok_aie) THEN 2093 2093 IF ( flag_aerosol .EQ. 0 ) THEN 2094 CALL abort_ gcm('conf_phys','flag_aerosol=0 not compatible avec ok_ade ou ok_aie=.TRUE.',1)2094 CALL abort_physic('conf_phys','flag_aerosol=0 not compatible avec ok_ade ou ok_aie=.TRUE.',1) 2095 2095 END IF 2096 2096 IF ( .NOT. new_aod .AND. flag_aerosol .NE. 1) THEN 2097 CALL abort_ gcm('conf_phys','new_aod=.FALSE. not compatible avec flag_aerosol=1',1)2097 CALL abort_physic('conf_phys','new_aod=.FALSE. not compatible avec flag_aerosol=1',1) 2098 2098 END IF 2099 2099 END IF … … 2101 2101 ! ok_cdnc must be set to y if ok_aie is activated 2102 2102 IF (ok_aie .AND. .NOT. ok_cdnc) THEN 2103 CALL abort_ gcm('conf_phys', 'ok_cdnc must be set to y if ok_aie is activated',1)2103 CALL abort_physic('conf_phys', 'ok_cdnc must be set to y if ok_aie is activated',1) 2104 2104 ENDIF 2105 2105 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/convect3.F90
r3809 r3814 16 16 ! ################################################################# 17 17 USE dimphy 18 USE infotrac , ONLY: nbtr18 USE infotrac_phy, ONLY: nbtr 19 19 IMPLICIT NONE 20 20 include "dimensions.h" -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/cpl_mod.F90
r3809 r3814 24 24 USE oasis 25 25 USE write_field_phy 26 USE control_ mod26 USE control_phy_mod 27 27 28 28 … … 102 102 USE surface_data 103 103 USE indice_sol_mod 104 104 USE temps_phy_mod 105 105 INCLUDE "dimensions.h" 106 INCLUDE "temps.h"107 106 INCLUDE "iniprint.h" 108 107 … … 204 203 IF (sum_error /= 0) THEN 205 204 abort_message='Pb allocation variables couplees' 206 CALL abort_ gcm(modname,abort_message,1)205 CALL abort_physic(modname,abort_message,1) 207 206 ENDIF 208 207 !************************************************************************************* … … 279 278 IF (carbon_cycle_cpl .AND. version_ocean=='opa8') THEN 280 279 abort_message='carbon_cycle_cpl does not work with opa8' 281 CALL abort_ gcm(modname,abort_message,1)280 CALL abort_physic(modname,abort_message,1) 282 281 END IF 283 282 … … 297 296 USE carbon_cycle_mod, ONLY : carbon_cycle_cpl 298 297 USE indice_sol_mod 299 300 INCLUDE "temps.h"298 USE temps_phy_mod 299 301 300 INCLUDE "iniprint.h" 302 301 INCLUDE "YOMCST.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 … … 1028 1027 USE carbon_cycle_mod, ONLY : carbon_cycle_cpl 1029 1028 USE indice_sol_mod 1029 USE temps_phy_mod 1030 1030 1031 ! Some includes 1031 1032 !************************************************************************************* 1032 INCLUDE "temps.h"1033 1033 INCLUDE "dimensions.h" 1034 1034 … … 1291 1291 IF (sum_error /= 0) THEN 1292 1292 abort_message='Pb in deallocation of cpl_xxxx2D coupling variables' 1293 CALL abort_ gcm(modname,abort_message,1)1293 CALL abort_physic(modname,abort_message,1) 1294 1294 ENDIF 1295 1295 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/cv30_routines.F90
r3809 r3814 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/cv3_inicp.F90
r3809 r3814 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/cv3_inip.F90
r3809 r3814 138 138 WRITE (lunout, *) 'WARNING:: AREA OF MIXING PDF IS::', aire 139 139 abort_message = '' 140 CALL abort_ gcm(modname, abort_message, 1)140 CALL abort_physic(modname, abort_message, 1) 141 141 ELSE 142 142 PRINT *, 'Area, mean & std deviation are ::', aire, mu, sigma -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/cv3_routines.F90
r3809 r3814 965 965 WRITE (lunout, *) 'strange! nn not equal to ncum: ', nn, ncum 966 966 abort_message = '' 967 CALL abort_ gcm(modname, abort_message, 1)967 CALL abort_physic(modname, abort_message, 1) 968 968 END IF 969 969 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/cv3a_compress.F90
r3809 r3814 125 125 PRINT *, 'WARNING nn not equal to ncum: ', nn, ncum 126 126 abort_message = '' 127 CALL abort_ gcm(modname, abort_message, 1)127 CALL abort_physic(modname, abort_message, 1) 128 128 END IF 129 129 … … 155 155 PRINT *, 'WARNING nn not equal to ncum: ', nn, ncum 156 156 abort_message = '' 157 CALL abort_ gcm(modname, abort_message, 1)157 CALL abort_physic(modname, abort_message, 1) 158 158 END IF 159 159 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/cv3p1_closure.F90
r3809 r3814 551 551 , il, alp2(il), alp(il), cin(il) 552 552 abort_message = '' 553 CALL abort_ gcm(modname, abort_message, 1)553 CALL abort_physic(modname, abort_message, 1) 554 554 END IF 555 555 cbmfmax(il) = sigmax*wb2(il)*100.*p(il, icb(il))/(rrd*tv(il,icb(il))) -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/cv_routines.F90
r3809 r3814 453 453 WRITE (lunout, *) 'strange! nn not equal to ncum: ', nn, ncum 454 454 abort_message = '' 455 CALL abort_ gcm(modname, abort_message, 1)455 CALL abort_physic(modname, abort_message, 1) 456 456 END IF 457 457 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/cva_driver.F90
r3809 r3814 671 671 WRITE (lunout, *) 'changer la valeur de sig2feed dans physiq.def' 672 672 abort_message = '' 673 CALL abort_ gcm(modname, abort_message, 1)673 CALL abort_physic(modname, abort_message, 1) 674 674 END IF 675 675 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/cvltr.F90
r3809 r3814 12 12 USE IOIPSL 13 13 USE dimphy 14 USE infotrac , ONLY : nbtr,tname14 USE infotrac_phy, ONLY : nbtr,tname 15 15 IMPLICIT NONE 16 16 !===================================================================== -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/cvltr_noscav.F90
r3809 r3814 4 4 SUBROUTINE cvltr_noscav(it,pdtime,da, phi, mp,wght_cvfd,paprs,pplay,x,upd,dnd,dx) 5 5 USE dimphy 6 USE infotrac , ONLY : nbtr6 USE infotrac_phy, ONLY : nbtr 7 7 IMPLICIT NONE 8 8 !===================================================================== -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/cvltr_scav.F90
r3809 r3814 13 13 USE IOIPSL 14 14 USE dimphy 15 USE infotrac , ONLY : nbtr,tname15 USE infotrac_phy, ONLY : nbtr,tname 16 16 IMPLICIT NONE 17 17 !===================================================================== -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/cvltr_spl.F90
r3809 r3814 13 13 USE IOIPSL 14 14 USE dimphy 15 USE infotrac , ONLY : nbtr,tname15 USE infotrac_phy, ONLY : nbtr,tname 16 16 IMPLICIT NONE 17 17 !===================================================================== -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/cvltrorig.F90
r3809 r3814 4 4 SUBROUTINE cvltrorig(it,pdtime,da, phi, mp,paprs,pplay,x,upd,dnd,dx) 5 5 USE dimphy 6 USE infotrac , ONLY : nbtr6 USE infotrac_phy, ONLY : nbtr 7 7 IMPLICIT NONE 8 8 !===================================================================== -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/ener_conserv.F90
r3809 r3814 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/fisrtilp.F90
r3809 r3814 25 25 !ym include "dimphy.h" 26 26 include "YOMCST.h" 27 include "tracstoke.h"28 27 include "fisrtilp.h" 29 28 include "nuage.h" ! JBM (3/14) -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/fisrtilp_tr.F90
r3809 r3814 21 21 ! ym#include "dimphy.h" 22 22 include "YOMCST.h" 23 include "tracstoke.h"24 23 include "iniprint.h" 25 24 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/fonte_neige_mod.F90
r3809 r3814 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/hgardfou.F90
r3809 r3814 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/inifis.F90
r3809 r3814 60 60 PRINT *, 'klev = ', klev 61 61 abort_message = '' 62 CALL abort_ gcm(modname, abort_message, 1)62 CALL abort_physic(modname, abort_message, 1) 63 63 END IF 64 64 … … 69 69 PRINT *, 'klon = ', klon 70 70 abort_message = '' 71 CALL abort_ gcm(modname, abort_message, 1)71 CALL abort_physic(modname, abort_message, 1) 72 72 END IF 73 73 … … 76 76 & & 77 77 & et surf.def' 78 CALL abort_ gcm(modname, abort_message, 1)78 CALL abort_physic(modname, abort_message, 1) 79 79 80 80 END SUBROUTINE inifis -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/init_be.F90
r3809 r3814 6 6 USE dimphy 7 7 USE comgeomphy 8 USE infotrac , ONLY : nbtr8 USE infotrac_phy, ONLY : nbtr 9 9 USE indice_sol_mod 10 10 … … 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/init_phys_lmdz.F90
r3809 r3814 2 2 !$Header$ 3 3 ! 4 SUBROUTINE Init_Phys_lmdz(iim,jjp1,llm,nb_proc,distrib )4 SUBROUTINE Init_Phys_lmdz(iim,jjp1,llm,nb_proc,distrib,communicator) 5 5 USE mod_phys_lmdz_para, ONLY: Init_phys_lmdz_para, klon_omp 6 6 USE mod_grid_phy_lmdz, ONLY: Init_grid_phy_lmdz, nbp_lev 7 7 USE dimphy, ONLY : Init_dimphy 8 USE infotrac , ONLY : type_trac8 USE infotrac_phy, ONLY : type_trac 9 9 #ifdef REPROBUS 10 10 USE CHEM_REP, ONLY : Init_chem_rep_phys … … 18 18 INTEGER,INTENT(in) :: nb_proc 19 19 INTEGER,INTENT(in) :: distrib(0:nb_proc-1) 20 INTEGER,INTENT(in) :: communicator 20 21 21 22 22 23 CALL Init_grid_phy_lmdz(iim,jjp1,llm) 23 CALL Init_phys_lmdz_para(iim,jjp1,nb_proc,distrib )24 CALL Init_phys_lmdz_para(iim,jjp1,nb_proc,distrib,communicator) 24 25 !$OMP PARALLEL 25 26 CALL Init_dimphy(klon_omp,nbp_lev) -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/initphysto.F90
r3809 r3814 8 8 USE IOIPSL 9 9 USE iophy 10 USE control_ mod10 USE control_phy_mod 11 11 USE indice_sol_mod 12 12 USE comconst_phy_mod 13 USE temps_phy_mod 13 14 IMPLICIT NONE 14 15 … … 40 41 ! Declarations 41 42 INCLUDE "dimensions.h" 42 INCLUDE "paramet.h"43 INCLUDE "comconst.h"44 INCLUDE "comgeom.h"45 INCLUDE "temps.h"46 INCLUDE "logic.h"47 43 INCLUDE "description.h" 48 INCLUDE "serre.h"49 44 50 45 ! Arguments … … 71 66 ! Initialisations 72 67 ! 73 pi = 4. * ATAN (1.)74 68 ok_sync= .TRUE. 75 69 ! -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/initrrnpb.F90
r3809 r3814 4 4 SUBROUTINE initrrnpb(ftsol,pctsrf,masktr,fshtr,hsoltr,tautr,vdeptr,scavtr) 5 5 USE dimphy 6 USE infotrac , ONLY : nbtr6 USE infotrac_phy, ONLY : nbtr 7 7 USE traclmdz_mod, ONLY : id_rn, id_pb 8 8 USE indice_sol_mod -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/interfoce_lim.F90
r3809 r3814 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/iophy.F90
r3809 r3814 451 451 use phys_output_var_mod, only: type_ecri, zoutm, zdtime_moy, lev_files, & 452 452 nid_files, nhorim, swaero_diag, nfiles 453 USE temps_phy_mod 453 454 IMPLICIT NONE 454 455 455 INCLUDE "dimensions.h" 456 INCLUDE "temps.h"457 456 INCLUDE "clesphys.h" 458 457 … … 507 506 nhorim, zdtime_moy, levmin, levmax, & 508 507 nvertm, nfiles 508 USE temps_phy_mod 509 509 IMPLICIT NONE 510 510 511 511 INCLUDE "dimensions.h" 512 INCLUDE "temps.h"513 512 ! INCLUDE "indicesol.h" 514 513 INCLUDE "clesphys.h" … … 566 565 use wxios, only: wxios_add_field_to_file 567 566 #endif 567 USE temps_phy_mod 568 568 IMPLICIT NONE 569 569 570 570 INCLUDE "dimensions.h" 571 INCLUDE "temps.h"572 571 INCLUDE "clesphys.h" 573 572 INCLUDE "iniprint.h" … … 653 652 use wxios, only: wxios_add_field_to_file 654 653 #endif 654 USE temps_phy_mod 655 655 IMPLICIT NONE 656 656 657 657 INCLUDE "dimensions.h" 658 INCLUDE "temps.h"659 658 INCLUDE "clesphys.h" 660 659 INCLUDE "iniprint.h" … … 767 766 768 767 769 IF (size(field)/=klon) CALL abort_ gcm('iophy::histwrite2d','Field first DIMENSION not equal to klon',1)768 IF (size(field)/=klon) CALL abort_physic('iophy::histwrite2d','Field first DIMENSION not equal to klon',1) 770 769 771 770 CALL Gather_omp(field,buffer_omp) … … 831 830 832 831 833 IF (size(field,1)/=klon) CALL abort_ gcm('iophy::histwrite3d','Field first DIMENSION not equal to klon',1)832 IF (size(field,1)/=klon) CALL abort_physic('iophy::histwrite3d','Field first DIMENSION not equal to klon',1) 834 833 nlev=size(field,2) 835 834 … … 945 944 946 945 !Et sinon on.... écrit 947 IF (SIZE(field)/=klon) CALL abort_ gcm('iophy::histwrite2d_phy','Field first DIMENSION not equal to klon',1)946 IF (SIZE(field)/=klon) CALL abort_physic('iophy::histwrite2d_phy','Field first DIMENSION not equal to klon',1) 948 947 949 948 if (prt_level >= 10) then … … 971 970 endif 972 971 #else 973 CALL abort_ gcm('iophy','cannot have ok_all_xml = .T. without CPP_XIOS defined' ,1)972 CALL abort_physic ('iophy','cannot have ok_all_xml = .T. without CPP_XIOS defined' ,1) 974 973 #endif 975 974 ELSE … … 1095 1094 ELSE 1096 1095 !Et sinon on.... écrit 1097 IF (SIZE(field,1)/=klon) CALL abort_ gcm('iophy::histwrite3d','Field first DIMENSION not equal to klon',1)1096 IF (SIZE(field,1)/=klon) CALL abort_physic('iophy::histwrite3d','Field first DIMENSION not equal to klon',1) 1098 1097 nlev=SIZE(field,2) 1099 1098 if (nlev.eq.klev+1) then … … 1119 1118 CALL xios_send_field(var%name, Field3d(:,:,1:nlevx)) 1120 1119 #else 1121 CALL abort_ gcm('iophy','cannot have ok_all_xml = .T. without CPP_XIOS defined' ,1)1120 CALL abort_physic ('iophy','cannot have ok_all_xml = .T. without CPP_XIOS defined' ,1) 1122 1121 #endif 1123 1122 ELSE … … 1216 1215 1217 1216 !Et sinon on.... écrit 1218 IF (SIZE(field)/=klon) CALL abort_ gcm('iophy::histwrite2d_xios','Field first DIMENSION not equal to klon',1)1217 IF (SIZE(field)/=klon) CALL abort_physic('iophy::histwrite2d_xios','Field first DIMENSION not equal to klon',1) 1219 1218 1220 1219 CALL Gather_omp(field,buffer_omp) … … 1286 1285 1287 1286 !Et on.... écrit 1288 IF (SIZE(field,1)/=klon) CALL abort_ gcm('iophy::histwrite3d','Field first DIMENSION not equal to klon',1)1287 IF (SIZE(field,1)/=klon) CALL abort_physic('iophy::histwrite3d','Field first DIMENSION not equal to klon',1) 1289 1288 nlev=SIZE(field,2) 1290 1289 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/iostart.F90
r3809 r3814 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/limit_read_mod.F90
r3809 r3814 195 195 IF ( type_ocean /= 'couple' ) THEN 196 196 ALLOCATE(pctsrf(klon,nbsrf), sst(klon), stat=ierr) 197 IF (ierr /= 0) CALL abort_ gcm(modname, 'PB in allocating pctsrf and sst',1)197 IF (ierr /= 0) CALL abort_physic(modname, 'PB in allocating pctsrf and sst',1) 198 198 END IF 199 199 200 200 IF ( .NOT. ok_veget ) THEN 201 201 ALLOCATE(rugos(klon), albedo(klon), stat=ierr) 202 IF (ierr /= 0) CALL abort_ gcm(modname, 'PB in allocating rugos and albedo',1)202 IF (ierr /= 0) CALL abort_physic(modname, 'PB in allocating rugos and albedo',1) 203 203 END IF 204 204 … … 220 220 221 221 ierr = NF90_OPEN ('limit.nc', NF90_NOWRITE, nid) 222 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,&222 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,& 223 223 'Pb d''ouverture du fichier de conditions aux limites',1) 224 224 … … 239 239 ! Ocean fraction 240 240 ierr = NF90_INQ_VARID(nid, 'FOCE', nvarid) 241 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname, 'Le champ <FOCE> est absent',1)241 IF (ierr /= NF90_NOERR) CALL abort_physic(modname, 'Le champ <FOCE> est absent',1) 242 242 243 243 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)244 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Lecture echouee pour <FOCE>' ,1) 245 245 ! 246 246 ! Sea-ice fraction 247 247 ierr = NF90_INQ_VARID(nid, 'FSIC', nvarid) 248 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Le champ <FSIC> est absent',1)248 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Le champ <FSIC> est absent',1) 249 249 250 250 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)251 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Lecture echouee pour <FSIC>' ,1) 252 252 253 253 … … 257 257 ! Land fraction 258 258 ierr = NF90_INQ_VARID(nid, 'FTER', nvarid) 259 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Le champ <FTER> est absent',1)259 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Le champ <FTER> est absent',1) 260 260 261 261 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)262 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Lecture echouee pour <FTER>',1) 263 263 ! 264 264 ! Continentale ice fraction 265 265 ierr = NF90_INQ_VARID(nid, 'FLIC', nvarid) 266 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Le champ <FLIC> est absent',1)266 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Le champ <FLIC> est absent',1) 267 267 268 268 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)269 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Lecture echouee pour <FLIC>',1) 270 270 END IF 271 271 … … 279 279 280 280 ierr = NF90_INQ_VARID(nid, 'SST', nvarid) 281 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Le champ <SST> est absent',1)281 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Le champ <SST> est absent',1) 282 282 283 283 ierr = NF90_GET_VAR(nid,nvarid,sst_glo,start,epais) 284 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Lecture echouee pour <SST>',1)284 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Lecture echouee pour <SST>',1) 285 285 286 286 END IF … … 295 295 ! Read albedo 296 296 ierr = NF90_INQ_VARID(nid, 'ALB', nvarid) 297 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Le champ <ALB> est absent',1)297 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Le champ <ALB> est absent',1) 298 298 299 299 ierr = NF90_GET_VAR(nid,nvarid,alb_glo,start,epais) 300 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Lecture echouee pour <ALB>',1)300 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Lecture echouee pour <ALB>',1) 301 301 ! 302 302 ! Read rugosity 303 303 ierr = NF90_INQ_VARID(nid, 'RUG', nvarid) 304 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Le champ <RUG> est absent',1)304 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Le champ <RUG> est absent',1) 305 305 306 306 ierr = NF90_GET_VAR(nid,nvarid,rug_glo,start,epais) 307 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Lecture echouee pour <RUG>',1)307 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Lecture echouee pour <RUG>',1) 308 308 309 309 END IF … … 314 314 !**************************************************************************************** 315 315 ierr = NF90_CLOSE(nid) 316 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Pb when closing file', 1)316 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Pb when closing file', 1) 317 317 ENDIF ! is_mpi_root 318 318 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/limit_slab.F90
r3809 r3814 11 11 IMPLICIT NONE 12 12 13 INCLUDE "temps.h"14 13 INCLUDE "clesphys.h" 15 14 INCLUDE "dimensions.h" … … 113 112 !**************************************************************************************** 114 113 ierr = NF90_CLOSE(nid) 115 IF (ierr /= NF90_NOERR) CALL abort_ gcm(modname,'Pb when closing file', 1)114 IF (ierr /= NF90_NOERR) CALL abort_physic(modname,'Pb when closing file', 1) 116 115 END IF ! Read File 117 116 IF (read_sst) THEN … … 133 132 IF (.NOT. ALLOCATED(bils_save)) THEN 134 133 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)134 IF (ierr /= 0) CALL abort_physic('limit_slab', 'pb in allocation',1) 136 135 END IF 137 136 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/lsc_scav.F90
r3809 r3814 9 9 USE mod_phys_lmdz_para 10 10 USE traclmdz_mod 11 USE infotrac ,ONLY : nbtr11 USE infotrac_phy,ONLY : nbtr 12 12 USE comgeomphy 13 13 USE iophy -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/mod_surf_para.F90
r3809 r3814 49 49 50 50 SUBROUTINE Init_surf_para(knon) 51 USE mod_phys_lmdz_para , mpi_rank_root=>mpi_root51 USE mod_phys_lmdz_para 52 52 #ifdef CPP_MPI 53 53 INCLUDE 'mpif.h' … … 168 168 169 169 SUBROUTINE gather_surf_mpi_i(FieldIn,FieldOut) 170 USE mod_phys_lmdz_para , mpi_rank_root => mpi_root170 USE mod_phys_lmdz_para 171 171 #ifdef CPP_MPI 172 172 INCLUDE 'mpif.h' … … 180 180 CALL MPI_Gatherv(FieldIn,knon_mpi,MPI_INTEGER, & 181 181 FieldOut,knon_mpi_para,knon_mpi_begin_para(:)-1,MPI_INTEGER, & 182 mpi_ rank_root,COMM_LMDZ_PHY,ierr)182 mpi_master,COMM_LMDZ_PHY,ierr) 183 183 #endif 184 184 ELSE … … 223 223 224 224 SUBROUTINE gather_surf_mpi_r(FieldIn,FieldOut) 225 USE mod_phys_lmdz_para , mpi_rank_root => mpi_root225 USE mod_phys_lmdz_para 226 226 #ifdef CPP_MPI 227 227 INCLUDE 'mpif.h' … … 235 235 CALL MPI_Gatherv(FieldIn,knon_mpi,MPI_REAL_LMDZ, & 236 236 FieldOut,knon_mpi_para,knon_mpi_begin_para(:)-1,MPI_REAL_LMDZ, & 237 mpi_ rank_root,COMM_LMDZ_PHY,ierr)237 mpi_master,COMM_LMDZ_PHY,ierr) 238 238 #endif 239 239 ELSE … … 276 276 277 277 SUBROUTINE scatter_surf_mpi_i(FieldIn,FieldOut) 278 USE mod_phys_lmdz_para , mpi_rank_root => mpi_root278 USE mod_phys_lmdz_para 279 279 #ifdef CPP_MPI 280 280 INCLUDE 'mpif.h' … … 288 288 CALL MPI_Scatterv(FieldIn,knon_mpi_para,knon_mpi_begin_para(:)-1,MPI_INTEGER, & 289 289 FieldOut,knon_mpi,MPI_INTEGER, & 290 mpi_ rank_root,COMM_LMDZ_PHY,ierr)290 mpi_master,COMM_LMDZ_PHY,ierr) 291 291 #endif 292 292 ELSE … … 328 328 329 329 SUBROUTINE scatter_surf_mpi_r(FieldIn,FieldOut) 330 USE mod_phys_lmdz_para , mpi_rank_root => mpi_root330 USE mod_phys_lmdz_para 331 331 #ifdef CPP_MPI 332 332 INCLUDE 'mpif.h' … … 340 340 CALL MPI_Scatterv(FieldIn,knon_mpi_para,knon_mpi_begin_para(:)-1,MPI_INTEGER, & 341 341 FieldOut,knon_mpi,MPI_INTEGER, & 342 mpi_ rank_root,COMM_LMDZ_PHY,ierr)342 mpi_master,COMM_LMDZ_PHY,ierr) 343 343 #endif 344 344 ELSE -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/o3_chem_m.F90
r3809 r3814 20 20 use dimphy, only: klon 21 21 use regr_pr_comb_coefoz_m, only: c_Mob, a4_mass, a2, r_het_interm 22 22 use comconst_phy_mod 23 23 24 integer, intent(in):: julien ! jour julien, 1 <= julien <= 360 24 25 real, intent(in):: gmtime ! heure de la journée en fraction de jour … … 39 40 ! Variables local to the procedure: 40 41 include "dimensions.h" 41 include "comconst.h"42 42 ! (for "pi") 43 43 integer k -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/o3cm.F90
r3809 r3814 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) -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/oasis.F90
r3809 r3814 218 218 IF (ierror .NE. PRISM_Ok) THEN 219 219 abort_message=' Probleme init dans prism_init_comp ' 220 CALL abort_ gcm(modname,abort_message,1)220 CALL abort_physic(modname,abort_message,1) 221 221 ELSE 222 222 WRITE(lunout,*) 'inicma : init psmile ok ' … … 240 240 IF (ierror .NE. PRISM_Ok) THEN 241 241 abort_message=' Probleme dans prism_def_partition ' 242 CALL abort_ gcm(modname,abort_message,1)242 CALL abort_physic(modname,abort_message,1) 243 243 ELSE 244 244 WRITE(lunout,*) 'inicma : decomposition domaine psmile ok ' … … 268 268 inforecv(jf)%name 269 269 abort_message=' Problem in call to prism_def_var_proto for fields to receive' 270 CALL abort_ gcm(modname,abort_message,1)270 CALL abort_physic(modname,abort_message,1) 271 271 ENDIF 272 272 ENDIF … … 286 286 infosend(jf)%name 287 287 abort_message=' Problem in call to prism_def_var_proto for fields to send' 288 CALL abort_ gcm(modname,abort_message,1)288 CALL abort_physic(modname,abort_message,1) 289 289 ENDIF 290 290 ENDIF … … 297 297 IF (ierror .NE. PRISM_Ok) THEN 298 298 abort_message=' Problem in call to prism_endef_proto' 299 CALL abort_ gcm(modname,abort_message,1)299 CALL abort_physic(modname,abort_message,1) 300 300 ELSE 301 301 WRITE(lunout,*) 'inicma : endef psmile ok ' … … 362 362 WRITE (lunout,*) 'Error with receiving filed : ', inforecv(i)%name, ktime 363 363 abort_message=' Problem in prism_get_proto ' 364 CALL abort_ gcm(modname,abort_message,1)364 CALL abort_physic(modname,abort_message,1) 365 365 ENDIF 366 366 ENDIF … … 444 444 WRITE (lunout,*) 'Error with sending field :', infosend(i)%name, ktime 445 445 abort_message=' Problem in prism_put_proto ' 446 CALL abort_ gcm(modname,abort_message,1)446 CALL abort_physic(modname,abort_message,1) 447 447 ENDIF 448 448 ENDIF … … 459 459 IF (ierror .NE. PRISM_Ok) THEN 460 460 abort_message=' Problem in prism_terminate_proto ' 461 CALL abort_ gcm(modname,abort_message,1)461 CALL abort_physic(modname,abort_message,1) 462 462 ENDIF 463 463 ENDIF -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/ocean_slab_mod.F90
r3809 r3814 110 110 IF (error /= 0) THEN 111 111 abort_message='Pb allocation tmp_pctsrf_slab' 112 CALL abort_ gcm(modname,abort_message,1)112 CALL abort_physic(modname,abort_message,1) 113 113 ENDIF 114 114 fsic(:)=0. … … 121 121 !**************************************************************************************** 122 122 ALLOCATE(tslab(klon,nslay), stat=error) 123 IF (error /= 0) CALL abort_ gcm&123 IF (error /= 0) CALL abort_physic & 124 124 (modname,'pb allocation tslab', 1) 125 125 … … 127 127 IF (error /= 0) THEN 128 128 abort_message='Pb allocation slab_bils' 129 CALL abort_ gcm(modname,abort_message,1)129 CALL abort_physic(modname,abort_message,1) 130 130 ENDIF 131 131 slab_bils(:) = 0.0 … … 133 133 IF (error /= 0) THEN 134 134 abort_message='Pb allocation slab_bils_cum' 135 CALL abort_ gcm(modname,abort_message,1)135 CALL abort_physic(modname,abort_message,1) 136 136 ENDIF 137 137 bils_cum(:) = 0.0 … … 141 141 IF (error /= 0) THEN 142 142 abort_message='Pb allocation slab_bilg' 143 CALL abort_ gcm(modname,abort_message,1)143 CALL abort_physic(modname,abort_message,1) 144 144 ENDIF 145 145 slab_bilg(:) = 0.0 … … 147 147 IF (error /= 0) THEN 148 148 abort_message='Pb allocation slab_bilg_cum' 149 CALL abort_ gcm(modname,abort_message,1)149 CALL abort_physic(modname,abort_message,1) 150 150 ENDIF 151 151 bilg_cum(:) = 0.0 … … 153 153 IF (error /= 0) THEN 154 154 abort_message='Pb allocation slab_tice' 155 CALL abort_ gcm(modname,abort_message,1)155 CALL abort_physic(modname,abort_message,1) 156 156 ENDIF 157 157 ALLOCATE(seaice(klon), stat = error) 158 158 IF (error /= 0) THEN 159 159 abort_message='Pb allocation slab_seaice' 160 CALL abort_ gcm(modname,abort_message,1)160 CALL abort_physic(modname,abort_message,1) 161 161 ENDIF 162 162 END IF … … 169 169 IF (error /= 0) THEN 170 170 abort_message='Pb allocation slabh' 171 CALL abort_ gcm(modname,abort_message,1)171 CALL abort_physic(modname,abort_message,1) 172 172 ENDIF 173 173 slabh(1)=50. -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/orografi.F90
r3809 r3814 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/orografi_strato.F90
r3809 r3814 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/pbl_surface_mod.F90
r3809 r3814 23 23 USE climb_wind_mod, ONLY : climb_wind_down, climb_wind_up 24 24 USE coef_diff_turb_mod, ONLY : coef_diff_turb 25 USE control_ mod25 USE control_phy_mod 26 26 27 27 … … 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 263 USE temps_phy_mod 264 264 IMPLICIT NONE 265 265 … … 272 272 INCLUDE "compbl.h" 273 273 INCLUDE "dimensions.h" 274 INCLUDE "temps.h"275 274 INCLUDE "flux_arp.h" 276 275 !**************************************************************************************** … … 1837 1836 WRITE(lunout,*) 'Surface index = ', nsrf 1838 1837 abort_message = 'Surface index not valid' 1839 CALL abort_ gcm(modname,abort_message,1)1838 CALL abort_physic(modname,abort_message,1) 1840 1839 END SELECT 1841 1840 … … 3049 3048 ! Security abort. This option has never been tested. To test, comment the following line. 3050 3049 ! abort_message='The fraction of the continents have changed!' 3051 ! CALL abort_ gcm(modname,abort_message,1)3050 ! CALL abort_physic(modname,abort_message,1) 3052 3051 nfois(nsrf) = nfois(nsrf) + 1 3053 3052 END IF -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/phyaqua_mod.F90
r3809 r3814 25 25 USE fonte_neige_mod, ONLY: fonte_neige_init 26 26 USE phys_state_var_mod 27 USE control_ mod, ONLY: dayref, nday, iphysiq27 USE control_phy_mod, ONLY: dayref, nday, iphysiq 28 28 USE indice_sol_mod 29 29 USE temps_phy_mod 30 USE comconst_phy_mod 30 31 USE ioipsl 31 32 IMPLICIT NONE … … 34 35 ! #include "dimphy.h" 35 36 ! #include "YOMCST.h" 36 include "comconst.h"37 ! include "comconst.h" 37 38 include "clesphys.h" 38 39 include "dimsoil.h" 39 include "temps.h"40 ! include "temps.h" 40 41 41 42 INTEGER, INTENT (IN) :: nlon, iflag_phys -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/phyetat0.F90
r3809 r3814 21 21 zstd, zthe, zval, ale_bl, ale_bl_trig, alp_bl 22 22 USE iostart, ONLY : close_startphy, get_field, get_var, open_startphy 23 USE infotrac , only: nbtr, type_trac, tname, niadv23 USE infotrac_phy, only: nbtr, type_trac, tname, niadv 24 24 USE traclmdz_mod, ONLY : traclmdz_from_restart 25 25 USE carbon_cycle_mod, ONLY : carbon_cycle_tr, carbon_cycle_cpl, co2_send 26 26 USE indice_sol_mod, only: nbsrf, is_ter, epsfra, is_lic, is_oce, is_sic 27 27 USE ocean_slab_mod, ONLY: tslab, seaice, tice, ocean_slab_init 28 USE temps_phy_mod 28 29 29 30 IMPLICIT none … … 36 37 include "dimsoil.h" 37 38 include "clesphys.h" 38 include "temps.h"39 39 include "thermcell.h" 40 40 include "compbl.h" … … 211 211 IF (nsrf.GT.99) THEN 212 212 PRINT*, "Trop de sous-mailles" 213 call abort_ gcm("phyetat0", "", 1)213 call abort_physic("phyetat0", "", 1) 214 214 ENDIF 215 215 WRITE(str2, '(i2.2)') nsrf … … 248 248 IF (isw.GT.99 .AND. nsrf.GT.99) THEN 249 249 PRINT*, "Trop de bandes SW ou sous-mailles" 250 call abort_ gcm("phyetat0", "", 1)250 call abort_physic("phyetat0", "", 1) 251 251 ENDIF 252 252 WRITE(str7, '(i2.2, "srf", i2.2)') isw, nsrf … … 278 278 IF (isoil.GT.99 .AND. nsrf.GT.99) THEN 279 279 PRINT*, "Trop de couches ou sous-mailles" 280 call abort_ gcm("phyetat0", "", 1)280 call abort_physic("phyetat0", "", 1) 281 281 ENDIF 282 282 WRITE(str7, '(i2.2, "srf", i2.2)') isoil, nsrf … … 303 303 IF (nsrf.GT.99) THEN 304 304 PRINT*, "Trop de sous-mailles" 305 call abort_ gcm("phyetat0", "", 1)305 call abort_physic("phyetat0", "", 1) 306 306 ENDIF 307 307 WRITE(str2, '(i2.2)') nsrf … … 358 358 IF (nsrf.GT.99) THEN 359 359 PRINT*, "Trop de sous-mailles" 360 call abort_ gcm("phyetat0", "", 1)360 call abort_physic("phyetat0", "", 1) 361 361 ENDIF 362 362 WRITE(str2, '(i2.2)') nsrf … … 396 396 IF (nsrf.GT.99) THEN 397 397 PRINT*, "Trop de sous-mailles" 398 call abort_ gcm("phyetat0", "", 1)398 call abort_physic("phyetat0", "", 1) 399 399 ENDIF 400 400 WRITE(str2, '(i2.2)') nsrf … … 533 533 IF (nsrf.GT.99) THEN 534 534 PRINT*, "Trop de sous-mailles" 535 call abort_ gcm("phyetat0", "", 1)535 call abort_physic("phyetat0", "", 1) 536 536 ENDIF 537 537 WRITE(str2, '(i2.2)') nsrf … … 570 570 IF (nsrf.GT.99) THEN 571 571 PRINT*, "Trop de sous-mailles" 572 call abort_ gcm("phyetat0", "", 1)572 call abort_physic("phyetat0", "", 1) 573 573 ENDIF 574 574 WRITE(str2, '(i2.2)') nsrf … … 695 695 IF (nsrf.GT.99) THEN 696 696 PRINT*, "Trop de sous-mailles" 697 call abort_ gcm("phyetat0", "", 1)697 call abort_physic("phyetat0", "", 1) 698 698 ENDIF 699 699 WRITE(str2, '(i2.2)') nsrf … … 715 715 IF (nsrf.GT.99) THEN 716 716 PRINT*, "Trop de sous-mailles" 717 call abort_ gcm("phyetat0", "", 1)717 call abort_physic("phyetat0", "", 1) 718 718 ENDIF 719 719 WRITE(str2,'(i2.2)') nsrf … … 734 734 IF (nsrf.GT.99) THEN 735 735 PRINT*, "Trop de sous-mailles" 736 call abort_ gcm("phyetat0", "", 1)736 call abort_physic("phyetat0", "", 1) 737 737 ENDIF 738 738 WRITE(str2,'(i2.2)') nsrf … … 923 923 IF (nbsrf.GT.99) THEN 924 924 WRITE(lunout,*) "Trop de sous-mailles" 925 call abort_ gcm("phyetat0", "", 1)925 call abort_physic("phyetat0", "", 1) 926 926 ENDIF 927 927 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/phyredem.F90
r3809 r3814 11 11 USE iostart 12 12 USE traclmdz_mod, ONLY : traclmdz_to_restart 13 USE infotrac 14 USE control_ mod13 USE infotrac_phy 14 USE control_phy_mod 15 15 USE carbon_cycle_mod, ONLY : carbon_cycle_cpl, co2_send 16 16 USE indice_sol_mod 17 17 USE surface_data 18 18 USE ocean_slab_mod, ONLY : tslab, seaice, tice, fsic 19 USE temps_phy_mod 19 20 20 21 IMPLICIT none … … 26 27 include "dimsoil.h" 27 28 include "clesphys.h" 28 include "temps.h"29 29 include "thermcell.h" 30 30 include "compbl.h" … … 133 133 ELSE 134 134 PRINT*, "Trop de sous-mailles" 135 call abort_ gcm("phyredem", "", 1)135 call abort_physic("phyredem", "", 1) 136 136 ENDIF 137 137 ENDDO … … 150 150 ELSE 151 151 PRINT*, "Trop de couches" 152 call abort_ gcm("phyredem", "", 1)152 call abort_physic("phyredem", "", 1) 153 153 ENDIF 154 154 ENDDO … … 164 164 ELSE 165 165 PRINT*, "Trop de couches" 166 call abort_ gcm("phyredem", "", 1)166 call abort_physic("phyredem", "", 1) 167 167 ENDIF 168 168 ENDDO … … 176 176 ELSE 177 177 PRINT*, "Trop de sous-mailles" 178 call abort_ gcm("phyredem", "", 1)178 call abort_physic("phyredem", "", 1) 179 179 ENDIF 180 180 END DO … … 189 189 ELSE 190 190 PRINT*, "Trop de sous-mailles" 191 call abort_ gcm("phyredem", "", 1)191 call abort_physic("phyredem", "", 1) 192 192 ENDIF 193 193 ENDDO … … 200 200 ELSE 201 201 PRINT*, "Trop de sous-mailles" 202 call abort_ gcm("phyredem", "", 1)202 call abort_physic("phyredem", "", 1) 203 203 ENDIF 204 204 ENDDO … … 227 227 ELSE 228 228 PRINT*, "Trop de sous-mailles" 229 call abort_ gcm("phyredem", "", 1)229 call abort_physic("phyredem", "", 1) 230 230 ENDIF 231 231 ENDDO … … 239 239 ELSE 240 240 PRINT*, "Trop de sous-mailles" 241 call abort_ gcm("phyredem", "", 1)241 call abort_physic("phyredem", "", 1) 242 242 ENDIF 243 243 ENDDO … … 287 287 ELSE 288 288 PRINT*, "Trop de sous-mailles" 289 call abort_ gcm("phyredem", "", 1)289 call abort_physic("phyredem", "", 1) 290 290 ENDIF 291 291 ENDDO -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/phys_local_var_mod.F90
r3809 r3814 375 375 SUBROUTINE phys_local_var_init 376 376 USE dimphy 377 USE infotrac , ONLY : nbtr377 USE infotrac_phy, ONLY : nbtr 378 378 USE aero_mod 379 379 USE indice_sol_mod -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/phys_output_mod.F90
r3809 r3814 36 36 USE iophy 37 37 USE dimphy 38 USE infotrac 38 USE infotrac_phy 39 39 USE ioipsl 40 40 USE phys_cal_mod, only : hour … … 45 45 USE phys_output_ctrlout_mod 46 46 USE mod_grid_phy_lmdz, only: klon_glo 47 47 USE temps_phy_mod 48 Use comvert_phy_mod 48 49 #ifdef CPP_XIOS 49 50 ! ug Pour les sorties XIOS … … 53 54 IMPLICIT NONE 54 55 include "dimensions.h" 55 include "temps.h"56 56 include "clesphys.h" 57 57 include "thermcell.h" 58 include "comvert.h"59 58 include "iniprint.h" 60 59 … … 523 522 use ioipsl 524 523 USE phys_cal_mod 525 524 USE comconst_phy_mod 525 USE temps_phy_mod 526 526 IMPLICIT NONE 527 527 … … 531 531 real :: ttt,xxx,timestep,dayseconde,dtime 532 532 parameter (dayseconde=86400.) 533 include "temps.h"534 include "comconst.h"535 533 include "iniprint.h" 536 534 … … 540 538 WRITE(lunout,*) "ipos = ", ipos 541 539 WRITE(lunout,*) "il = ", il 542 if (ipos == 0) call abort_ gcm("convers_timesteps", "bad str", 1)540 if (ipos == 0) call abort_physic("convers_timesteps", "bad str", 1) 543 541 read(str(1:ipos),*) ttt 544 542 WRITE(lunout,*)ttt -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/phys_output_write_mod.F90
r3809 r3814 25 25 26 26 USE dimphy, only: klon, klev, klevp1, nslay 27 USE control_ mod, only: day_step, iphysiq27 USE control_phy_mod, only: day_step, iphysiq 28 28 USE phys_output_ctrlout_mod, only: o_phis, o_aire, is_ter, is_lic, is_oce, & 29 29 is_ave, is_sic, o_contfracATM, o_contfracOR, & … … 232 232 USE pbl_surface_mod, only: snow 233 233 USE indice_sol_mod, only: nbsrf 234 USE infotrac , only: nqtot, nqo, type_trac234 USE infotrac_phy, only: nqtot, nqo, type_trac 235 235 USE comgeomphy, only: airephy 236 236 USE surface_data, only: type_ocean, version_ocean, ok_veget, ok_snow … … 247 247 #endif 248 248 USE phys_cal_mod, only : mth_len 249 249 USE temps_phy_mod 250 250 251 251 IMPLICIT NONE 252 252 253 253 254 INCLUDE "temps.h"255 254 INCLUDE "clesphys.h" 256 255 INCLUDE "thermcell.h" -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/phys_state_var_mod.F90
r3809 r3814 402 402 SUBROUTINE phys_state_var_init(read_climoz) 403 403 USE dimphy 404 USE control_mod404 !USE control_mod 405 405 USE aero_mod 406 USE infotrac , ONLY : nbtr406 USE infotrac_phy, ONLY : nbtr 407 407 USE indice_sol_mod 408 408 IMPLICIT NONE … … 587 587 SUBROUTINE phys_state_var_end 588 588 USE dimphy 589 USE control_mod589 !USE control_mod 590 590 USE indice_sol_mod 591 591 IMPLICIT NONE -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/physiq.F90
r3809 r3814 17 17 USE write_field_phy 18 18 USE dimphy 19 USE infotrac 19 USE infotrac_phy 20 20 USE mod_grid_phy_lmdz 21 21 USE mod_phys_lmdz_para … … 46 46 use radlwsw_m, only: radlwsw 47 47 use phyaqua_mod, only: zenang_an 48 USE control_mod 48 USE control_phy_mod 49 USE temps_phy_mod 49 50 #ifdef REPROBUS 50 51 USE CHEM_REP, ONLY : Init_chem_rep_xjour … … 114 115 include "dimsoil.h" 115 116 include "clesphys.h" 116 include "temps.h"117 ! include "temps.h" 117 118 include "iniprint.h" 118 119 include "thermcell.h" … … 516 517 EXTERNAL suphel ! initialiser certaines constantes 517 518 EXTERNAL transp ! transport total de l'eau et de l'energie 518 EXTERNAL ecribina ! ecrire le fichier binaire global519 EXTERNAL ecribins ! ecrire le fichier binaire global520 EXTERNAL ecrirega ! ecrire le fichier binaire regional521 EXTERNAL ecriregs ! ecrire le fichier binaire regional522 519 !IM 523 520 EXTERNAL haut2bas !variables de haut en bas … … 1031 1028 IF (iflag_con.EQ.2.AND.iflag_cld_th.GT.-1) THEN 1032 1029 abort_message = 'Tiedtke needs iflag_cld_th=-2 or -1' 1033 CALL abort_ gcm(modname,abort_message,1)1030 CALL abort_physic (modname,abort_message,1) 1034 1031 ENDIF 1035 1032 ! … … 1090 1087 pdtphys 1091 1088 abort_message='Pas physique n est pas correct ' 1092 ! call abort_gcm(modname,abort_message,1) 1089 1093 1090 dtime=pdtphys 1094 1091 ENDIF … … 1097 1094 klon 1098 1095 abort_message='nlon et klon ne sont pas coherents' 1099 call abort_ gcm(modname,abort_message,1)1096 call abort_physic(modname,abort_message,1) 1100 1097 ENDIF 1101 1098 IF (nlev .NE. klev) THEN … … 1103 1100 klev 1104 1101 abort_message='nlev et klev ne sont pas coherents' 1105 call abort_ gcm(modname,abort_message,1)1102 call abort_physic(modname,abort_message,1) 1106 1103 ENDIF 1107 1104 ! … … 1110 1107 WRITE(lunout,*)"Au minimum 4 appels par jour si cycle diurne" 1111 1108 abort_message='Nbre d appels au rayonnement insuffisant' 1112 call abort_ gcm(modname,abort_message,1)1109 call abort_physic(modname,abort_message,1) 1113 1110 ENDIF 1114 1111 WRITE(lunout,*)"Clef pour la convection, iflag_con=", iflag_con … … 1165 1162 IF(nCFMIP.GT.npCFMIP) THEN 1166 1163 print*,'nCFMIP > npCFMIP : augmenter npCFMIP et recompiler' 1167 call abort_ gcm("physiq", "", 1)1164 call abort_physic("physiq", "", 1) 1168 1165 else 1169 1166 print*,'physiq npCFMIP=',npCFMIP,'nCFMIP=',nCFMIP … … 1664 1661 IF (read_climoz/=-1) THEN 1665 1662 abort_message ='read_climoz=-1 is recommended when solarlong0=1000.' 1666 CALL abort_ gcm(modname,abort_message,1)1663 CALL abort_physic (modname,abort_message,1) 1667 1664 ENDIF 1668 1665 ELSE … … 2047 2044 IF (iflag_con.EQ.1) THEN 2048 2045 abort_message ='reactiver le call conlmd dans physiq.F' 2049 CALL abort_ gcm(modname,abort_message,1)2046 CALL abort_physic (modname,abort_message,1) 2050 2047 ! CALL conlmd (dtime, paprs, pplay, t_seri, q_seri, conv_q, 2051 2048 ! . d_t_con, d_q_con, … … 2185 2182 else 2186 2183 abort_message ='Ne pas passer la car www non calcule' 2187 CALL abort_ gcm(modname,abort_message,1)2184 CALL abort_physic (modname,abort_message,1) 2188 2185 2189 2186 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! … … 2351 2348 ELSE 2352 2349 WRITE(lunout,*) "iflag_con non-prevu", iflag_con 2353 call abort_ gcm("physiq", "", 1)2350 call abort_physic("physiq", "", 1) 2354 2351 ENDIF 2355 2352 … … 3017 3014 IF (aerosol_couple .AND. config_inca == 'aero' ) THEN 3018 3015 abort_message='config_inca=aero et rrtm=1 impossible' 3019 call abort_ gcm(modname,abort_message,1)3016 call abort_physic(modname,abort_message,1) 3020 3017 ELSE 3021 3018 ! … … 3032 3029 3033 3030 abort_message='You should compile with -rrtm if running with iflag_rrtm=1' 3034 call abort_ gcm(modname,abort_message,1)3031 call abort_physic(modname,abort_message,1) 3035 3032 #endif 3036 3033 ! … … 3065 3062 3066 3063 abort_message='You should compile with -rrtm if running with iflag_rrtm=1' 3067 call abort_ gcm(modname,abort_message,1)3064 call abort_physic(modname,abort_message,1) 3068 3065 #endif 3069 3066 ENDIF … … 3294 3291 IF (ok_cdnc.AND.NRADLP.NE.3) THEN 3295 3292 abort_message='RRTM choix incoherent NRADLP doit etre egal a 3 pour ok_cdnc' 3296 call abort_ gcm(modname,abort_message,1)3293 call abort_physic(modname,abort_message,1) 3297 3294 endif 3298 3295 #else 3299 3296 3300 3297 abort_message='You should compile with -rrtm if running with iflag_rrtm=1' 3301 call abort_ gcm(modname,abort_message,1)3298 call abort_physic(modname,abort_message,1) 3302 3299 #endif 3303 3300 ENDIF … … 4174 4171 IF (abortphy==1) THEN 4175 4172 abort_message ='Plantage hgardfou' 4176 CALL abort_ gcm(modname,abort_message,1)4173 CALL abort_physic (modname,abort_message,1) 4177 4174 ENDIF 4178 4175 … … 4192 4189 ! "stats") only possible in 3D runs ! 4193 4190 4194 4191 #ifdef YM_TO_DO_LATER 4195 4192 IF (callstats) THEN 4196 4193 … … 4237 4234 4238 4235 ENDIF !if callstats 4236 #endif 4239 4237 4240 4238 IF (lafin) THEN -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/phystokenc.F90
r3809 r3814 9 9 USE ioipsl 10 10 USE dimphy 11 USE infotrac , ONLY : nqtot11 USE infotrac_phy, ONLY : nqtot 12 12 USE iophy 13 USE control_ mod13 USE control_phy_mod 14 14 USE indice_sol_mod 15 USE tracstoke_phy_mod 15 16 16 17 IMPLICIT NONE … … 22 23 !====================================================================== 23 24 INCLUDE "dimensions.h" 24 INCLUDE "tracstoke.h"25 ! INCLUDE "tracstoke.h" 25 26 INCLUDE "iniprint.h" 26 27 !====================================================================== -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/phytrac_mod.F90
r3809 r3814 89 89 USE phys_cal_mod, only : hour 90 90 USE dimphy 91 USE infotrac 91 USE infotrac_phy 92 92 USE mod_grid_phy_lmdz 93 93 USE mod_phys_lmdz_para … … 97 97 USE tracinca_mod 98 98 USE tracreprobus_mod 99 USE control_ mod99 USE control_phy_mod 100 100 USE indice_sol_mod 101 101 … … 107 107 INCLUDE "dimensions.h" 108 108 INCLUDE "clesphys.h" 109 INCLUDE "temps.h"110 INCLUDE "paramet.h"111 109 INCLUDE "thermcell.h" 112 110 INCLUDE "iniprint.h" … … 445 443 WRITE(*,*) 'FIRST TIME IN PHYTRAC : pdtphys(sec) = ',pdtphys,'ecrit_tra (sec) = ',ecrit_tra 446 444 ALLOCATE( source(klon,nbtr), stat=ierr) 447 IF (ierr /= 0) CALL abort_ gcm('phytrac', 'pb in allocation 1',1)445 IF (ierr /= 0) CALL abort_physic('phytrac', 'pb in allocation 1',1) 448 446 449 447 ALLOCATE( aerosol(nbtr), stat=ierr) 450 IF (ierr /= 0) CALL abort_ gcm('phytrac', 'pb in allocation 2',1)448 IF (ierr /= 0) CALL abort_physic('phytrac', 'pb in allocation 2',1) 451 449 452 450 … … 503 501 ! ELSE 504 502 ! WRITE(lunout,*) 'pb it=', it 505 ! CALL abort_ gcm('phytrac','pb it scavenging',1)503 ! CALL abort_physic('phytrac','pb it scavenging',1) 506 504 ! ENDIF 507 505 !--test OB … … 539 537 540 538 IF (lessivage.AND.config_inca.EQ.'inca') THEN 541 CALL abort_ gcm('phytrac', 'lessivage=T config_inca=inca impossible',1)539 CALL abort_physic('phytrac', 'lessivage=T config_inca=inca impossible',1) 542 540 STOP 543 541 ENDIF … … 740 738 ELSE 741 739 ! 742 CALL abort_ gcm('iflag_vdf_trac', 'cas non prevu',1)740 CALL abort_physic('iflag_vdf_trac', 'cas non prevu',1) 743 741 ! 744 742 END IF ! couche limite -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/radiation_AR4.F90
r3809 r3814 485 485 USE dimphy 486 486 USE radiation_ar4_param, ONLY: rsun, rray 487 USE infotrac , ONLY: type_trac487 USE infotrac_phy, ONLY: type_trac 488 488 #ifdef REPROBUS 489 489 USE chem_rep, ONLY: rsuntime, ok_suntime … … 710 710 USE dimphy 711 711 USE radiation_ar4_param, ONLY: rsun, rray 712 USE infotrac , ONLY: type_trac712 USE infotrac_phy, ONLY: type_trac 713 713 #ifdef REPROBUS 714 714 USE chem_rep, ONLY: rsuntime, ok_suntime … … 2343 2343 USE dimphy 2344 2344 USE radiation_ar4_param, ONLY: tref, rt1, raer, at, bt, oct 2345 USE infotrac , ONLY: type_trac2345 USE infotrac_phy, ONLY: type_trac 2346 2346 #ifdef REPROBUS 2347 2347 USE chem_rep, ONLY: rch42d, rn2o2d, rcfc112d, rcfc122d, ok_rtime2d -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/radio_decay.F90
r3809 r3814 7 7 ! 8 8 USE dimphy 9 USE infotrac , ONLY : nbtr9 USE infotrac_phy, ONLY : nbtr 10 10 USE traclmdz_mod, ONLY : id_rn, id_pb 11 11 IMPLICIT NONE -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/radlwsw_m.F90
r3809 r3814 48 48 USE DIMPHY 49 49 USE assert_m, ONLY : assert 50 USE infotrac , ONLY : type_trac50 USE infotrac_phy, ONLY : type_trac 51 51 USE write_field_phy 52 52 #ifdef REPROBUS … … 393 393 IF (nb_gr*kdlon .NE. KLON) THEN 394 394 PRINT*, "kdlon mauvais:", KLON, kdlon, nb_gr 395 call abort_ gcm("radlwsw", "", 1)395 call abort_physic("radlwsw", "", 1) 396 396 ENDIF 397 397 IF (kflev .NE. KLEV) THEN 398 398 PRINT*, "kflev differe de KLEV, kflev, KLEV" 399 call abort_ gcm("radlwsw", "", 1)399 call abort_physic("radlwsw", "", 1) 400 400 ENDIF 401 401 !------------------------------------------- … … 1025 1025 #else 1026 1026 abort_message="You should compile with -rrtm if running with iflag_rrtm=1" 1027 call abort_ gcm(modname, abort_message, 1)1027 call abort_physic(modname, abort_message, 1) 1028 1028 #endif 1029 1029 ENDIF ! iflag_rrtm -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/read_map2D.F90
r3809 r3814 74 74 WRITE(lunout,*) 'Error in read_map2D, timestep = ', timestep 75 75 76 CALL abort_ gcm(modname, err_mess, 1)76 CALL abort_physic(modname, err_mess, 1) 77 77 78 78 END SUBROUTINE write_err_mess -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/read_pstoke.F90
r3809 r3814 19 19 USE netcdf 20 20 USE dimphy 21 USE control_ mod21 USE control_phy_mod 22 22 USE indice_sol_mod 23 23 … … 26 26 include "netcdf.inc" 27 27 include "dimensions.h" 28 include "paramet.h"29 include "comconst.h"30 include "comgeom.h"31 include "temps.h"32 include "ener.h"33 include "logic.h"34 28 include "description.h" 35 include "serre.h"36 ! ccc#include "dimphy.h"37 29 38 30 INTEGER klono, klevo, imo, jmo -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/read_pstoke0.F90
r3809 r3814 18 18 USE netcdf 19 19 USE dimphy 20 USE control_ mod20 USE control_phy_mod 21 21 USE indice_sol_mod 22 22 … … 25 25 include "netcdf.inc" 26 26 include "dimensions.h" 27 include "paramet.h"28 include "comconst.h"29 include "comgeom.h"30 include "temps.h"31 include "ener.h"32 include "logic.h"33 27 include "description.h" 34 include "serre.h"35 ! ccc#include "dimphy.h"36 28 37 29 INTEGER kon, kev, zkon, zkev -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/readaerosol.F90
r3809 r3814 130 130 IF (klev_src /= klev_src2) THEN 131 131 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)132 CALL abort_physic('readaersosol','Error in number of vertical levels',1) 133 133 END IF 134 134 … … 162 162 ELSE 163 163 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)164 CALL abort_physic('readaerosol','Error : aer_type parameter not accepted',1) 165 165 END IF ! type 166 166 … … 260 260 WRITE(lunout,*) 'longitudes in model :', io_lon 261 261 262 CALL abort_ gcm('get_aero_fromfile', 'longitudes are not the same in file and model',1)262 CALL abort_physic('get_aero_fromfile', 'longitudes are not the same in file and model',1) 263 263 END IF 264 264 … … 283 283 WRITE(lunout,*) 'latitudes in file ', TRIM(fname),' : ', lat_src 284 284 WRITE(lunout,*) 'latitudes in model :', io_lat 285 CALL abort_ gcm('get_aero_fromfile', 'latitudes do not correspond between file and model',1)285 CALL abort_physic('get_aero_fromfile', 'latitudes do not correspond between file and model',1) 286 286 END IF 287 287 … … 297 297 IF (ierr /= NF90_NOERR) THEN 298 298 ! Dimension PRESNIVS not found either 299 CALL abort_ gcm('get_aero_fromfile', 'dimension lev or presnivs not in file',1)299 CALL abort_physic('get_aero_fromfile', 'dimension lev or presnivs not in file',1) 300 300 ELSE 301 301 ! Old file found … … 315 315 ! Allocate variables depending on the number of vertical levels 316 316 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)317 IF (ierr /= 0) CALL abort_physic('get_aero_fromfile', 'pb in allocation 1',1) 318 318 319 319 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)320 IF (ierr /= 0) CALL abort_physic('get_aero_fromfile', 'pb in allocation 2',1) 321 321 322 322 ! 3) Read all variables from file … … 333 333 ! IF (nbr_tsteps /= 12 .AND. nbr_tsteps /= 14) THEN 334 334 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)335 CALL abort_physic('get_aero_fromfile', 'not the right number of months in aerosol file read (should be 12 for the moment)',1) 336 336 ENDIF 337 337 … … 522 522 523 523 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)524 IF (ierr /= 0) CALL abort_physic('get_aero_fromfile', 'pb in allocation 3',1) 525 525 526 526 ! Transform from 2D to 1D field … … 546 546 IF (.NOT. ASSOCIATED(pt_ap)) THEN ! if pt_ap is allocated also pt_b is allocated 547 547 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)548 IF (ierr /= 0) CALL abort_physic('get_aero_fromfile', 'pb in allocation 4',1) 549 549 END IF 550 550 CALL bcast(pt_ap) … … 554 554 IF (ASSOCIATED(pt_year)) DEALLOCATE(pt_year) 555 555 ALLOCATE(pt_year(klon, klev_src, 12), stat=ierr) 556 IF (ierr /= 0) CALL abort_ gcm('get_aero_fromfile', 'pb in allocation 5',1)556 IF (ierr /= 0) CALL abort_physic('get_aero_fromfile', 'pb in allocation 5',1) 557 557 558 558 ! Scatter global field to local domain at local process … … 583 583 WRITE(lunout,*) 'Error in get_aero_fromfile : ',text 584 584 END IF 585 CALL abort_ gcm('get_aero_fromfile',trim(nf90_strerror(status)),1)585 CALL abort_physic('get_aero_fromfile',trim(nf90_strerror(status)),1) 586 586 END IF 587 587 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/readaerosol_interp.F90
r3809 r3814 26 26 INCLUDE "YOMCST.h" 27 27 INCLUDE "chem.h" 28 INCLUDE "temps.h"29 28 INCLUDE "clesphys.h" 30 29 INCLUDE "iniprint.h" 31 30 INCLUDE "dimensions.h" 32 INCLUDE "comvert.h"33 31 ! 34 32 ! Input: … … 150 148 IF (.NOT. ALLOCATED(var_day)) THEN 151 149 ALLOCATE( var_day(klon, klev, naero_spc), stat=ierr) 152 IF (ierr /= 0) CALL abort_ gcm('readaerosol_interp', 'pb in allocation 1',1)150 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 1',1) 153 151 ALLOCATE( pi_var_day(klon, klev, naero_spc), stat=ierr) 154 IF (ierr /= 0) CALL abort_ gcm('readaerosol_interp', 'pb in allocation 2',1)152 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 2',1) 155 153 156 154 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)155 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 3',1) 158 156 159 157 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)158 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 4',1) 161 159 162 160 lnewday=.TRUE. … … 209 207 END IF 210 208 ELSE 211 CALL abort_ gcm('readaerosol_interp', 'this aer_type not supported',1)209 CALL abort_physic('readaerosol_interp', 'this aer_type not supported',1) 212 210 END IF 213 211 … … 216 214 IF (.NOT. ALLOCATED(var_year)) THEN 217 215 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)216 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 5',1) 219 217 END IF 220 218 var_year(:,:,:,id_aero) = pt_tmp(:,:,:) … … 230 228 WRITE(lunout,*) 'Error! All forcing files for the same aerosol must have the same vertical dimension' 231 229 WRITE(lunout,*) 'Aerosol : ', name_aero(id_aero) 232 CALL abort_ gcm('readaerosol_interp','Differnt vertical axes in aerosol forcing files',1)230 CALL abort_physic('readaerosol_interp','Differnt vertical axes in aerosol forcing files',1) 233 231 END IF 234 232 235 233 IF (.NOT. ALLOCATED(pi_var_year)) THEN 236 234 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)235 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 6',1) 238 236 END IF 239 237 pi_var_year(:,:,:,id_aero) = pt_tmp(:,:,:) … … 259 257 IF ( psurf_year(1,1,id_aero) /= pi_psurf_year(1,1,id_aero) ) THEN 260 258 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)259 CALL abort_physic('readaerosol_interp', 'The aerosol files have not the same format',1) 262 260 END IF 263 261 264 262 IF (klev /= klev_src) THEN 265 263 WRITE(lunout,*) 'Old format of aerosol file do not allowed vertical interpolation' 266 CALL abort_ gcm('readaerosol_interp', 'Old aerosol file not possible',1)264 CALL abort_physic('readaerosol_interp', 'Old aerosol file not possible',1) 267 265 END IF 268 266 … … 336 334 END IF 337 335 ELSE 338 CALL abort_ gcm('readaerosol_interp', 'number of months undefined',1)336 CALL abort_physic('readaerosol_interp', 'number of months undefined',1) 339 337 ENDIF 340 338 if (debug) then … … 345 343 ! Time interpolation, still on vertical source grid 346 344 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)345 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 7',1) 348 346 349 347 ALLOCATE(pplay_src(klon,klev_src), stat=ierr) 350 IF (ierr /= 0) CALL abort_ gcm('readaerosol_interp', 'pb in allocation 8',1)348 IF (ierr /= 0) CALL abort_physic('readaerosol_interp', 'pb in allocation 8',1) 351 349 352 350 … … 544 542 WRITE(lunout,*) 'stop for aerosol : ',name_aero(id_aero) 545 543 WRITE(lunout,*) 'day1, day2, jDay = ', day1, day2, jDay 546 CALL abort_ gcm('readaerosol_interp','Error in interpolation 1',1)544 CALL abort_physic('readaerosol_interp','Error in interpolation 1',1) 547 545 END IF 548 546 END DO … … 563 561 564 562 WRITE(lunout,*) 'stop for aerosol : ',name_aero(id_aero) 565 CALL abort_ gcm('readaerosol_interp','Error in interpolation 2',1)563 CALL abort_physic('readaerosol_interp','Error in interpolation 2',1) 566 564 END IF 567 565 END DO -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/regr_lat_time_climoz_m.F90
r3809 r3814 73 73 use netcdf, only: nf90_get_att, nf90_get_var, nf90_noerr, nf90_nowrite 74 74 use assert_m, only: assert 75 75 use comconst_phy_mod, only : pi 76 use comgeom2_phy_mod, only : rlatv 76 77 integer, intent(in):: read_climoz ! read ozone climatology 77 78 ! Allowed values are 1 and 2 … … 84 85 include "dimensions.h" 85 86 ! (for "jjm") 86 include "paramet.h"87 ! (for the other included files)88 include "comgeom2.h"89 ! (for "rlatv")90 include "comconst.h"91 ! (for "pi")92 87 93 88 integer n_plev ! number of pressure levels in the input data … … 339 334 nf95_put_att, nf95_enddef, nf95_copy_att, nf95_put_var 340 335 use netcdf, only: nf90_clobber, nf90_float, nf90_global 341 336 use comconst_phy_mod, only : pi 337 use comgeom2_phy_mod, only : rlatu 342 338 integer, intent(in):: ncid_in, n_plev 343 339 integer, intent(out):: ncid_out, varid_plev, varid_time … … 350 346 351 347 include "dimensions.h" 352 ! (for "jjm")353 include "paramet.h"354 ! (for the other included files)355 include "comgeom2.h"356 ! (for "rlatu")357 include "comconst.h"358 ! (for "pi")359 348 360 349 integer ncerr -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/regr_lat_time_coefoz_m.F90
r3809 r3814 45 45 nf95_put_var, nf95_gw_var 46 46 use netcdf, only: nf90_nowrite, nf90_get_var 47 47 use comgeom2_phy_mod, only : rlatv 48 use comconst_phy_mod, only : pi 48 49 ! Variables local to the procedure: 49 50 50 51 include "dimensions.h" 51 52 ! (for "jjm") 52 include "paramet.h"53 include "comgeom2.h"54 ! (for "rlatv")55 include "comconst.h"56 ! (for "pi")57 53 58 54 integer ncid_in, ncid_out ! NetCDF IDs for input and output files … … 251 247 nf95_put_att, nf95_enddef, nf95_copy_att, nf95_put_var 252 248 use netcdf, only: nf90_clobber, nf90_float, nf90_copy_att, nf90_global 249 use comgeom2_phy_mod, only : rlatu 250 use comconst_phy_mod, only : pi 253 251 254 252 integer, intent(in):: ncid_in, varid_in(:), n_plev … … 260 258 include "dimensions.h" 261 259 ! (for "jjm") 262 include "paramet.h"263 include "comgeom2.h"264 ! (for "rlatu")265 include "comconst.h"266 ! (for "pi")267 260 268 261 integer ncerr -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/regr_pr_o3_m.F90
r3809 r3814 30 30 use regr1_step_av_m, only: regr1_step_av 31 31 use press_coefoz_m, only: press_in_edg 32 use control_ mod, only: dayref32 use control_phy_mod, only: dayref 33 33 34 34 REAL, intent(in):: p3d(:, :, :) ! pressure at layer interfaces, in Pa -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/soil.F90
r3809 r3814 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/surf_land_orchidee_mod.F90
r3809 r3814 18 18 USE comgeomphy, ONLY : cuphy, cvphy 19 19 USE mod_grid_phy_lmdz 20 USE mod_phys_lmdz_para , mpi_root_rank=>mpi_root20 USE mod_phys_lmdz_para 21 21 22 22 IMPLICIT NONE … … 45 45 USE carbon_cycle_mod, ONLY : carbon_cycle_cpl 46 46 USE indice_sol_mod 47 47 USE temps_phy_mod 48 48 ! 49 49 ! Cette routine sert d'interface entre le modele atmospherique et le … … 98 98 ! qsurf air moisture at surface 99 99 ! 100 INCLUDE "temps.h"101 100 INCLUDE "YOMCST.h" 102 101 INCLUDE "iniprint.h" … … 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/surf_land_orchidee_noopenmp_mod.F90
r3809 r3814 215 215 IF (carbon_cycle_cpl) THEN 216 216 abort_message='You must define preprossing key ORCH_NEW when running carbon_cycle_cpl=y' 217 CALL abort_ gcm(modname,abort_message,1)217 CALL abort_physic(modname,abort_message,1) 218 218 END IF 219 219 #endif … … 246 246 IF (error /= 0) THEN 247 247 abort_message='Pb allocation lalo' 248 CALL abort_ gcm(modname,abort_message,1)248 CALL abort_physic(modname,abort_message,1) 249 249 ENDIF 250 250 ENDIF … … 253 253 IF (error /= 0) THEN 254 254 abort_message='Pb allocation lon_scat' 255 CALL abort_ gcm(modname,abort_message,1)255 CALL abort_physic(modname,abort_message,1) 256 256 ENDIF 257 257 ENDIF … … 260 260 IF (error /= 0) THEN 261 261 abort_message='Pb allocation lat_scat' 262 CALL abort_ gcm(modname,abort_message,1)262 CALL abort_physic(modname,abort_message,1) 263 263 ENDIF 264 264 ENDIF … … 301 301 IF (error /= 0) THEN 302 302 abort_message='Pb allocation neighbours' 303 CALL abort_ gcm(modname,abort_message,1)303 CALL abort_physic(modname,abort_message,1) 304 304 ENDIF 305 305 ENDIF … … 309 309 IF (error /= 0) THEN 310 310 abort_message='Pb allocation contfrac' 311 CALL abort_ gcm(modname,abort_message,1)311 CALL abort_physic(modname,abort_message,1) 312 312 ENDIF 313 313 ENDIF … … 327 327 IF (error /= 0) THEN 328 328 abort_message='Pb allocation resolution' 329 CALL abort_ gcm(modname,abort_message,1)329 CALL abort_physic(modname,abort_message,1) 330 330 ENDIF 331 331 ENDIF … … 339 339 IF (error /= 0) THEN 340 340 abort_message='Pb allocation coastalflow' 341 CALL abort_ gcm(modname,abort_message,1)341 CALL abort_physic(modname,abort_message,1) 342 342 ENDIF 343 343 … … 345 345 IF (error /= 0) THEN 346 346 abort_message='Pb allocation riverflow' 347 CALL abort_ gcm(modname,abort_message,1)347 CALL abort_physic(modname,abort_message,1) 348 348 ENDIF 349 349 … … 359 359 IF (carbon_cycle_cpl) THEN 360 360 ALLOCATE(fco2_land_inst(klon),stat=error) 361 IF (error /= 0) CALL abort_ gcm(modname,'Pb in allocation fco2_land_inst',1)361 IF (error /= 0) CALL abort_physic(modname,'Pb in allocation fco2_land_inst',1) 362 362 363 363 ALLOCATE(fco2_lu_inst(klon),stat=error) 364 IF(error /=0) CALL abort_ gcm(modname,'Pb in allocation fco2_lu_inst',1)364 IF(error /=0) CALL abort_physic(modname,'Pb in allocation fco2_lu_inst',1) 365 365 END IF 366 366 367 367 ALLOCATE(fields_cpl(klon,nb_fields_cpl), stat = error) 368 IF (error /= 0) CALL abort_ gcm(modname,'Pb in allocation fields_cpl',1)368 IF (error /= 0) CALL abort_physic(modname,'Pb in allocation fields_cpl',1) 369 369 370 370 ENDIF ! (fin debut) -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/surf_landice_mod.F90
r3809 r3814 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/thermcell.F90
r3809 r3814 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/thermcellV0_main.F90
r3809 r3814 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 … … 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/thermcell_dq.F90
r3809 r3814 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 … … 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/thermcell_flux.F90
r3809 r3814 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/thermcell_flux2.F90
r3809 r3814 109 109 abort_message = '' 110 110 labort_gcm=.true. 111 CALL abort_ gcm(modname,abort_message,1)111 CALL abort_physic (modname,abort_message,1) 112 112 endif 113 113 endif … … 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 … … 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 … … 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 … … 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/thermcell_main.F90
r3809 r3814 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 -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/thermcell_old.F90
r3809 r3814 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" -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/tracinca_mod.F90
r3809 r3814 11 11 ! This subroutine initialize some control varaibles. 12 12 13 USE infotrac 13 USE infotrac_phy 14 14 IMPLICIT NONE 15 15 … … 42 42 43 43 USE dimphy 44 USE infotrac 44 USE infotrac_phy 45 45 USE vampir 46 46 USE comgeomphy 47 USE control_ mod47 USE control_phy_mod 48 48 USE indice_sol_mod 49 49 … … 52 52 53 53 INCLUDE "dimensions.h" 54 INCLUDE "paramet.h"54 ! INCLUDE "paramet.h" 55 55 56 56 !========================================================================== -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/traclmdz_mod.F90
r3809 r3814 67 67 68 68 USE dimphy 69 USE infotrac 69 USE infotrac_phy 70 70 71 71 ! Input argument … … 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 … … 89 89 ! Initialization of the tracers should be done here only for those not found in the restart file. 90 90 USE dimphy 91 USE infotrac 91 USE infotrac_phy 92 92 USE regr_pr_comb_coefoz_m, ONLY: alloc_coefoz 93 93 USE press_coefoz_m, ONLY: press_coefoz … … 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 … … 341 341 342 342 USE dimphy 343 USE infotrac 343 USE infotrac_phy 344 344 USE regr_pr_comb_coefoz_m, ONLY: regr_pr_comb_coefoz 345 345 USE o3_chem_m, ONLY: o3_chem … … 430 430 !================================================================= 431 431 432 CALL q_sat (klon*klev,t_seri,pplay,qsat)432 CALL q_sat_phy(klon*klev,t_seri,pplay,qsat) 433 433 434 434 IF ( id_pcsat /= 0 ) THEN … … 624 624 ! variable trs is written to restart file (restartphy.nc) 625 625 USE dimphy 626 USE infotrac 626 USE infotrac_phy 627 627 628 628 REAL,DIMENSION(klon,nbtr), INTENT(OUT) :: trs_out -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/tracreprobus_mod.F90
r3809 r3814 12 12 13 13 USE dimphy 14 USE infotrac 14 USE infotrac_phy 15 15 #ifdef REPROBUS 16 16 USE CHEM_REP, ONLY : pdt_rep, & ! pas de temps reprobus -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/write_field_phy.F90
r3809 r3814 13 13 14 14 IMPLICIT NONE 15 include 'dimensions.h'16 include 'paramet.h'17 15 18 16 character(len=*) :: name … … 21 19 real,save,allocatable :: Field_tmp(:,:) 22 20 real, dimension(klon_glo,ll):: New_Field 23 real, dimension( iim,jjp1,ll):: Field_2d21 real, dimension(nbp_lon,nbp_lat,ll):: Field_2d 24 22 25 23 CALL Gather(Field,New_Field) -
dynamico_lmdz/aquaplanet/LMDZ5/libf/phylmd/write_histday_seri.h
r3809 r3814 51 51 CALL histwrite(nid_day_seri,"ecin",itau_w, & 52 52 zx_tmp_2d,iim*jjmp1,ndex2d) 53 ! 54 !IM 151004 BEG 55 IF(1.EQ.0) THEN 56 ! 57 DO k=1, klev 58 DO i=1, klon 59 zx_tmp_fi3d(i,k)=u_seri(i,k)*RA*cos(pir* rlat(i)) 60 ENDDO 61 ENDDO 62 ! 63 CALL moyglo_pondaima(klon, klev, zx_tmp_fi3d, & 64 airephy, paprs, moyglo) 65 zx_tmp_fi2d(1:klon)=moyglo 66 ! 67 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) 68 CALL histwrite(nid_day_seri,"momang",itau_w,zx_tmp_2d, & 69 iim*jjmp1,ndex2d) 70 ! 71 ! friction torque 72 ! 73 DO i=1, klon 74 zx_tmp_fi2d(i)=zxfluxu(i,1)*RA* cos(pir* rlat(i)) 75 ENDDO 76 ! 77 ok_msk=.FALSE. 78 CALL moyglo_pondaire(klon, zx_tmp_fi2d, airephy, & 79 ok_msk, msk, moyglo) 80 zx_tmp_fi2d(1:klon)=moyglo 81 ! 82 CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) 83 CALL histwrite(nid_day_seri,"frictor",itau_w,zx_tmp_2d, & 84 iim*jjmp1,ndex2d) 85 ! 86 ! mountain torque 87 ! 88 !IM 190504 BEG 89 CALL gr_fi_dyn(1,klon,iim+1,jjm+1,airephy,airedyn) 90 CALL gr_fi_dyn(klev+1,klon,iim+1,jjm+1,paprs,padyn) 91 CALL gr_fi_dyn(1,klon,iim+1,jjm+1,rlat,rlatdyn) 92 mountor=0. 93 airetot=0. 94 DO j = 1, jjmp1 95 DO i = 1, iim+1 96 ij=i+(iim+1)*(j-1) 97 zx_tmp(ij)=0. 98 DO k = 1, klev 99 zx_tmp(ij)=zx_tmp(ij)+dudyn(i,j,k)*airedyn(i,j)* & 100 (padyn(i,j,k+1)-padyn(i,j,k))/RG 101 airetot=airetot+airedyn(i,j) 102 ENDDO 103 !IM 190504 mountor=mountor+zx_tmp(ij)*airedyn(i,j)*RA* 104 mountor=mountor+zx_tmp(ij)*RA* & 105 cos(pir* rlatdyn(i,j)) 106 ENDDO 107 ENDDO 108 !IM 151004 BEG 109 IF(itap.EQ.1) PRINT*,'airetot=',airetot,airetot/klev 110 !IM 151004 END 111 !IM 190504 mountor=mountor/(airetot*airetot) 112 mountor=mountor/airetot 113 ! 114 !IM 190504 END 115 zx_tmp_2d(1:iim,1:jjmp1)=mountor 116 CALL histwrite(nid_day_seri,"mountor",itau_w,zx_tmp_2d, & 117 iim*jjmp1,ndex2d) 118 ! 119 ENDIF !(1.EQ.0) THEN 120 ! 121 ! 122 CALL gr_fi_dyn(1,klon,iim+1,jjm+1,airephy,airedyn) 53 54 55 !#ifdef _YM_UNUSED_TO_SUPRESS_ 56 !ym ! 57 !ym!IM 151004 BEG 58 !ym IF(1.EQ.0) THEN 59 !ym! 60 !ym DO k=1, klev 61 !ym DO i=1, klon 62 !ym zx_tmp_fi3d(i,k)=u_seri(i,k)*RA*cos(pir* rlat(i)) 63 !ym ENDDO 64 !ym ENDDO 65 !ym! 66 !ym CALL moyglo_pondaima(klon, klev, zx_tmp_fi3d, & 67 !ym airephy, paprs, moyglo) 68 !ym zx_tmp_fi2d(1:klon)=moyglo 69 !ym! 70 !ym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) 71 !ym CALL histwrite(nid_day_seri,"momang",itau_w,zx_tmp_2d, & 72 !ym iim*jjmp1,ndex2d) 73 !ym! 74 !ym! friction torque 75 !ym! 76 !ym DO i=1, klon 77 !ym zx_tmp_fi2d(i)=zxfluxu(i,1)*RA* cos(pir* rlat(i)) 78 !ym ENDDO 79 !ym! 80 !ym ok_msk=.FALSE. 81 !ym CALL moyglo_pondaire(klon, zx_tmp_fi2d, airephy, & 82 !ym ok_msk, msk, moyglo) 83 !ym zx_tmp_fi2d(1:klon)=moyglo 84 !ym! 85 !ym CALL gr_fi_ecrit(1, klon,iim,jjmp1, zx_tmp_fi2d,zx_tmp_2d) 86 !ym CALL histwrite(nid_day_seri,"frictor",itau_w,zx_tmp_2d, & 87 !ym iim*jjmp1,ndex2d) 88 !ym! 89 !ym! mountain torque 90 !ym! 91 !ym!IM 190504 BEG 92 !ym CALL gr_fi_dyn(1,klon,iim+1,jjm+1,airephy,airedyn) 93 !ym CALL gr_fi_dyn(klev+1,klon,iim+1,jjm+1,paprs,padyn) 94 !ym CALL gr_fi_dyn(1,klon,iim+1,jjm+1,rlat,rlatdyn) 95 !ym 96 !ym 97 !ym mountor=0. 98 !ym airetot=0. 99 !ym DO j = 1, jjmp1 100 !ym DO i = 1, iim+1 101 !ym ij=i+(iim+1)*(j-1) 102 !ym zx_tmp(ij)=0. 103 !ym DO k = 1, klev 104 !ym zx_tmp(ij)=zx_tmp(ij)+dudyn(i,j,k)*airedyn(i,j)* & 105 !ym (padyn(i,j,k+1)-padyn(i,j,k))/RG 106 !ym airetot=airetot+airedyn(i,j) 107 !ym ENDDO 108 !ym!IM 190504 mountor=mountor+zx_tmp(ij)*airedyn(i,j)*RA* 109 !ym mountor=mountor+zx_tmp(ij)*RA* & 110 !ym cos(pir* rlatdyn(i,j)) 111 !ym ENDDO 112 !ym ENDDO 113 !ym!IM 151004 BEG 114 !ym IF(itap.EQ.1) PRINT*,'airetot=',airetot,airetot/klev 115 !ym!IM 151004 END 116 !ym!IM 190504 mountor=mountor/(airetot*airetot) 117 !ym mountor=mountor/airetot 118 !ym! 119 !ym!IM 190504 END 120 !ym zx_tmp_2d(1:iim,1:jjmp1)=mountor 121 !ym CALL histwrite(nid_day_seri,"mountor",itau_w,zx_tmp_2d, & 122 !ym iim*jjmp1,ndex2d) 123 !ym! 124 !ym ENDIF !(1.EQ.0) THEN 125 !ym! 126 !ym! 127 !ym 128 !ym CALL gr_fi_dyn(1,klon,iim+1,jjm+1,airephy,airedyn) 129 !#endif 130 123 131 CALL gr_fi_ecrit(1,klon,iim,jjmp1,airephy,zx_tmp_2d) 124 132 airetot=0. … … 133 141 ! ENDDO !j 134 142 ! 143 144 145 airetot=0. 135 146 DO i=1, klon 136 147 airetot=airetot+airephy(i)
Note: See TracChangeset
for help on using the changeset viewer.