Welcome to the new DiscussCESM forum!
We are still working on the website migration, so you may experience downtime during this process.

Existing users, please reset your password before logging in here: https://xenforo.cgd.ucar.edu/cesm/index.php?lost-password/

FATAL ERROR: Empty stream

ucas_qs

qiushi Zhang
Member
Hello, everyone. I cp $CCSMROOT/models/ocn/pop2/input_templates/gx1v7_tavg_contents to $CASE/SourceMods/src.pop/ and comment out unnecessary streams (only retain stream 1, which is h.). And I modified the tavg_nml in pop_in the $CASE/run/ to delete unnecessary output stream. Then I run case.setup --reset and case.build,and submit it. But there were errors :
POP aborting...
FATAL ERROR: Empty stream

------------------------------------------------------------------------
application called MPI_Abort(MPI_COMM_WORLD, 0) - process 553
------------------------------------------------------------------------

I looked at the gx1v7_tavg_contents in $CASE/run/ and found that the other streams in it were not commented out. And the the tavg_nml in pop_in the $CASE/run/ are still five output streams. I don't understand what's going on. Are my changes overridden at build time? However, if this is the case, it is equivalent to nothing has been changed. Why is an error reported? Previous runs were successful. Thanks for your reply.
 

mlevy

Michael Levy
CSEG and Liaisons
Staff member
Yes, pop_in is overwritten every time the model is built or run. You can change what is in the namelist by modifying user_nl_pop in your case directory. &tavg_nml is tricky, though, because it is generated by running ocn.base.tavg.csh and other c-shell scripts. The simplest fix would be to set n_tavg_streams = 1 and ltavg_ignore_extra_streams = .true. in user_nl_marbl, but you could also copy ocn.base.tavg.csh into SourceMods and modify the stream definitions there.
 

ucas_qs

qiushi Zhang
Member
Yes, pop_in is overwritten every time the model is built or run. You can change what is in the namelist by modifying user_nl_pop in your case directory. &tavg_nml is tricky, though, because it is generated by running ocn.base.tavg.csh and other c-shell scripts. The simplest fix would be to set n_tavg_streams = 1 and ltavg_ignore_extra_streams = .true. in user_nl_marbl, but you could also copy ocn.base.tavg.csh into SourceMods and modify the stream definitions there.
Thank you for your reply. If I set n_tavg_streams = 1 and ltavg_ignore_extra_streams = .true. in user_nl_pop , do I need to cp $CCSMROOT/models/ocn/pop2/input_templates/gx1v7_tavg_contents to $CASE/SourceMods/src.pop/ and comment out unnecessary streams (only retain stream 1, which is h.) ?
 

mlevy

Michael Levy
CSEG and Liaisons
Staff member
Nope, you do not need gx1v7_tavg_contents in SourceMods; POP will ignore anything requested in streams 2 or 3 so you don't need to comment them out.
 

ucas_qs

qiushi Zhang
Member
Nope, you do not need gx1v7_tavg_contents in SourceMods; POP will ignore anything requested in streams 2 or 3 so you don't need to comment them out.
Thanks, Mlevy. It's very helpful to me. I have another question. Are the terms about ocean heat budget in POP directly outputed in historical files? What's more, do you have a specific description of the calculation of heat budget in POP?
 

ucas_qs

qiushi Zhang
Member
Nope, you do not need gx1v7_tavg_contents in SourceMods; POP will ignore anything requested in streams 2 or 3 so you don't need to comment them out.
Hello, Mlevy. I'm running case BHISTcmip6 with a resolution of f19_ g17, my scientific questions don't need marine ecology, so I run ./xmlchange OCN_TRACER_MODULES= iage and ./xmlchange CCSM_ BGC = CO2A (Reference for this website, https://bb.cgd.ucar.edu/cesm/threads/pop-aborting-ocean-tracer-module-problem-in-b1850-run.4831/). And then, I run ./case.setup --reset and ./case.build ,and submit the case. Then, the model reported an error
POP aborting...
chl_option==model, but model_chlorophyll is not registered

I look at pop_in the run directory, the "ecosys_ on" is .false. How can I close the ecological module correctly? Another problem, if I make the variables in / buildconf/popconf/ecosys_ tavg_contents commented out, and then run /case.build and submit the case. Will the variables related to ecology not be output in tavg finally? Looking forward to your reply. Thank you very much.
 
Top