Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bld/build-namelist
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,7 @@ if (!($simple_phys or $aqua_mode)) {
add_default($nl, 'stream_ndep_year_first' , 'sim_year'=>$sim_year);
add_default($nl, 'stream_ndep_year_last' , 'sim_year'=>$sim_year);
add_default($nl, 'stream_ndep_year_align' , 'sim_year'=>$sim_year);
add_default($nl, 'stream_ndep_varlist');
}
}

Expand Down
12 changes: 8 additions & 4 deletions bld/namelist_files/namelist_defaults_cam.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2014,12 +2014,16 @@
<soil_erod_file phys="cam4" >atm/cam/dst/dst_source2x2tuned-cam4-06132012.nc</soil_erod_file>
<soil_erod_file phys="cam4" hgrid="0.9x1.25">atm/cam/dst/dst_source1x1tuned-cam4-06202012.nc</soil_erod_file>

<!-- nitrogen deposition to surface models -->
<!-- nitrogen deposition to surface components -->
<stream_ndep_varlist>NDEP_NHx_month:NDEP_NOy_month</stream_ndep_varlist>
<stream_ndep_varlist phys="cam7">drynhx:wetnhx:drynoy:wetnoy</stream_ndep_varlist>

<stream_ndep_mesh_filename>share/meshes/fv0.9x1.25_141008_polemod_ESMFmesh.nc</stream_ndep_mesh_filename>
<stream_ndep_data_filename>lnd/clm2/ndepdata/fndep_clm_hist_b.e21.BWHIST.f09_g17.CMIP6-historical-WACCM.ensmean_1849-2015_monthly_0.9x1.25_c180926.nc</stream_ndep_data_filename>
<stream_ndep_mesh_filename phys="cam7">atm/ndep/cmip7/ndep_input4MIPs_surfaceFluxes_ESMFmesh_cdf5_c20251211.nc</stream_ndep_mesh_filename>

<stream_ndep_mesh_filename sim_year="1850">share/meshes/fv0.9x1.25_141008_polemod_ESMFmesh.nc</stream_ndep_mesh_filename>
<stream_ndep_data_filename sim_year="1850">lnd/clm2/ndepdata/fndep_clm_WACCM6_CMIP6piControl001_y21-50avg_1850monthly_0.95x1.25_c180802.nc</stream_ndep_data_filename>
<stream_ndep_data_filename>lnd/clm2/ndepdata/fndep_clm_hist_b.e21.BWHIST.f09_g17.CMIP6-historical-WACCM.ensmean_1849-2015_monthly_0.9x1.25_c180926.nc</stream_ndep_data_filename>
<stream_ndep_data_filename phys="cam7">atm/ndep/cmip7/ndep_input4MIPs_surfaceFluxes_CMIP_FZJ-CMIP-nitrogen-1-2_gn_185001-202212_c20251222.nc</stream_ndep_data_filename>
<stream_ndep_data_filename sim_year="1850">lnd/clm2/ndepdata/fndep_clm_WACCM6_CMIP6piControl001_y21-50avg_1850monthly_0.95x1.25_c180802.nc</stream_ndep_data_filename><stream_ndep_data_filename phys="cam7" sim_year="1850">atm/ndep/cmip7/ndep_input4MIPs_surfaceFluxes_CMIP_FZJ-CMIP-nitrogen-1-2_gn_185001-185012-clim_c20251222.nc</stream_ndep_data_filename>

<stream_ndep_year_first >2000</stream_ndep_year_first>
<stream_ndep_year_first sim_year="1850">1850</stream_ndep_year_first>
Expand Down
5 changes: 5 additions & 0 deletions bld/namelist_files/namelist_definition.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8233,6 +8233,11 @@ Nitrogen deposition stream data filename.
Grid mesh file corresponding to sream_ndep_data_filename.
</entry>

<entry id="stream_ndep_varlist" type="char*256" category="Nitrogen Deposition"
group="ndep_stream_nl" valid_values="" >
Colon delimited string of variable names on nitrogen deposition stream file(s).
</entry>

<entry id="megan_factors_file" type="char*256" input_pathname="abs" category="VOC_emissions"
group="megan_emis_nl" valid_values="" >
File containing MEGAN emissions factors.
Expand Down
14 changes: 6 additions & 8 deletions src/cpl/nuopc/atm_import_export.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1244,22 +1244,20 @@ subroutine export_fields(gcomp, cam_out, rc)

! The ndep_stream_nl namelist group is read in stream_ndep_init. This sets whether
! or not the stream will be used.
if (.not. stream_ndep_is_initialized) then
call stream_ndep_init(rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return
stream_ndep_is_initialized = .true.
if (ndep_stream_active) then
if (.not. stream_ndep_is_initialized) then
call stream_ndep_init(rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return
end if
end if

if (ndep_stream_active.or.chem_has_ndep_flx) then
if (ndep_stream_active .or. chem_has_ndep_flx) then

! Nitrogen dep fluxes are obtained from the ndep input stream if input data is available
! otherwise computed by chemistry
if (ndep_stream_active) then

! get ndep fluxes from the stream
call stream_ndep_interp(cam_out, rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return

end if

g = 1
Expand Down
Loading