Ignore:
Timestamp:
Jul 24, 2024, 2:54:37 PM (2 months ago)
Author:
abarral
Message:

rename modules properly lmdz_*
move ismin, ismax, minmax into new lmdz_libmath.f90
(lint) uppercase fortran keywords

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  
    1818    !         ierr    = severity of situation ( = 0 normal )
    1919
    20     character(len = *), intent(in) :: modname
     20    CHARACTER(LEN = *), intent(in) :: modname
    2121    integer ierr, ierror_mpi
    22     character(len = *), intent(in) :: message
     22    CHARACTER(LEN = *), intent(in) :: message
    2323
    24     write(lunout, *) 'in abort_physic'
     24    WRITE(lunout, *) 'in abort_physic'
    2525    !$OMP MASTER
    2626    CALL histclo
    2727    CALL restclo
    28     if (mpi_rank == 0) then
     28    if (mpi_rank == 0) THEN
    2929      CALL getin_dump
    3030    endif
    3131    !$OMP END MASTER
    3232
    33     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
     33    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
    3838        !$OMP CRITICAL (MPI_ABORT_PHYSIC)
    3939        CALL MPI_ABORT(COMM_LMDZ_PHY, 0, ierror_mpi)
     
    4343      endif
    4444    else
    45       write(lunout, *) 'Houston, we have a problem, ierr = ', ierr
    46       if (using_mpi) then
     45      WRITE(lunout, *) 'Houston, we have a problem, ierr = ', ierr
     46      if (using_mpi) THEN
    4747        !$OMP CRITICAL (MPI_ABORT_PHYSIC)
    4848        CALL MPI_ABORT(COMM_LMDZ_PHY, 1, ierror_mpi)
  • LMDZ6/branches/Amaury_dev/libf/phy_common/lmdz_phys_omp_data.F90

    r5112 r5116  
    8888!$OMP BARRIER
    8989
    90    if ((is_north_pole_dyn) .AND. (omp_rank == 0 )) then
     90   if ((is_north_pole_dyn) .AND. (omp_rank == 0 )) THEN
    9191      is_north_pole_phy = .TRUE.
    9292    else
    9393      is_north_pole_phy = .FALSE.
    9494    endif
    95     if ((is_south_pole_dyn) .AND. (omp_rank == omp_size-1)) then
     95    if ((is_south_pole_dyn) .AND. (omp_rank == omp_size-1)) THEN
    9696      is_south_pole_phy = .TRUE.
    9797    else
  • LMDZ6/branches/Amaury_dev/libf/phy_common/lmdz_print_control.f90

    r5112 r5116  
    4343    INTEGER :: alarm_file = 15 ! in case we want/need to print out the special alarms in a separate file
    4444
    45     IF (alert_first_call) then
     45    IF (alert_first_call) THEN
    4646      IF (alarm_file /= lunout) THEN
    4747        OPEN(unit = alarm_file, file = "ALERTES.txt")
     
    5050
    5151    alarm_couleur = alarm_color(niv_alerte)
    52     IF (niv_alerte < 0 .OR. niv_alerte > 3) then
     52    IF (niv_alerte < 0 .OR. niv_alerte > 3) THEN
    5353      message = 'NIVEAU ALERTE INVALIDE  ' // message
    5454      alarm_couleur = 'NOIRE  '
Note: See TracChangeset for help on using the changeset viewer.