/[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.1 - (hide annotations) (download)
Sat Apr 28 00:15:11 2007 UTC (17 years ago) by jmc
Branch: MAIN
CVS Tags: checkpoint63h, checkpoint63i, checkpoint63j, checkpoint63k, checkpoint63d, checkpoint63e, checkpoint63f, checkpoint63g, checkpoint63a, checkpoint63b, checkpoint63c, checkpoint60, checkpoint61, checkpoint62, checkpoint63, checkpoint59q, checkpoint59p, checkpoint59r, checkpoint59e, checkpoint59d, checkpoint59g, checkpoint59f, checkpoint59a, checkpoint59c, checkpoint59b, checkpoint59m, checkpoint59l, checkpoint59o, checkpoint59n, checkpoint59i, checkpoint59h, checkpoint59k, checkpoint59j, checkpoint62c, checkpoint62b, checkpoint62a, checkpoint62g, checkpoint62f, checkpoint62e, checkpoint62d, checkpoint62k, checkpoint62j, checkpoint62i, checkpoint62h, checkpoint62o, checkpoint62n, checkpoint62m, checkpoint62l, checkpoint62s, checkpoint62r, checkpoint62q, checkpoint62p, checkpoint62w, checkpoint62v, checkpoint62u, checkpoint62t, checkpoint62z, checkpoint62y, checkpoint62x, checkpoint61f, checkpoint61g, checkpoint61d, checkpoint61e, checkpoint61b, checkpoint61c, checkpoint61a, checkpoint61n, checkpoint61o, checkpoint61l, checkpoint61m, checkpoint61j, checkpoint61k, checkpoint61h, checkpoint61i, checkpoint61v, checkpoint61w, checkpoint61t, checkpoint61u, checkpoint61r, checkpoint61s, checkpoint61p, checkpoint61q, checkpoint61z, checkpoint61x, checkpoint61y
S/R PACKAGES_ERROR_MSG replaces PACKAGES_CHECK_ERROR :
- add 1 argument (used in larger Nb of cases) and update the error message

1 jmc 1.1 C $Header: $
2     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     C msgBuf :: Informational/error meesage buffer
39     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     STOP 'ABNORMAL END: S/R PACKAGE_ERROR_MSG'
65    
66     RETURN
67     END

  ViewVC Help
Powered by ViewVC 1.1.22