Changeset 3238 for LMDZ6/trunk/libf
- Timestamp:
- Mar 5, 2018, 5:15:48 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/iophy.F90
r3107 r3238 12 12 INTEGER, ALLOCATABLE, DIMENSION(:), SAVE :: nptabij 13 13 INTEGER, SAVE :: itau_iophy 14 LOGICAL :: check_dim = .false. 14 15 15 16 !$OMP THREADPRIVATE(itau_iophy) … … 457 458 458 459 USE ioipsl, ONLY: histdef 459 USE mod_phys_lmdz_para, ONLY: jj_nb 460 USE mod_phys_lmdz_para, ONLY: jj_nb, is_master 460 461 USE phys_output_var_mod, ONLY: type_ecri, zoutm, zdtime_moy, lev_files, & 461 462 nid_files, nhorim, swaero_diag, dryaod_diag, nfiles, & … … 463 464 USE mod_grid_phy_lmdz, ONLY : nbp_lon, nbp_lat 464 465 USE aero_mod, ONLY : naero_tot, name_aero_tau 466 USE print_control_mod, ONLY: prt_level,lunout 465 467 466 468 IMPLICIT NONE … … 483 485 zstophym=zdtime_moy 484 486 ENDIF 485 487 IF (check_dim .AND. is_master) WRITE(lunout,*)'histdef2d_old for ', nomvar 486 488 ! Appel a la lecture des noms et niveau d'ecriture des variables dans output.def 487 489 CALL conf_physoutputs(nomvar,flag_var) … … 533 535 USE ioipsl, ONLY: histdef 534 536 USE dimphy, ONLY: klev 535 USE mod_phys_lmdz_para, ONLY: jj_nb 537 USE mod_phys_lmdz_para, ONLY: jj_nb, is_master 536 538 USE phys_output_var_mod, ONLY: type_ecri, zoutm, lev_files, nid_files, & 537 539 nhorim, zdtime_moy, levmin, levmax, & 538 540 nvertm, nfiles 539 541 USE mod_grid_phy_lmdz, ONLY : nbp_lon, nbp_lat 542 USE print_control_mod, ONLY: prt_level,lunout 540 543 IMPLICIT NONE 541 544 … … 553 556 ! Appel a la lecture des noms et niveau d'ecriture des variables dans output.def 554 557 CALL conf_physoutputs(nomvar,flag_var) 558 559 IF (check_dim .AND. is_master) WRITE(lunout,*)'histdef3d_old for ', nomvar 555 560 556 561 IF (type_ecri(iff)=='inst(X)'.OR.type_ecri(iff)=='once') THEN … … 580 585 581 586 USE ioipsl, ONLY: histdef 582 USE mod_phys_lmdz_para, ONLY: jj_nb 587 USE mod_phys_lmdz_para, ONLY: jj_nb, is_master 583 588 USE phys_output_var_mod, ONLY: ctrl_out, type_ecri_files, zoutm, zdtime_moy, & 584 589 clef_stations, phys_out_filenames, lev_files, & … … 591 596 USE wxios, ONLY: wxios_add_field_to_file 592 597 #endif 598 USE print_control_mod, ONLY: prt_level,lunout 593 599 IMPLICIT NONE 594 600 … … 601 607 REAL zstophym 602 608 CHARACTER(LEN=20) :: typeecrit 609 610 IF (check_dim .AND. is_master) WRITE(lunout,*)'histdef2d for ', var%name 603 611 604 612 ! ug On récupère le type écrit de la structure: … … 695 703 USE ioipsl, ONLY: histdef 696 704 USE dimphy, ONLY: klev 697 USE mod_phys_lmdz_para, ONLY: jj_nb 705 USE mod_phys_lmdz_para, ONLY: jj_nb, is_master 698 706 USE phys_output_var_mod, ONLY: ctrl_out, type_ecri_files, zoutm, zdtime_moy, & 699 707 clef_stations, phys_out_filenames, lev_files, & … … 705 713 USE wxios, ONLY: wxios_add_field_to_file 706 714 #endif 715 USE print_control_mod, ONLY: prt_level,lunout 707 716 IMPLICIT NONE 708 717 … … 714 723 REAL zstophym 715 724 CHARACTER(LEN=20) :: typeecrit 725 726 IF (check_dim .AND. is_master) WRITE(lunout,*)'histdef3d for ', var%name 716 727 717 728 ! ug On récupère le type écrit de la structure: … … 801 812 USE mod_phys_lmdz_para, ONLY: Gather_omp, grid1Dto2D_mpi, & 802 813 is_sequential, klon_mpi_begin, klon_mpi_end, & 803 jj_nb, klon_mpi 814 jj_nb, klon_mpi, is_master 804 815 USE ioipsl, ONLY: histwrite 805 816 USE print_control_mod, ONLY: prt_level,lunout … … 820 831 821 832 IF (size(field)/=klon) CALL abort_physic('iophy::histwrite2d','Field first DIMENSION not equal to klon',1) 822 833 IF (check_dim .AND. is_master) WRITE(lunout,*)'histwrite2d_phy_old for ', name 834 823 835 CALL Gather_omp(field,buffer_omp) 824 836 !$OMP MASTER … … 865 877 USE mod_phys_lmdz_para, ONLY: Gather_omp, grid1Dto2D_mpi, & 866 878 is_sequential, klon_mpi_begin, klon_mpi_end, & 867 jj_nb, klon_mpi 879 jj_nb, klon_mpi, is_master 868 880 USE mod_grid_phy_lmdz, ONLY : nbp_lon, nbp_lat 869 881 USE ioipsl, ONLY: histwrite … … 882 894 REAL,allocatable, DIMENSION(:,:) :: fieldok 883 895 896 IF (check_dim .AND. is_master) WRITE(lunout,*)'histwrite3d_phy_old for ', name 884 897 885 898 IF (size(field,1)/=klon) CALL abort_physic('iophy::histwrite3d','Field first DIMENSION not equal to klon',1) … … 936 949 USE mod_phys_lmdz_para, ONLY: gather_omp, grid1dto2d_mpi, & 937 950 jj_nb, klon_mpi, klon_mpi_begin, & 938 klon_mpi_end, is_sequential 951 klon_mpi_end, is_sequential, is_master 939 952 USE ioipsl, ONLY: histwrite 940 953 USE phys_output_var_mod, ONLY: ctrl_out, clef_files, lev_files, & … … 965 978 INTEGER :: ip 966 979 REAL, ALLOCATABLE, DIMENSION(:) :: fieldok 980 981 IF (check_dim .AND. is_master) WRITE(lunout,*)'histwrite2d_phy for ',trim(var%name) 967 982 968 983 IF (prt_level >= 10) THEN … … 1103 1118 USE mod_phys_lmdz_para, ONLY: gather_omp, grid1dto2d_mpi, & 1104 1119 jj_nb, klon_mpi, klon_mpi_begin, & 1105 klon_mpi_end, is_sequential 1120 klon_mpi_end, is_sequential, is_master 1106 1121 USE ioipsl, ONLY: histwrite 1107 1122 USE phys_output_var_mod, ONLY: ctrl_out, clef_files, lev_files, & … … 1129 1144 INTEGER, ALLOCATABLE, DIMENSION(:) :: index3d 1130 1145 REAL,ALLOCATABLE, DIMENSION(:,:) :: fieldok 1146 1147 IF (check_dim .AND. is_master) WRITE(lunout,*)'histwrite3d_phy for ', trim(var%name) 1131 1148 1132 1149 IF (prt_level >= 10) write(lunout,*)'Begin histrwrite3d ',var%name … … 1267 1284 USE mod_phys_lmdz_para, ONLY: gather_omp, grid1Dto2D_mpi, & 1268 1285 is_sequential, klon_mpi_begin, klon_mpi_end, & 1269 jj_nb, klon_mpi 1286 jj_nb, klon_mpi, is_master 1270 1287 USE mod_grid_phy_lmdz, ONLY : nbp_lon, nbp_lat 1271 1288 USE xios, ONLY: xios_send_field … … 1283 1300 INTEGER :: ip 1284 1301 REAL, ALLOCATABLE, DIMENSION(:) :: fieldok 1302 1303 IF (check_dim .AND. is_master) WRITE(lunout,*)'histwrite2d_xios for ', field_name 1285 1304 1286 1305 IF (prt_level >= 10) WRITE(lunout,*)'Begin histrwrite2d_xios ',field_name … … 1343 1362 USE mod_phys_lmdz_para, ONLY: gather_omp, grid1Dto2D_mpi, & 1344 1363 is_sequential, klon_mpi_begin, klon_mpi_end, & 1345 jj_nb, klon_mpi 1364 jj_nb, klon_mpi, is_master 1346 1365 USE xios, ONLY: xios_send_field 1347 1366 USE mod_grid_phy_lmdz, ONLY : nbp_lon, nbp_lat … … 1359 1378 REAL,ALLOCATABLE, DIMENSION(:,:) :: fieldok 1360 1379 1361 IF (prt_level >= 10) write(lunout,*)'Begin histrwrite3d_xios ',field_name 1380 IF (check_dim .AND. is_master) WRITE(lunout,*)'histwrite3d_xios for ', field_name 1381 1382 IF (prt_level >= 10) write(lunout,*)'Begin histrwrite3d_xios ',field_name 1362 1383 1363 1384 !Et on.... écrit … … 1418 1439 SUBROUTINE histwrite0d_xios(field_name, field) 1419 1440 USE xios, ONLY: xios_send_field 1441 USE mod_phys_lmdz_para, ONLY: is_master 1442 USE print_control_mod, ONLY: prt_level,lunout 1420 1443 IMPLICIT NONE 1421 1444 1422 1445 CHARACTER(LEN=*), INTENT(IN) :: field_name 1423 1446 REAL, INTENT(IN) :: field ! --> scalar 1447 1448 IF (check_dim .AND. is_master) WRITE(lunout,*)'histwrite0d_xios for ', field_name 1424 1449 1425 1450 !$OMP MASTER
Note: See TracChangeset
for help on using the changeset viewer.