Skip to content

What may a "Parameter _fe_problem_base is NULL" means? #24182

Discussion options

You must be logged in to vote

Hi @WayneX-Wong the actual issue is that the Problem classes in MOOSE are constructed before pretty much any other objects (except the [Mesh]). So within the constructor for OpenMCCellAverageProblem, functions, postprocessors, and user objects don't exist yet. So you need to fetch the function from inside OpenMCCellAverageProblem::initialSetup, which you can think of as an extended part of the constructor which we call after all the other objects in your input file have been constructed. My apologies for missing that detail!

To double-check everything, I implemented all the changes you would need as an example here: neams-th-coe/cardinal#671 and confirmed that this works properly.

Replies: 1 comment 18 replies

Comment options

You must be logged in to vote
18 replies
@aprilnovak
Comment options

@WayneX-Wong
Comment options

@GiudGiud
Comment options

@aprilnovak
Comment options

Answer selected by WayneX-Wong
@WayneX-Wong
Comment options

@aprilnovak
Comment options

@GiudGiud
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants