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

Annotation of /trunk/dyn3d/abort_gcm.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10 - (hide annotations)
Fri Apr 18 14:45:53 2008 UTC (16 years, 1 month ago) by guez
Original Path: trunk/libf/dyn3d/abort_gcm.f90
File size: 851 byte(s)
Added NetCDF directory "/home/guez/include" in "g95.mk" and
"nag_tools.mk".

Added some "intent" attributes in "PVtheta", "advtrac", "caladvtrac",
"calfis", "diagedyn", "dissip", "vlspltqs", "aeropt", "ajsec",
"calltherm", "clmain", "cltrac", "cltracrn", "concvl", "conema3",
"conflx", "fisrtilp", "newmicro", "nuage", "diagcld1", "diagcld2",
"drag_noro", "lift_noro", "SUGWD", "physiq", "phytrac", "radlwsw", "thermcell".

Removed the case "ierr == 0" in "abort_gcm"; moved call to "histclo"
and messages for end of run from "abort_gcm" to "gcm"; replaced call
to "abort_gcm" in "leapfrog" by exit from outer loop.

In "calfis": removed argument "pp" and variable "unskap"; changed
"pksurcp" from scalar to rank 2; use "pressure_var"; rewrote
computation of "zplev", "zplay", "ztfi", "pcvgt" using "dyn_phy";
added computation of "pls".

Removed unused variable in "dynredem0".

In "exner_hyb": changed "dellta" from scalar to rank 1; replaced call
to "ssum" by call to "sum"; removed variables "xpn" and "xps";
replaced some loops by array expressions.

In "leapfrog": use "pressure_var"; deleted variables "p", "longcles".

Converted common blocks "YOECUMF", "YOEGWD" to modules.

Removed argument "pplay" in "cvltr", "diagetpq", "nflxtr".

Created module "raddimlw" from include file "raddimlw.h".

Corrected call to "new_unit" in "test_disvert".

1 guez 3 module abort_gcm_m
2    
3     implicit none
4    
5     contains
6    
7     SUBROUTINE abort_gcm(modname, message, ierr)
8    
9     ! From abort_gcm.F, version 1.1.1.1 2004/05/19 12:53:05
10    
11     ! Stops the simulation cleanly, closing files and printing various
12     ! comments
13    
14     ! Input: modname = name of calling program
15     ! message = stuff to print
16     ! ierr = severity of situation ( = 0 normal )
17    
18     USE IOIPSL, only: histclo
19     use iniprint, only: lunout
20    
21     character(len=*), intent(in):: modname
22     integer, intent(in):: ierr
23     character(len=*), intent(in):: message
24    
25     !-------------------
26    
27     print *, 'abort_gcm'
28    
29     call histclo
30     write(lunout,*) 'Stopping in ', modname
31     write(lunout,*) 'Reason = ', trim(message)
32 guez 10 write(lunout,*) 'Houston, we have a problem ', ierr
33     STOP 1
34 guez 3
35     END SUBROUTINE abort_gcm
36    
37     end module abort_gcm_m

  ViewVC Help
Powered by ViewVC 1.1.21