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
 
Back
Top