Changeset 5117 for LMDZ6/branches/Amaury_dev/libf/phylmd/regr_pr_int_m.F90
- Timestamp:
- Jul 24, 2024, 4:23:34 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmd/regr_pr_int_m.F90
r5116 r5117 24 24 ! Regridding is by linear interpolation. 25 25 26 usedimphy, ONLY: klon27 usenetcdf95, ONLY: nf95_inq_varid, nf95_get_var28 uselmdz_assert, ONLY: assert29 use regr_lint_m, ONLY: regr_lint30 uselmdz_phys_mpi_data, ONLY: is_mpi_root31 uselmdz_grid_phy, ONLY: nbp_lon, nbp_lat, nbp_lev32 uselmdz_phys_transfert_para, ONLY: scatter2d26 USE dimphy, ONLY: klon 27 USE netcdf95, ONLY: nf95_inq_varid, nf95_get_var 28 USE lmdz_assert, ONLY: assert 29 USE lmdz_regr_lint, ONLY: regr_lint 30 USE lmdz_phys_mpi_data, ONLY: is_mpi_root 31 USE lmdz_grid_phy, ONLY: nbp_lon, nbp_lat, nbp_lev 32 USE lmdz_phys_transfert_para, ONLY: scatter2d 33 33 ! (pack to the LMDZ horizontal "physics" grid and scatter) 34 34 35 integer, intent(in):: ncid ! NetCDF ID of the file36 CHARACTER(LEN=*), intent(in):: name ! of the NetCDF variable37 integer, intent(in):: julien ! jour julien, 1 <= julien <= 36035 INTEGER, INTENT(IN):: ncid ! NetCDF ID of the file 36 CHARACTER(LEN=*), INTENT(IN):: name ! of the NetCDF variable 37 INTEGER, INTENT(IN):: julien ! jour julien, 1 <= julien <= 360 38 38 39 real, intent(in):: plev(:)39 REAL, INTENT(IN):: plev(:) 40 40 ! (pressure level of input data, in Pa, in strictly ascending order) 41 41 42 real, intent(in):: pplay(:, :) ! (klon, nbp_lev)42 REAL, INTENT(IN):: pplay(:, :) ! (klon, nbp_lev) 43 43 ! (pression pour le mileu de chaque couche, en Pa) 44 44 45 real, intent(in):: top_value45 REAL, INTENT(IN):: top_value 46 46 ! (extra value of field at 0 pressure) 47 47 48 real, intent(out):: v3(:, :) ! (klon, nbp_lev)48 REAL, INTENT(OUT):: v3(:, :) ! (klon, nbp_lev) 49 49 ! (regridded field on the partial "physics" grid) 50 50 ! ("v3(i, k)" is at longitude "xlon(i)", latitude … … 53 53 ! Variables local to the procedure: 54 54 55 integervarid, ncerr ! for NetCDF55 INTEGER varid, ncerr ! for NetCDF 56 56 57 57 real v1(nbp_lon, nbp_lat, 0:size(plev)) … … 61 61 ! "v1(:, j, k >=1)" is at latitude "rlatu(j)" and pressure "plev(k)".) 62 62 63 realv2(klon, 0:size(plev))63 REAL v2(klon, 0:size(plev)) 64 64 ! (field scattered to the partial "physics" horizontal grid) 65 65 ! "v2(i, k >= 1)" is at longitude "xlon(i)", latitude "xlat(i)" 66 66 ! and pressure "plev(k)".) 67 67 68 integeri68 INTEGER i 69 69 70 70 !-------------------------------------------- … … 74 74 75 75 !$omp master 76 if(is_mpi_root) THEN76 IF (is_mpi_root) THEN 77 77 CALL nf95_inq_varid(ncid, name, varid) 78 78
Note: See TracChangeset
for help on using the changeset viewer.