Replies: 1 comment 3 replies
-
Segfault should be easy to identify/solve. I recommend building in debug mode and then looking at the backtrace. It should point you to the exact line that fails. If you have trouble parsing it, feel free to post the trace here. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I want to set an ignition source with specific pressure and temperature in a certain area, such as
prob.Hpoint_p=0.5e7
,prob.Hpoint-T=2500
. And I referred to the code inExternal.cpp
and the previous #384 discussion "Add a heat source with a specified heat flux", trying to defineproblem_modify_ext_sources
in myprob.H
, but running the program always results in segment errors (core has been dumped). Here is my code, I'm not sure if this is appropriate. I hope to receive advice.Thanks a lot.
`struct MyProblemSpecificFunctions : public DefaultProblemSpecificFunctions
{
static void problem_modify_ext_sources(
amrex::Real time,
amrex::Real /dt/,
const amrex::MultiFab& /state_old/,
const amrex::MultiFab& state_new,
amrex::MultiFab& ext_src,
int ng,
amrex::GeometryData const& geomdata,
ProbParmDevice const& prob_parm)
{
/* Notes: ext_src contains sources from velocity forcing coming in
This function should add to rather than overwrite ext_src.*/
}
}`
Beta Was this translation helpful? Give feedback.
All reactions