/[lmdze]/trunk/dyn3d/abort_gcm.f90
ViewVC logotype

Annotation of /trunk/dyn3d/abort_gcm.f90

Parent Directory Parent Directory | Revision Log Revision Log


Revision 331 - (hide annotations)
Wed Jul 31 17:10:31 2019 UTC (4 years, 10 months ago) by guez
File size: 603 byte(s)
Use same variable name across procedures: falbe.

In procedure albsno, no need for `MAX(0., snow_fall)`: snow_fall is
necessarily >= 0. No need to constrain update of agesno to be >= 0:
the result of the computation is necessarily >= 0 since agesno >= 0
and dtphys <= 86400.

1 guez 3 module abort_gcm_m
2    
3     implicit none
4    
5     contains
6    
7 guez 331 SUBROUTINE abort_gcm(modname, reason)
8 guez 3
9     ! From abort_gcm.F, version 1.1.1.1 2004/05/19 12:53:05
10 guez 33 ! Stops the simulation, closing files and printing comments.
11 guez 3
12 guez 61 USE histclo_m, only: histclo
13 guez 3
14 guez 33 character(len=*), intent(in):: modname ! name of calling program
15 guez 331 character(len=*), intent(in):: reason ! to print
16 guez 3
17     !-------------------
18    
19     call histclo
20 guez 331 print *, 'abort_gcm called by ', modname
21     print *, 'Reason: ', trim(reason)
22 guez 171 print *, 'Houston, we have a problem.'
23 guez 10 STOP 1
24 guez 3
25     END SUBROUTINE abort_gcm
26    
27     end module abort_gcm_m

  ViewVC Help
Powered by ViewVC 1.1.21