Skip to content

Commit

Permalink
AG-s <-> emission interface indicators now relative to full list of s…
Browse files Browse the repository at this point in the history
…calar fields
  • Loading branch information
Marco de Bruine committed Jun 8, 2021
1 parent 0424c3c commit bdfa25e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/modemission.f90
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,14 @@ subroutine initemission

! -- Interaction with AGs ----------------------------------------------------

allocate(co2fields(nsv-svskip))

allocate(co2fields(nsv))
co2fields = 0
co2fields(svskip+1:nsv) = index(emisnames(1:nsv-svskip), "co2")

svco2ags = findloc(emisnames(1:nsv-svskip), value = "co2ags", dim = 1)
co2fields = index(emisnames(1:nsv-svskip), "co2")
svco2ags = findloc(emisnames(1:nsv-svskip), value = "co2ags", dim = 1)
svco2ags = svco2ags + svskip

if (myid == 0) then
write(6,*) 'modemission: co2fields (scalar fields with CO2 0=no, 1=yes)'
write(6,*) co2fields
Expand Down

0 comments on commit bdfa25e

Please sign in to comment.