Skip to content

running GCHP adjoint, code crashes #483

@kaysuselj

Description

@kaysuselj

Your name

kay suselj

Your affiliation

JPL

What happened? What did you expect to happen?

I am running the adjoint version of the GCHP using CO2 w/ CMS-Flux emissions setup.
The forward model run is executed successfully with checkpoint files being written out.

I have problems with adjoint:

In src/GCHP_GridComp/GEOSChem_GridComp/geos-chem/Interfaces/GCHP/Chem_GridCompMod.F90 subroutine Initialize_ lines 1650+:
DO I = 1, nFlds
N = State_Chm%Map_Advect(I)
ThisSpc => State_Chm%SpcData(N)%Info
Int2Adj(I)%Name = TRIM(ThisSpc%Name)

seem to create array that contains adjoint variables, for all species.

The execution stalls at I=2 with forrtl: severe (408): fort: (2): Subscript #1 of the array MAP_ADVECT has value 3 which is greater than the upper bound of 2
In my case nFlds=2 and Map_Advect(2)=3.

Any suggestion on whether this is a bug in the code or with my setup would be appreciated.

Thanks.

What are the steps to reproduce the bug?

run adjoint version of GCHP.

Please attach any relevant configuration and log files.

No response

What GCHP version were you using?

14.5.1

What environment were you running GCHP on?

Other (please explain below)

What compiler and version were you using?

pleiades

What MPI library and version were you using?

mpi

Will you be addressing this bug yourself?

Yes, but I will need some help

Additional information

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions