Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

How to output ch4vmr?

fenghe@wisc_edu

New Member
Hi

I am running T31_gx3v5 CCSM3 with varying green house gases. The version of code I am using is ccsm3_0_1_beta22.

This code outputs co2vmr in atmosphere history file, but doesn't output ch4vmr.

So I am trying to add ch4vmr into the atmosphere history file.

Since ch4vmr is not in the master field list, I have to refer to the cam3.0 user guide (4.2 Adding New Output Variables), but I don't know whether it is the right direction for this problem.

I have added at line 5522 of the history.F90
call addfld ('ch4vmr ','g/g ',1, 'I','methane volume mixing ratio',phys_decomp)

But I don't know how to put the outfld call in ghg_surfvals.F90

call outfld('CH4VRM ', ch4vmr, ?, ?)

because I don't know what I should put for the first dimension of the data array, and the chunk index.

Any thoughts? Thank you very much.

Feng He
 
Top