Gentle users,

If you encounter the following error compiling the routine cup.F on linux systems using the PGI compiler:

m4 ../../MPP/RSL/LMexp.m4 cup.dm | sed '/^$/d' | /lib/cpp -C -P -traditional -I../../MPP -I../../MPP/RSL -I../../pick -I../../MPP/debug -I../../MPP/RSL/RSL | ../../MPP/col_cutter >cup.f
/usr/local/mpich/bin/mpif77 -c -O2 -Mcray=pointer -tp p6 -pc 32 -Mnoframe cup.f 2> cup.lis
make[1]: [cup.o] Error 1 (ignored)

Look in the file MPP/build/cup.lis and see if the compiler error messages look like this:

PGFTN-S-0038-Symbol, afracl, has not been explicitly declared (cup.f: 578)
PGFTN-S-0038-Symbol, afracs, has not been explicitly declared (cup.f: 578)
PGFTN-S-0038-Symbol, dlargc, has not been explicitly declared (cup.f: 578)
PGFTN-S-0038-Symbol, dsmalc, has not been explicitly declared (cup.f: 578)
  0 inform,   0 warnings,   4 severes, 0 fatal for cup
PGFTN/x86 Linux/x86 3.2-4: compilation completed with severe errors

If so, modify cup.F to move the data statement for afracl, afracs, dlargc, and dsmalc past the declarations so that the routine looks like this:

C                                                                                07NOV00.1245
C DECLARATIONS FOR IMPLICIT NONE                                                 07NOV00.1246
C                                                                                07NOV00.1247
      REAL      XL,RD,DTIME,C0,E,EO,TVBAR,TVBARO,DH,PBCDIF,DZ,DZ1                07NOV00.1248
      REAL      GAMMA,GAMMA0,QRCH,DZO,DZ2,GAMMO,GAMMO0,QRCHO,DQ                  07NOV00.1249
      REAL      DT,DP,DV1,DV2,DV3,DV1Q,DV2Q,DV3Q,DETDO,DETDOQ,AUP                07NOV00.1250
      REAL      ADW,GAMMA1,GAMMA2,DHH,DG,XDDD,OUTTES,DXTEMC                      07NOV00.1251
      REAL      DX,DSMALC,DLARGC,CLFRCV,AFRACL,AFRACS,AKCLTH                     07NOV00.1252
      INTEGER   I,J,K,KK,IERR,IPH,IPHO,IST,IEN,KBDIF                             07NOV00.1253
      INTEGER   IFRAD,KCLTH                                                      07NOV00.1254
C                                                                                07NOV00.1255
C                                                                                CUP.9
C  AFRACL = FRACTIONAL COVER FOR CONV. PRECIP. WHEN DX=DXLARG=200 KM             CUP.10
C  AFRACS =     "        "    "    "      "     "   DX=DXSMAL=10 KM              CUP.11
C                                                                                CUP.12
      DATA AFRACL,AFRACS,DLARGC,DSMALC /0.3,1.0,200.0E3,10.0E3/                  CUP.13
C                                                                                CUP.14

This will be included in the next release of MM5.

Rotang, Aug 1, 2001