Skip to content

Commit

Permalink
Grwinven bug fix and temporal minor update
Browse files Browse the repository at this point in the history
  • Loading branch information
bokhaeng committed May 3, 2017
1 parent 81f4466 commit bcf0e34
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
4 changes: 2 additions & 2 deletions src/lib/wrorlout.f
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ SUBROUTINE WRORLOUT( RDEV, DATNAM, NREC, NPVAR, SRCID, SRCDAT,
C................. Store others in temporary variables
COID = STR2INT( CIFIP( S ) ) / 100000
FIP = STR2INT( CIFIP( S ) ) - COID * 100000
SIC = CISIC( S )
SIC = CISIC( S )(SICLEN3-3:SICLEN3)
YEAR = INVYR( S )
CORS = CORIS( S )
CBLR = CBLRID( S )
Expand Down Expand Up @@ -519,7 +519,7 @@ SUBROUTINE WRORLOUT( RDEV, DATNAM, NREC, NPVAR, SRCID, SRCDAT,
& ',', A, A ) ! onroad

93600 FORMAT( I5.5, 8( ',"',A, '"'), 4( ',', F10.2), ',', F10.4,
& ',', I4, 2( ',"',A, '"'),',', A1,
& ',', A4, 2( ',"',A, '"'),',', A1,
& 2( ',', F10.5), ',', I3, ',"', A, '"', 2( ',', E13.6 ),
& 2( ',', F6.2 ), ',', I2, ',', I2, 3(',"',A,'"'), A ) ! point

Expand Down
16 changes: 15 additions & 1 deletion src/smkinven/grwinven.f
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ PROGRAM GRWINVEN

C........... MODULES for public variables
C........... This module is the inventory arrays
USE MODSOURC, ONLY: INVYR
USE MODSOURC, ONLY: INVYR, FUGHGT, FUGWID, FUGLEN, FUGANG

C........... This module contains the information about the source category
USE MODINFO, ONLY: CATEGORY, CRL, CATDESC, BYEAR,
Expand Down Expand Up @@ -589,6 +589,20 @@ PROGRAM GRWINVEN
IVARNAMS( 21 ) = 'CNEIUID'
IVARNAMS( 22 ) = 'CEXTORL'
ALLOCATE( FUGHGT( NSRC ), STAT=IOS )
CALL CHECKMEM( IOS, 'FUGHGT', PROGNAME )
ALLOCATE( FUGWID( NSRC ), STAT=IOS )
CALL CHECKMEM( IOS, 'FUGWID', PROGNAME )
ALLOCATE( FUGLEN( NSRC ), STAT=IOS )
CALL CHECKMEM( IOS, 'FUGLEN', PROGNAME )
ALLOCATE( FUGANG( NSRC ), STAT=IOS )
CALL CHECKMEM( IOS, 'FUGANG', PROGNAME )
FUGHGT = 0. ! array
FUGWID = 0. ! array
FUGLEN = 0. ! array
FUGANG = 0. ! array
END SELECT
C......... If area sources and XLOC and YLOC are being used, then
Expand Down
10 changes: 0 additions & 10 deletions src/temporal/temporal.f
Original file line number Diff line number Diff line change
Expand Up @@ -575,16 +575,6 @@ PROGRAM TEMPORAL
NGSZ = NIPPA ! No. of pollutant & emis types in each group
NGRP = 1 ! Number of groups
C......... Make sure total array size is not larger than maximum
DO
IF( NSRC*NGSZ*24 >= 1024*1024*1024 ) THEN
NGRP = NGRP + 1
NGSZ = ( NIPPA + NGRP - 1 ) / NGRP
ELSE
EXIT
END IF
END DO
DO
ALLOCATE( TMAT ( NSRC, NGSZ, 24 ),
Expand Down

0 comments on commit bcf0e34

Please sign in to comment.