/[MITgcm]/MITgcm/model/src/packages_error_msg.F
ViewVC logotype

Annotation of /MITgcm/model/src/packages_error_msg.F

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Mon Apr 2 21:31:06 2012 UTC (12 years, 1 month ago) by jmc
Branch: MAIN
CVS Tags: checkpoint64y, checkpoint64x, checkpoint64z, checkpoint64q, checkpoint64p, checkpoint64s, checkpoint64r, checkpoint64u, checkpoint64t, checkpoint64w, checkpoint64v, checkpoint64i, checkpoint64h, checkpoint64k, checkpoint64j, checkpoint64m, checkpoint64l, checkpoint64o, checkpoint64n, checkpoint64a, checkpoint64c, checkpoint64b, checkpoint64e, checkpoint64d, checkpoint64g, checkpoint64f, checkpoint63p, checkpoint63q, checkpoint63r, checkpoint63s, checkpoint63l, checkpoint63m, checkpoint63n, checkpoint63o, checkpoint64, checkpoint65, checkpoint66g, checkpoint66f, checkpoint66e, checkpoint66d, checkpoint66c, checkpoint66b, checkpoint66a, checkpoint66o, checkpoint66n, checkpoint66m, checkpoint66l, checkpoint66k, checkpoint66j, checkpoint66i, checkpoint66h, checkpoint65z, checkpoint65x, checkpoint65y, checkpoint65r, checkpoint65s, checkpoint65p, checkpoint65q, checkpoint65v, checkpoint65w, checkpoint65t, checkpoint65u, checkpoint65j, checkpoint65k, checkpoint65h, checkpoint65i, checkpoint65n, checkpoint65o, checkpoint65l, checkpoint65m, checkpoint65b, checkpoint65c, checkpoint65a, checkpoint65f, checkpoint65g, checkpoint65d, checkpoint65e, HEAD
Changes since 1.1: +3 -2 lines
add a call to ALL_PROC_DIE before stopping

1 jmc 1.2 C $Header: /u/gcmpack/MITgcm/model/src/packages_error_msg.F,v 1.1 2007/04/28 00:15:11 jmc Exp $
2 jmc 1.1 C $Name: $
3    
4     #include "CPP_OPTIONS.h"
5    
6     CBOP
7     C !ROUTINE: PACKAGES_ERROR_MSG
8     C !INTERFACE:
9     SUBROUTINE PACKAGES_ERROR_MSG( msg1, msg2, myThid )
10    
11     C !DESCRIPTION: \bv
12     C *==========================================================*
13     C | SUBROUTINE PACKAGES_ERROR_MSG
14     C | o Generate error message due to failed package
15     C | dependancies check
16     C *==========================================================*
17     C | This routine is called if use_PKG was true but PKG code
18     C | was not compiled (#undef ALLOW_KPG)
19     C *==========================================================*
20     C \ev
21    
22     C !USES:
23     IMPLICIT NONE
24     C === Global variables ===
25     #include "SIZE.h"
26     #include "EEPARAMS.h"
27    
28     C !INPUT/OUTPUT PARAMETERS:
29     C === Routine arguments ===
30     C msg1 :: package name
31     C msg2 :: package On/Off flag
32     C myThid :: My thread Id number
33     CHARACTER*(*) msg1, msg2
34     INTEGER myThid
35    
36     C !LOCAL VARIABLES:
37     C === Local variables ===
38 jmc 1.2 C msgBuf :: Informational/error message buffer
39 jmc 1.1 CHARACTER*(MAX_LEN_MBUF) msgBuf
40     CHARACTER*(MAX_LEN_MBUF) msgLwc,msgUpc
41     INTEGER iLen
42     CEOP
43    
44     iLen = LEN(msg1)
45     msgLwc(1:iLen) = msg1
46     msgUpc(1:iLen) = msg1
47     CALL LCASE(msgLwc(1:iLen))
48     CALL UCASE(msgUpc(1:iLen))
49     IF ( msg2 .EQ. ' ' ) THEN
50     WRITE(msgBuf,'(4A)') 'from PACKAGES_CHECK: ',
51     & 'run-time control flag use',msg1,' is set'
52     ELSE
53     WRITE(msgBuf,'(4A)') 'from PACKAGES_CHECK: ',
54     & 'run-time parameter ',msg2,' is used'
55     ENDIF
56     CALL PRINT_ERROR( msgBuf, myThid )
57     WRITE(msgBuf,'(5A)') 'but pkg/',msgLwc(1:iLen),
58     & ' was not compiled (ALLOW_',msgUpc(1:iLen),' undef).'
59     CALL PRINT_ERROR( msgBuf, myThid )
60     WRITE(msgBuf,'(3A)')
61     & '==> Re-compile with pkg "',msgLwc(1:iLen),
62     & '" in file "packages.conf"'
63     CALL PRINT_ERROR( msgBuf, myThid )
64 jmc 1.2 CALL ALL_PROC_DIE( myThid )
65 jmc 1.1 STOP 'ABNORMAL END: S/R PACKAGE_ERROR_MSG'
66    
67     RETURN
68     END

  ViewVC Help
Powered by ViewVC 1.1.22