Changeset 5116 for LMDZ6/branches/Amaury_dev/libf/phy_common
- Timestamp:
- Jul 24, 2024, 2:54:37 PM (6 months ago)
- Location:
- LMDZ6/branches/Amaury_dev/libf/phy_common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phy_common/lmdz_abort_physic.F90
r5112 r5116 18 18 ! ierr = severity of situation ( = 0 normal ) 19 19 20 character(len= *), intent(in) :: modname20 CHARACTER(LEN = *), intent(in) :: modname 21 21 integer ierr, ierror_mpi 22 character(len= *), intent(in) :: message22 CHARACTER(LEN = *), intent(in) :: message 23 23 24 write(lunout, *) 'in abort_physic'24 WRITE(lunout, *) 'in abort_physic' 25 25 !$OMP MASTER 26 26 CALL histclo 27 27 CALL restclo 28 if (mpi_rank == 0) then28 if (mpi_rank == 0) THEN 29 29 CALL getin_dump 30 30 endif 31 31 !$OMP END MASTER 32 32 33 write(lunout, *) 'Stopping in ', modname34 write(lunout, *) 'Reason = ', message35 if (ierr == 0) then36 write(lunout, *) 'Everything is cool'37 if (using_mpi) then33 WRITE(lunout, *) 'Stopping in ', modname 34 WRITE(lunout, *) 'Reason = ', message 35 if (ierr == 0) THEN 36 WRITE(lunout, *) 'Everything is cool' 37 if (using_mpi) THEN 38 38 !$OMP CRITICAL (MPI_ABORT_PHYSIC) 39 39 CALL MPI_ABORT(COMM_LMDZ_PHY, 0, ierror_mpi) … … 43 43 endif 44 44 else 45 write(lunout, *) 'Houston, we have a problem, ierr = ', ierr46 if (using_mpi) then45 WRITE(lunout, *) 'Houston, we have a problem, ierr = ', ierr 46 if (using_mpi) THEN 47 47 !$OMP CRITICAL (MPI_ABORT_PHYSIC) 48 48 CALL MPI_ABORT(COMM_LMDZ_PHY, 1, ierror_mpi) -
LMDZ6/branches/Amaury_dev/libf/phy_common/lmdz_phys_omp_data.F90
r5112 r5116 88 88 !$OMP BARRIER 89 89 90 if ((is_north_pole_dyn) .AND. (omp_rank == 0 )) then90 if ((is_north_pole_dyn) .AND. (omp_rank == 0 )) THEN 91 91 is_north_pole_phy = .TRUE. 92 92 else 93 93 is_north_pole_phy = .FALSE. 94 94 endif 95 if ((is_south_pole_dyn) .AND. (omp_rank == omp_size-1)) then95 if ((is_south_pole_dyn) .AND. (omp_rank == omp_size-1)) THEN 96 96 is_south_pole_phy = .TRUE. 97 97 else -
LMDZ6/branches/Amaury_dev/libf/phy_common/lmdz_print_control.f90
r5112 r5116 43 43 INTEGER :: alarm_file = 15 ! in case we want/need to print out the special alarms in a separate file 44 44 45 IF (alert_first_call) then45 IF (alert_first_call) THEN 46 46 IF (alarm_file /= lunout) THEN 47 47 OPEN(unit = alarm_file, file = "ALERTES.txt") … … 50 50 51 51 alarm_couleur = alarm_color(niv_alerte) 52 IF (niv_alerte < 0 .OR. niv_alerte > 3) then52 IF (niv_alerte < 0 .OR. niv_alerte > 3) THEN 53 53 message = 'NIVEAU ALERTE INVALIDE ' // message 54 54 alarm_couleur = 'NOIRE '
Note: See TracChangeset
for help on using the changeset viewer.