Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Size allocated to CORPSE output structure depends on size of met.nc file. #13

Open
melanniehartman opened this issue Apr 26, 2018 · 0 comments
Assignees

Comments

@melanniehartman
Copy link
Collaborator

Read the number of years in the met.nc file to determine the number of timesteps needed in the CORPSE output file data structures. Previously the allocation to these output data structures assumed a max number of 7 years. This was an OK assumption when running a 2-degree grid because the size of met.nc files could not exceed 2GB, which was 5-7 years, depending on the number of variables strored in the met.nc files. Seven is not a sufficient number of years for the point weather input files that may contain many more than 7 years wihout exceeding the maximum netcdf file size.

melanniehartman added a commit to melanniehartman/biogeochem_testbed_1.1 that referenced this issue May 1, 2018
Issue wwieder#12 (casa_inout.f90): Column header line added to CASACNP pool initialization/restart files.
Subroutine casa_init(), that reads the initialization/restart file, assumes there is a column header
line and was updated to skip past the first line in the file. Subroutine write_cnpepool_header()
was created and added to casa_inout.f90 to write a column header line to .csv restart files.
Subroutine write_cnpflux_header() was created and added to casa_inout.f90 to write a column header
line .csv output flux files (for example cnpflux_end_*.csv). The .csv flux output files are indeed
output only.

Issue wwieder#13 (casaoffline_driver_clm.f90): Size allocated to CORPSE output structure depends on size of met.nc file.
Read the number of years in the met.nc file to determine the number of timesteps needed in the
CORPSE output file data structures.  Previously the allocation to these output data structures
assumed a max number of 7 years. This was an OK assumption when running a 2-degree grid because
the size of met.nc files could not exceed 2GB, which was 5-7 years, depending on the number of
variables strored in the met.nc files. Seven is not a sufficient number of years for the point
weather input files that may contain many more than 7 years wihout exceeding the maximum netcdf file size.�

Issue wwieder#14 (corpse_cycle.f90, corpse_soil_carbon.f90): Updates to CORPSE fW calculation
Add parameter fWmin, the minimum soil moisture effect on decomposition, to the CORPSE parameter file.
Save CORPSE fW function (soil moisture effect on soil decomposition) to the output file.Issue wwieder#13 (casaoffline_driver_clm.f90): Size allocated to CORPSE output structure depends on size of met.nc file.

Issue wwieder#15 (mimics_cycle.f90, mimics_input.f90): Write MIMICS point output to .csv file
The subroutine WritePointMIMICS was created and added to mimics_inout.f90 to write daily output
from MIMICS point simulations to a .csv file. Some output code formerly in mimics_cycle.f90, was moved
to this subroutine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants