Changeset 2345 for LMDZ5/trunk/libf/phylmd
- Timestamp:
- Aug 21, 2015, 11:57:36 AM (9 years ago)
- Location:
- LMDZ5/trunk/libf/phylmd
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phylmd/cosp/cosp_output_mod.F90
r2311 r2345 100 100 USE ioipsl 101 101 USE phys_cal_mod 102 USE time_phylmdz_mod, ONLY: day_ref, annee_ref, day_ini, start_time, itau_phy 102 103 USE print_control_mod, ONLY: lunout 103 104 … … 123 124 124 125 !!! Variables d'entree 125 include "temps.h"126 126 127 127 #ifdef CPP_XIOS -
LMDZ5/trunk/libf/phylmd/cosp/cosp_output_write_mod.F90
r2311 r2345 21 21 22 22 USE ioipsl 23 USE control_mod23 USE time_phylmdz_mod, ONLY: itau_phy, start_time, day_step_phy 24 24 USE print_control_mod, ONLY: lunout,prt_level 25 25 … … 45 45 real, dimension(Npoints,PARASOL_NREFL) :: parasolcrefl, Ncref 46 46 47 include "temps.h"48 49 47 Nlevout = vgrid%Nlvgrid 50 48 Ncolout = Ncolumns 51 49 52 50 ! A refaire 53 itau_wcosp = itau_phy + itap + start_time * day_step / iphysiq51 itau_wcosp = itau_phy + itap + start_time * day_step_phy 54 52 if (prt_level >= 10) then 55 WRITE(lunout,*)'itau_wcosp, itap, start_time, day_step , iphysiq=', &56 itau_wcosp, itap, start_time, day_step , iphysiq53 WRITE(lunout,*)'itau_wcosp, itap, start_time, day_step_phy =', & 54 itau_wcosp, itap, start_time, day_step_phy 57 55 endif 58 56 … … 268 266 use iophy 269 267 USE mod_phys_lmdz_para 268 USE mod_grid_phy_lmdz, ONLY: nbp_lon 270 269 USE print_control_mod, ONLY: lunout,prt_level 271 270 #ifdef CPP_XIOS … … 275 274 IMPLICIT NONE 276 275 277 INCLUDE "dimensions.h"278 INCLUDE "temps.h"279 276 INCLUDE "clesphys.h" 280 277 … … 320 317 IF ( var%cles(iff) ) THEN 321 318 CALL histdef (cosp_nidfiles(iff), var%name, var%description, var%unit, & 322 iim,jj_nb,nhoricosp(iff), 1,1,1, -99, 32, &319 nbp_lon,jj_nb,nhoricosp(iff), 1,1,1, -99, 32, & 323 320 typeecrit, zstophym,zoutm_cosp(iff)) 324 321 ENDIF … … 332 329 use iophy 333 330 USE mod_phys_lmdz_para 331 USE mod_grid_phy_lmdz, ONLY: nbp_lon 334 332 USE print_control_mod, ONLY: lunout,prt_level 335 333 … … 341 339 IMPLICIT NONE 342 340 343 INCLUDE "dimensions.h"344 INCLUDE "temps.h"345 341 INCLUDE "clesphys.h" 346 342 … … 415 411 IF ( var%cles(iff) ) THEN 416 412 CALL histdef (cosp_nidfiles(iff), nom, var%description, var%unit, & 417 iim, jj_nb, nhoricosp(iff), klevs, 1, &413 nbp_lon, jj_nb, nhoricosp(iff), klevs, 1, & 418 414 klevs, nvertsave, 32, typeecrit, & 419 415 zstophym, zoutm_cosp(iff)) … … 428 424 USE ioipsl 429 425 use iophy 426 USE mod_grid_phy_lmdz, ONLY: nbp_lon 430 427 USE print_control_mod, ONLY: lunout,prt_level 431 428 … … 435 432 436 433 IMPLICIT NONE 437 INCLUDE 'dimensions.h'438 434 INCLUDE 'clesphys.h' 439 435 … … 445 441 REAL,DIMENSION(klon_mpi) :: buffer_omp 446 442 INTEGER, allocatable, DIMENSION(:) :: index2d 447 REAL :: Field2d( iim,jj_nb)443 REAL :: Field2d(nbp_lon,jj_nb) 448 444 CHARACTER(LEN=20) :: nomi, nom 449 445 character(len=2) :: str2 … … 477 473 DO iff=1, 3 478 474 IF (var%cles(iff) .AND. cosp_outfilekeys(iff)) THEN 479 ALLOCATE(index2d( iim*jj_nb))475 ALLOCATE(index2d(nbp_lon*jj_nb)) 480 476 #ifndef CPP_IOIPSL_NO_OUTPUT 481 CALL histwrite(cosp_nidfiles(iff),var%name,itau_iocosp,Field2d, iim*jj_nb,index2d)477 CALL histwrite(cosp_nidfiles(iff),var%name,itau_iocosp,Field2d,nbp_lon*jj_nb,index2d) 482 478 #endif 483 479 deallocate(index2d) … … 517 513 USE ioipsl 518 514 use iophy 515 USE mod_grid_phy_lmdz, ONLY: nbp_lon 519 516 USE print_control_mod, ONLY: lunout,prt_level 520 517 … … 525 522 526 523 IMPLICIT NONE 527 INCLUDE 'dimensions.h'528 524 INCLUDE 'clesphys.h' 529 525 … … 536 532 537 533 REAL,DIMENSION(klon_mpi,SIZE(field,2)) :: buffer_omp 538 REAL :: Field3d( iim,jj_nb,SIZE(field,2))534 REAL :: Field3d(nbp_lon,jj_nb,SIZE(field,2)) 539 535 INTEGER :: ip, n, nlev 540 536 INTEGER, ALLOCATABLE, DIMENSION(:) :: index3d … … 580 576 DO iff=1, 3 581 577 IF (var%cles(iff) .AND. cosp_outfilekeys(iff)) THEN 582 ALLOCATE(index3d( iim*jj_nb*nlev))578 ALLOCATE(index3d(nbp_lon*jj_nb*nlev)) 583 579 #ifndef CPP_IOIPSL_NO_OUTPUT 584 CALL histwrite(cosp_nidfiles(iff),nom,itau_iocosp,Field3d, iim*jj_nb*nlev,index3d)580 CALL histwrite(cosp_nidfiles(iff),nom,itau_iocosp,Field3d,nbp_lon*jj_nb*nlev,index3d) 585 581 #endif 586 582 -
LMDZ5/trunk/libf/phylmd/cosp/phys_cosp.F90
r2137 r2345 124 124 !$OMP THREADPRIVATE(debut_cosp) 125 125 126 include "dimensions.h"127 128 126 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Input variables from LMDZ-GCM 129 127 integer :: overlaplmdz ! overlap type: 1=max, 2=rand, 3=max/rand ! cosp input (output lmdz) -
LMDZ5/trunk/libf/phylmd/cpl_mod.F90
r2344 r2345 24 24 USE oasis 25 25 USE write_field_phy 26 ! USE control_mod27 26 USE time_phylmdz_mod, ONLY: day_step_phy 28 27 -
LMDZ5/trunk/libf/phylmd/pbl_surface_mod.F90
r2344 r2345 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_mod26 25 27 26 -
LMDZ5/trunk/libf/phylmd/phyredem.F90
r2344 r2345 15 15 USE traclmdz_mod, ONLY : traclmdz_to_restart 16 16 USE infotrac_phy, ONLY: type_trac, niadv, tname, nbtr, nqo 17 USE control_mod18 17 USE carbon_cycle_mod, ONLY : carbon_cycle_cpl, co2_send 19 18 USE indice_sol_mod -
LMDZ5/trunk/libf/phylmd/phys_state_var_mod.F90
r2333 r2345 404 404 SUBROUTINE phys_state_var_init(read_climoz) 405 405 USE dimphy 406 USE control_mod407 406 USE aero_mod 408 407 USE infotrac_phy, ONLY : nbtr … … 589 588 SUBROUTINE phys_state_var_end 590 589 USE dimphy 591 USE control_mod592 590 USE indice_sol_mod 593 591 IMPLICIT NONE -
LMDZ5/trunk/libf/phylmd/physiq.F90
r2344 r2345 50 50 USE time_phylmdz_mod, only: day_step_phy, annee_ref, day_ref, itau_phy, & 51 51 start_time, pdtphys 52 USE control_mod, ONLY: config_inca52 USE tracinca_mod, ONLY: config_inca 53 53 #ifdef CPP_XIOS 54 54 USE wxios, ONLY: missing_val, missing_val_omp -
LMDZ5/trunk/libf/phylmd/phytrac_mod.F90
r2344 r2345 97 97 USE tracinca_mod 98 98 USE tracreprobus_mod 99 USE control_mod100 99 USE indice_sol_mod 101 100 -
LMDZ5/trunk/libf/phylmd/read_pstoke.F90
r2343 r2345 19 19 USE netcdf 20 20 USE dimphy 21 USE control_mod22 21 USE indice_sol_mod 23 22 USE mod_grid_phy_lmdz, ONLY: nbp_lon, nbp_lat, nbp_lev -
LMDZ5/trunk/libf/phylmd/read_pstoke0.F90
r2343 r2345 18 18 USE netcdf 19 19 USE dimphy 20 USE control_mod21 20 USE indice_sol_mod 22 21 USE mod_grid_phy_lmdz, ONLY: nbp_lon, nbp_lat, nbp_lev -
LMDZ5/trunk/libf/phylmd/regr_pr_o3_m.F90
r1907 r2345 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 time_phylmdz_mod, only: day_ref 33 33 34 34 REAL, intent(in):: p3d(:, :, :) ! pressure at layer interfaces, in Pa … … 49 49 50 50 real r_mob(jjm + 1, size(press_in_edg) - 1) 51 ! (ozone mole fraction from Mobidic at day "day ref")51 ! (ozone mole fraction from Mobidic at day "day_ref") 52 52 ! (r_mob(j, k) is at latitude "rlatu(j)", in pressure interval 53 53 ! "[press_in_edg(k), press_in_edg(k+1)]".) … … 64 64 call nf95_inq_varid(ncid, "r_Mob", varid) 65 65 ! Get data at the right day from the input file: 66 ncerr = nf90_get_var(ncid, varid, r_mob, start=(/1, 1, day ref/))66 ncerr = nf90_get_var(ncid, varid, r_mob, start=(/1, 1, day_ref/)) 67 67 call handle_err("nf90_get_var r_Mob", ncerr) 68 68 ! Latitudes are in ascending order in the input file while -
LMDZ5/trunk/libf/phylmd/rrtm/readaerosolstrato_rrtm.F90
r2231 r2345 9 9 10 10 USE phys_cal_mod, ONLY : mth_cur 11 USE mod_grid_phy_lmdz 11 USE mod_grid_phy_lmdz, ONLY: nbp_lon, nbp_lat, klon_glo, grid2dTo1d_glo 12 12 USE mod_phys_lmdz_mpi_data, ONLY : is_mpi_root 13 13 USE mod_phys_lmdz_para … … 21 21 22 22 include "YOMCST.h" 23 include "dimensions.h"24 23 25 24 ! Variable input … … 103 102 n_lat = size(latitude) 104 103 print *, 'LAT aerosol strato=', n_lat, latitude 105 IF (n_lat.NE. jjm+1) THEN106 print *,'Le nombre de lat n est pas egal a jjm+1'104 IF (n_lat.NE.nbp_lat) THEN 105 print *,'Le nombre de lat n est pas egal a nbp_lat' 107 106 STOP 108 107 ENDIF … … 112 111 n_lon = size(longitude) 113 112 print *, 'LON aerosol strato=', n_lon, longitude 114 IF (n_lon.NE. iim) THEN115 print *,'Le nombre de lon n est pas egal a iim'113 IF (n_lon.NE.nbp_lon) THEN 114 print *,'Le nombre de lon n est pas egal a nbp_lon' 116 115 STOP 117 116 ENDIF -
LMDZ5/trunk/libf/phylmd/rrtm/suphec.F90
r2315 r2345 115 115 #include "suvdfs.intfb.h" 116 116 #include "suwcou.intfb.h" 117 #include "dimensions.h"118 117 119 118 ! ------------------------------------------------------------------ -
LMDZ5/trunk/libf/phylmd/sisvat/surf_sisvat_mod.F90
r1990 r2345 1188 1188 USE VARxSV 1189 1189 USE VARtSV 1190 USE control_mod1191 1190 USE indice_sol_mod 1192 1191 … … 1201 1200 include "dimsoil.h" 1202 1201 include "clesphys.h" 1203 include "temps.h"1204 1202 include "thermcell.h" 1205 1203 include "compbl.h" … … 1500 1498 USE VARySV !hj tmp 12 03 2010 1501 1499 USE VARtSV 1502 USE control_mod1503 1500 USE indice_sol_mod 1504 1501 … … 1509 1506 include "dimsoil.h" 1510 1507 include "clesphys.h" 1511 include "temps.h"1512 1508 include "thermcell.h" 1513 1509 include "compbl.h" -
LMDZ5/trunk/libf/phylmd/tracinca_mod.F90
r2320 r2345 5 5 ! This module prepares and calls the INCA main subroutines. 6 6 ! 7 7 IMPLICIT NONE 8 9 CHARACTER(len=4),SAVE :: config_inca 10 !$OMP THREADPRIVATE(config_inca) 11 ! config_inca='none' => without INCA 12 ! config_inca='chem' => INCA with chemistry 13 ! config_inca='aero' => INCA with aerosols 8 14 CONTAINS 9 15 … … 12 18 13 19 USE infotrac_phy, ONLY: nbtr 20 USE ioipsl_getin_p_mod, ONLY: getin_p 14 21 IMPLICIT NONE 15 22 … … 22 29 lessivage =.FALSE. 23 30 aerosol(:) = .FALSE. 31 32 config_inca='none' ! default 33 CALL getin_p('config_inca',config_inca) 24 34 25 35 END SUBROUTINE tracinca_init … … 45 55 USE vampir 46 56 USE comgeomphy 47 USE control_mod48 57 USE indice_sol_mod 49 58 … … 51 60 IMPLICIT NONE 52 61 53 INCLUDE "dimensions.h"54 INCLUDE "paramet.h"55 56 62 !========================================================================== 57 63 ! -- DESCRIPTION DES ARGUMENTS --
Note: See TracChangeset
for help on using the changeset viewer.