source: LMDZ6/branches/cirrus/libf/phylmd/ecrad.v1.5.1/abor1.F90 @ 4945

Last change on this file since 4945 was 3908, checked in by idelkadi, 4 years ago

Online implementation of the radiative transfer code ECRAD in the LMDZ model.

  • Inclusion of the ecrad directory containing the sources of the ECRAD code
    • interface routine : radiation_scheme.F90
  • Adaptation of compilation scripts :
    • compilation under CPP key CPP_ECRAD
    • compilation with option "-rad ecard" or "-ecard true"
    • The "-rad old/rtm/ecran" build option will need to replace the "-rrtm true" and "-ecrad true" options in the future.
  • Runing LMDZ simulations with ecrad, you need :
    • logical key iflag_rrtm = 2 in physiq.def
    • namelist_ecrad (DefLists?)
    • the directory "data" containing the configuration files is temporarily placed in ../libfphylmd/ecrad/
  • Compilation and execution are tested in the 1D case. The repository under svn would allow to continue the implementation work: tests, verification of the results, ...
File size: 872 bytes
Line 
1! (C) Copyright 2014- ECMWF.
2!
3! This software is licensed under the terms of the Apache Licence Version 2.0
4! which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
5!
6! In applying this licence, ECMWF does not waive the privileges and immunities
7! granted to it by virtue of its status as an intergovernmental organisation
8! nor does it submit to any jurisdiction.
9
10SUBROUTINE ABOR1(CDTEXT)
11
12USE PARKIND1,      ONLY : JPIM, JPRB
13USE YOMLUN_IFSAUX, ONLY : NULOUT, NULERR
14
15IMPLICIT NONE
16
17CHARACTER(LEN=*), INTENT(IN) :: CDTEXT
18
19IF (NULOUT >= 0) WRITE(NULOUT,'(1X,A)') CDTEXT
20IF (NULERR >= 0) WRITE(NULERR,'(1X,A,A)') 'ABORT! ', CDTEXT
21
22IF (NULOUT >= 0) THEN
23  ! FLUSH not understood by NAG compiler
24  !CALL FLUSH(NULOUT)
25  IF (NULOUT /= 0 .and. NULOUT /= 6) CLOSE(NULOUT)
26ENDIF
27
28#ifdef __PGI
29      stop 1
30#else
31      error stop 1
32#endif
33
34END SUBROUTINE ABOR1
Note: See TracBrowser for help on using the repository browser.