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

questions about ADDFLD and OUTFLD usage

hi everyone,    I was intend to modify asdir in /models/atm/cam/src/physics/cam/radsw.F90 and  check it in the output history file .   the following shows what i've done (Bold Font):---------------------------------------------------------------   ! If night everywhere, return:   if ( Nday == 0 ) then     return   endif call addfld ('SWALBEDO   ',' ',1,    'A','shortwave albedo',phys_decomp) call add_default ('SWALBEDO ', 1 , ' ')!! Rearrange input arrays .....  if (scm_crm_mode) then   ! overwrite albedos for CRM      if(have_asdir) asdir = asdirobs(1)      if(have_asdif) asdif = asdifobs(1)      if(have_aldir) aldir = aldirobs(1)      if(have_aldif) aldif = aldifobs(1)   endif     asdir = 0.5  call outfld('SWALBEDO       ',asdir , pcols   ,lchnk   ) !! Perform other initializations.......------------------------------------------------- error in /bld/atm.bldlog is :(shr_sys_abort) ERROR: ADDFLD: Attempt to add field SWALBEDO after history files set   What's the problem here and how should I resolve it ? Besides, I am not sure wether radsw.F90 is the right place to modify surface shortwave albedo of specific . Please help ,thanks :)
 
Hvae you  solved this problem? In my experience, the surface albedo may be modified in the land module(/models/lnd/clm/src/clm4_5/biogeophys/SurfaceAlbedoMod.F90), but i don't know how to do it, would you like to share your ideas?Thkans very much
 
Top